@prefix fhir: <http://hl7.org/fhir/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

# - resource -------------------------------------------------------------------

[] a fhir:ValueSet;
  fhir:Resource.id [ fhir:value "office-visit"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-executablevalueset";
       fhir:index 0
     ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ]
  ];
  fhir:DomainResource.extension [
     fhir:index 0;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability" ];
     fhir:Extension.value [ fhir:value "executable" ]
  ], [
     fhir:index 1;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeRepresentationLevel" ];
     fhir:Extension.value [ fhir:value "executable" ]
  ], [
     fhir:index 2;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-usageWarning" ];
     fhir:Extension.value [ fhir:value "This value set contains a point-in-time expansion enumerating the codes that meet the value set intent. As new versions of the code systems used by the value set are released, the contents of this expansion will need to be updated to incorporate newly defined codes that meet the value set intent. Before, and periodically during production use, the value set expansion contents SHOULD be updated. The value set expansion specifies the timestamp when the expansion was produced, SHOULD contain the parameters used for the expansion, and SHALL contain the codes that are obtained by evaluating the value set definition. If this is ONLY an executable value set, a distributable definition of the value set must be obtained to compute the updated expansion." ]
  ];
  fhir:ValueSet.url [ fhir:value "http://fhir.org/guides/cdc/opioid-cds/ValueSet/office-visit"];
  fhir:ValueSet.version [ fhir:value "0.2.0"];
  fhir:ValueSet.name [ fhir:value "OFFICE_VISIT"];
  fhir:ValueSet.title [ fhir:value "Office Visit"];
  fhir:ValueSet.status [ fhir:value "active"];
  fhir:ValueSet.experimental [ fhir:value "false"];
  fhir:ValueSet.date [ fhir:value "2023-05-25T18:08:12-06:00"];
  fhir:ValueSet.publisher [ fhir:value "Centers for Disease Control and Prevention (CDC)"];
  fhir:ValueSet.contact [
     fhir:index 0;
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "https://www.cdc.gov" ]
     ]
  ];
  fhir:ValueSet.description [ fhir:value "Codes specifying outpatient encounters"];
  fhir:ValueSet.jurisdiction [
     fhir:index 0;
     fhir:CodeableConcept.coding [ fhir:index 0 ]
  ];
  fhir:ValueSet.purpose [ fhir:value "Codes specifying outpatient encounters"];
  fhir:ValueSet.expansion [
     fhir:ValueSet.timestamp [ fhir:value "2021-02-08T13:46:02-07:00" ];
     fhir:ValueSet.contains [
       fhir:index 0;
       fhir:ValueSet.system [ fhir:value "http://snomed.info/sct" ];
       fhir:ValueSet.version [ fhir:value "2020-09" ];
       fhir:ValueSet.code [ fhir:value "185463005" ];
       fhir:ValueSet.display [ fhir:value "Visit out of hours (procedure)" ]
     ], [
       fhir:index 1;
       fhir:ValueSet.system [ fhir:value "http://snomed.info/sct" ];
       fhir:ValueSet.version [ fhir:value "2020-09" ];
       fhir:ValueSet.code [ fhir:value "185464004" ];
       fhir:ValueSet.display [ fhir:value "Out of hours visit - not night visit (procedure)" ]
     ], [
       fhir:index 2;
       fhir:ValueSet.system [ fhir:value "http://snomed.info/sct" ];
       fhir:ValueSet.version [ fhir:value "2020-09" ];
       fhir:ValueSet.code [ fhir:value "185465003" ];
       fhir:ValueSet.display [ fhir:value "Weekend visit (procedure)" ]
     ], [
       fhir:index 3;
       fhir:ValueSet.system [ fhir:value "http://snomed.info/sct" ];
       fhir:ValueSet.version [ fhir:value "2020-09" ];
       fhir:ValueSet.code [ fhir:value "3391000175108" ];
       fhir:ValueSet.display [ fhir:value "Office visit for pediatric care and assessment (procedure)" ]
     ], [
       fhir:index 4;
       fhir:ValueSet.system [ fhir:value "http://snomed.info/sct" ];
       fhir:ValueSet.version [ fhir:value "2020-09" ];
       fhir:ValueSet.code [ fhir:value "439740005" ];
       fhir:ValueSet.display [ fhir:value "Postoperative follow-up visit (procedure)" ]
     ], [
       fhir:index 5;
       fhir:ValueSet.system [ fhir:value "http://www.ama-assn.org/go/cpt" ];
       fhir:ValueSet.version [ fhir:value "2021" ];
       fhir:ValueSet.code [ fhir:value "99202" ];
       fhir:ValueSet.display [ fhir:value "Office or other outpatient visit for the evaluation and management of a new patient, which requires a medically appropriate history and/or examination and straightforward medical decision making. When using time for code selection, 15-29 minutes of total time is spent on the date of the encounter." ]
     ], [
       fhir:index 6;
       fhir:ValueSet.system [ fhir:value "http://www.ama-assn.org/go/cpt" ];
       fhir:ValueSet.version [ fhir:value "2021" ];
       fhir:ValueSet.code [ fhir:value "99203" ];
       fhir:ValueSet.display [ fhir:value "Office or other outpatient visit for the evaluation and management of a new patient, which requires a medically appropriate history and/or examination and low level of medical decision making. When using time for code selection, 30-44 minutes of total time is spent on the date of the encounter." ]
     ], [
       fhir:index 7;
       fhir:ValueSet.system [ fhir:value "http://www.ama-assn.org/go/cpt" ];
       fhir:ValueSet.version [ fhir:value "2021" ];
       fhir:ValueSet.code [ fhir:value "99204" ];
       fhir:ValueSet.display [ fhir:value "Office or other outpatient visit for the evaluation and management of a new patient, which requires a medically appropriate history and/or examination and moderate level of medical decision making. When using time for code selection, 45-59 minutes of total time is spent on the date of the encounter." ]
     ], [
       fhir:index 8;
       fhir:ValueSet.system [ fhir:value "http://www.ama-assn.org/go/cpt" ];
       fhir:ValueSet.version [ fhir:value "2021" ];
       fhir:ValueSet.code [ fhir:value "99205" ];
       fhir:ValueSet.display [ fhir:value "Office or other outpatient visit for the evaluation and management of a new patient, which requires a medically appropriate history and/or examination and high level of medical decision making. When using time for code selection, 60-74 minutes of total time is spent on the date of the encounter." ]
     ], [
       fhir:index 9;
       fhir:ValueSet.system [ fhir:value "http://www.ama-assn.org/go/cpt" ];
       fhir:ValueSet.version [ fhir:value "2021" ];
       fhir:ValueSet.code [ fhir:value "99212" ];
       fhir:ValueSet.display [ fhir:value "Office or other outpatient visit for the evaluation and management of an established patient, which requires a medically appropriate history and/or examination and straightforward medical decision making. When using time for code selection, 10-19 minutes of total time is spent on the date of the encounter." ]
     ], [
       fhir:index 10;
       fhir:ValueSet.system [ fhir:value "http://www.ama-assn.org/go/cpt" ];
       fhir:ValueSet.version [ fhir:value "2021" ];
       fhir:ValueSet.code [ fhir:value "99213" ];
       fhir:ValueSet.display [ fhir:value "Office or other outpatient visit for the evaluation and management of an established patient, which requires a medically appropriate history and/or examination and low level of medical decision making. When using time for code selection, 20-29 minutes of total time is spent on the date of the encounter." ]
     ], [
       fhir:index 11;
       fhir:ValueSet.system [ fhir:value "http://www.ama-assn.org/go/cpt" ];
       fhir:ValueSet.version [ fhir:value "2021" ];
       fhir:ValueSet.code [ fhir:value "99214" ];
       fhir:ValueSet.display [ fhir:value "Office or other outpatient visit for the evaluation and management of an established patient, which requires a medically appropriate history and/or examination and moderate level of medical decision making. When using time for code selection, 30-39 minutes of total time is spent on the date of the encounter." ]
     ], [
       fhir:index 12;
       fhir:ValueSet.system [ fhir:value "http://www.ama-assn.org/go/cpt" ];
       fhir:ValueSet.version [ fhir:value "2021" ];
       fhir:ValueSet.code [ fhir:value "99215" ];
       fhir:ValueSet.display [ fhir:value "Office or other outpatient visit for the evaluation and management of an established patient, which requires a medically appropriate history and/or examination and high level of medical decision making. When using time for code selection, 40-54 minutes of total time is spent on the date of the encounter." ]
     ]
  ] .

# -------------------------------------------------------------------------------------

