@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 "heroin-urine-drug-screening-tests"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-computablevalueset";
       fhir:index 0
     ], [
       fhir:value "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-executablevalueset";
       fhir:index 1
     ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ]
  ];
  fhir:DomainResource.extension [
     fhir:index 0;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/valueset-rules-text" ];
     fhir:Extension.value [ fhir:value "Step 1: go to https://loinc.org/tree/\nStep 2: use query acetylmorphine AND system:urine\nStep 3: export the results to CSV\nStep 4: Filter results by properties defined in query" ]
  ], [
     fhir:index 1;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/valueset-author" ];
     fhir:Extension.value [
       fhir:ContactDetail.name [ fhir:value "MD Partners, Inc." ];
       fhir:ContactDetail.telecom [
         fhir:index 0;
         fhir:ContactPoint.system [ fhir:value "email" ];
         fhir:ContactPoint.value [ fhir:value "info@mdpartners.com" ]
       ]
     ]
  ], [
     fhir:index 2;
     fhir:Extension.url [ fhir:value "http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/cdc-valueset-clinical-focus" ];
     fhir:Extension.value [ fhir:value "Presumed general urine tests for heroin and metabolites." ]
  ], [
     fhir:index 3;
     fhir:Extension.url [ fhir:value "http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/cdc-valueset-dataelement-scope" ];
     fhir:Extension.value [ fhir:value "Urine test" ]
  ], [
     fhir:index 4;
     fhir:Extension.url [ fhir:value "http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/cdc-valueset-inclusion-criteria" ];
     fhir:Extension.value [ fhir:value "Codes" ]
  ], [
     fhir:index 5;
     fhir:Extension.url [ fhir:value "http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/cdc-valueset-exclusion-criteria" ];
     fhir:Extension.value [ fhir:value "None" ]
  ], [
     fhir:index 6;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability" ];
     fhir:Extension.value [ fhir:value "computable" ]
  ], [
     fhir:index 7;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeRepresentationLevel" ];
     fhir:Extension.value [ fhir:value "structured" ]
  ], [
     fhir:index 8;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability" ];
     fhir:Extension.value [ fhir:value "executable" ]
  ], [
     fhir:index 9;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeRepresentationLevel" ];
     fhir:Extension.value [ fhir:value "executable" ]
  ], [
     fhir:index 10;
     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/heroin-urine-drug-screening-tests"];
  fhir:ValueSet.version [ fhir:value "2022.1.0"];
  fhir:ValueSet.name [ fhir:value "HEROIN_URINE_DRUG_SCREENING_TESTS"];
  fhir:ValueSet.title [ fhir:value "Heroin urine drug screening tests"];
  fhir:ValueSet.status [ fhir:value "draft"];
  fhir:ValueSet.experimental [ fhir:value "true"];
  fhir:ValueSet.date [ fhir:value "2024-04-15T12:22:34-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 "Presumed general urine tests for heroin and metabolites."];
  fhir:ValueSet.jurisdiction [
     fhir:index 0;
     fhir:CodeableConcept.coding [ fhir:index 0 ]
  ];
  fhir:ValueSet.purpose [ fhir:value "Identification of urine drug tests where results can be used when considering pain management therapy"];
  fhir:ValueSet.copyright [ fhir:value "© CDC 2016+."];
  fhir:ValueSet.expansion [
     fhir:ValueSet.timestamp [ fhir:value "2024-04-15T12:22:37-06:00" ];
     fhir:ValueSet.total [ fhir:value "21" ];
     fhir:ValueSet.contains [
       fhir:index 0;
       fhir:ValueSet.system [ fhir:value "http://loinc.org" ];
       fhir:ValueSet.version [ fhir:value "2.76" ];
       fhir:ValueSet.code [ fhir:value "51740-9" ];
       fhir:ValueSet.display [ fhir:value "6MAM Free Ur-mCnc" ]
     ], [
       fhir:index 1;
       fhir:ValueSet.system [ fhir:value "http://loinc.org" ];
       fhir:ValueSet.version [ fhir:value "2.76" ];
       fhir:ValueSet.code [ fhir:value "47004-7" ];
       fhir:ValueSet.display [ fhir:value "6MAM Free Ur Cfm-mCnc" ]
     ], [
       fhir:index 2;
       fhir:ValueSet.system [ fhir:value "http://loinc.org" ];
       fhir:ValueSet.version [ fhir:value "2.76" ];
       fhir:ValueSet.code [ fhir:value "27073-6" ];
       fhir:ValueSet.display [ fhir:value "Deprecated 6MAM Ur Ql" ]
     ], [
       fhir:index 3;
       fhir:ValueSet.system [ fhir:value "http://loinc.org" ];
       fhir:ValueSet.version [ fhir:value "2.76" ];
       fhir:ValueSet.code [ fhir:value "14845-2" ];
       fhir:ValueSet.display [ fhir:value "Deprecated 6MAM Ur Ql" ]
     ], [
       fhir:index 4;
       fhir:ValueSet.system [ fhir:value "http://loinc.org" ];
       fhir:ValueSet.version [ fhir:value "2.76" ];
       fhir:ValueSet.code [ fhir:value "19592-5" ];
       fhir:ValueSet.display [ fhir:value "Deprecated 6MAM Ur Ql Cfm" ]
     ], [
       fhir:index 5;
       fhir:ValueSet.system [ fhir:value "http://loinc.org" ];
       fhir:ValueSet.version [ fhir:value "2.76" ];
       fhir:ValueSet.code [ fhir:value "19591-7" ];
       fhir:ValueSet.display [ fhir:value "Deprecated 6MAM Ur Ql Scn" ]
     ], [
       fhir:index 6;
       fhir:ValueSet.system [ fhir:value "http://loinc.org" ];
       fhir:ValueSet.version [ fhir:value "2.76" ];
       fhir:ValueSet.code [ fhir:value "21050-0" ];
       fhir:ValueSet.display [ fhir:value "Deprecated 6MAM Ur-mCnc" ]
     ], [
       fhir:index 7;
       fhir:ValueSet.system [ fhir:value "http://loinc.org" ];
       fhir:ValueSet.version [ fhir:value "2.76" ];
       fhir:ValueSet.code [ fhir:value "19594-1" ];
       fhir:ValueSet.display [ fhir:value "Deprecated 6MAM Ur-mCnc" ]
     ], [
       fhir:index 8;
       fhir:ValueSet.system [ fhir:value "http://loinc.org" ];
       fhir:ValueSet.version [ fhir:value "2.76" ];
       fhir:ValueSet.code [ fhir:value "10975-1" ];
       fhir:ValueSet.display [ fhir:value "6MAM Ur-mCnc" ]
     ], [
       fhir:index 9;
       fhir:ValueSet.system [ fhir:value "http://loinc.org" ];
       fhir:ValueSet.version [ fhir:value "2.76" ];
       fhir:ValueSet.code [ fhir:value "20514-6" ];
       fhir:ValueSet.display [ fhir:value "Deprecated 6MAM Ur Cfm-mCnc" ]
     ], [
       fhir:index 10;
       fhir:ValueSet.system [ fhir:value "http://loinc.org" ];
       fhir:ValueSet.version [ fhir:value "2.76" ];
       fhir:ValueSet.code [ fhir:value "19593-3" ];
       fhir:ValueSet.display [ fhir:value "6MAM Ur Cfm-mCnc" ]
     ], [
       fhir:index 11;
       fhir:ValueSet.system [ fhir:value "http://loinc.org" ];
       fhir:ValueSet.version [ fhir:value "2.76" ];
       fhir:ValueSet.code [ fhir:value "10976-9" ];
       fhir:ValueSet.display [ fhir:value "6MAM Ur Ql" ]
     ], [
       fhir:index 12;
       fhir:ValueSet.system [ fhir:value "http://loinc.org" ];
       fhir:ValueSet.version [ fhir:value "2.76" ];
       fhir:ValueSet.code [ fhir:value "19322-7" ];
       fhir:ValueSet.display [ fhir:value "6MAM Ur Ql Cfm" ]
     ], [
       fhir:index 13;
       fhir:ValueSet.system [ fhir:value "http://loinc.org" ];
       fhir:ValueSet.version [ fhir:value "2.76" ];
       fhir:ValueSet.code [ fhir:value "19321-9" ];
       fhir:ValueSet.display [ fhir:value "6MAM Ur Ql Scn" ]
     ], [
       fhir:index 14;
       fhir:ValueSet.system [ fhir:value "http://loinc.org" ];
       fhir:ValueSet.version [ fhir:value "2.76" ];
       fhir:ValueSet.code [ fhir:value "55520-1" ];
       fhir:ValueSet.display [ fhir:value "6MAM Ur-sCnc" ]
     ], [
       fhir:index 15;
       fhir:ValueSet.system [ fhir:value "http://loinc.org" ];
       fhir:ValueSet.version [ fhir:value "2.76" ];
       fhir:ValueSet.code [ fhir:value "70197-9" ];
       fhir:ValueSet.display [ fhir:value "6MAM Ur Cfm-sCnc" ]
     ], [
       fhir:index 16;
       fhir:ValueSet.system [ fhir:value "http://loinc.org" ];
       fhir:ValueSet.version [ fhir:value "2.76" ];
       fhir:ValueSet.code [ fhir:value "19596-6" ];
       fhir:ValueSet.display [ fhir:value "Deprecated 6MAM CtO Ur Cfm-mCnc" ]
     ], [
       fhir:index 17;
       fhir:ValueSet.system [ fhir:value "http://loinc.org" ];
       fhir:ValueSet.version [ fhir:value "2.76" ];
       fhir:ValueSet.code [ fhir:value "19324-3" ];
       fhir:ValueSet.display [ fhir:value "6MAM CtO Ur Cfm-mCnc" ]
     ], [
       fhir:index 18;
       fhir:ValueSet.system [ fhir:value "http://loinc.org" ];
       fhir:ValueSet.version [ fhir:value "2.76" ];
       fhir:ValueSet.code [ fhir:value "19595-8" ];
       fhir:ValueSet.display [ fhir:value "Deprecated 6MAM CtO Ur Scn-mCnc" ]
     ], [
       fhir:index 19;
       fhir:ValueSet.system [ fhir:value "http://loinc.org" ];
       fhir:ValueSet.version [ fhir:value "2.76" ];
       fhir:ValueSet.code [ fhir:value "19323-5" ];
       fhir:ValueSet.display [ fhir:value "6MAM CtO Ur Scn-mCnc" ]
     ], [
       fhir:index 20;
       fhir:ValueSet.system [ fhir:value "http://loinc.org" ];
       fhir:ValueSet.version [ fhir:value "2.76" ];
       fhir:ValueSet.code [ fhir:value "58384-9" ];
       fhir:ValueSet.display [ fhir:value "6MAM/Creat Ur" ]
     ]
  ] .

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

