@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 "methadone-medications"];
  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-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 1;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability" ];
     fhir:Extension.value [ fhir:value "computable" ]
  ], [
     fhir:index 2;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability" ];
     fhir:Extension.value [ fhir:value "executable" ]
  ], [
     fhir:index 3;
     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:index 4;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/valueset-rules-text" ];
     fhir:Extension.value [ fhir:value "https://mor.nlm.nih.gov/RxMix/ \r\nScript:\r\nStep 1 \r\nCreate Batch text input file (Methadone.txt) with following RxNorm identifier for the ingredient (TTY=IN) as the only concept within the file: \r\n6813       \r\n\r\nStep 2\r\nSubmit batch job using the above Methadone.txt as the input file to following workflow by uploading a workflow file (methadone-wf.config) with the following text in the file:  <WFE><filteredOutputs>RXCUI|name|term_type</filteredOutputs><input>NOINPUT</input><FS><service>NOINPUT</service><function>getRelatedByType</function><level>0</level><paramSize>2</paramSize><param order ='0'>?</param><param order ='1'>BPCK,GPCK,SBD,SCD</param></FS></WFE>\r\nThis will produce a result file with all Opioid clinical drugs, both branded and general, included" ]
  ];
  fhir:ValueSet.url [ fhir:value "http://fhir.org/guides/cdc/opioid-cds/ValueSet/methadone-medications"];
  fhir:ValueSet.version [ fhir:value "2022.1.0"];
  fhir:ValueSet.name [ fhir:value "METHADONE_MEDICATIONS"];
  fhir:ValueSet.title [ fhir:value "Methadone medications"];
  fhir:ValueSet.status [ fhir:value "active"];
  fhir:ValueSet.experimental [ fhir:value "false"];
  fhir:ValueSet.date [ fhir:value "2025-02-24T13:06:52-07: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 "Medication codes representing methadone medications"];
  fhir:ValueSet.jurisdiction [
     fhir:index 0;
     fhir:CodeableConcept.coding [ fhir:index 0 ]
  ];
  fhir:ValueSet.copyright [ fhir:value "© CDC 2016+."];
  fhir:ValueSet.expansion [
     fhir:ValueSet.timestamp [ fhir:value "2025-02-24T13:06:52-07:00" ];
     fhir:ValueSet.total [ fhir:value "16" ];
     fhir:ValueSet.contains [
       fhir:index 0;
       fhir:ValueSet.system [ fhir:value "http://www.nlm.nih.gov/research/umls/rxnorm" ];
       fhir:ValueSet.code [ fhir:value "1990745" ];
       fhir:ValueSet.display [ fhir:value "methadone hydrochloride 40 MG Tablet for Oral Suspension [Diskets]" ]
     ], [
       fhir:index 1;
       fhir:ValueSet.system [ fhir:value "http://www.nlm.nih.gov/research/umls/rxnorm" ];
       fhir:ValueSet.code [ fhir:value "864708" ];
       fhir:ValueSet.display [ fhir:value "methadone hydrochloride 10 MG Oral Tablet [Dolophine]" ]
     ], [
       fhir:index 2;
       fhir:ValueSet.system [ fhir:value "http://www.nlm.nih.gov/research/umls/rxnorm" ];
       fhir:ValueSet.code [ fhir:value "864712" ];
       fhir:ValueSet.display [ fhir:value "methadone hydrochloride 10 MG Oral Tablet [Methadose]" ]
     ], [
       fhir:index 3;
       fhir:ValueSet.system [ fhir:value "http://www.nlm.nih.gov/research/umls/rxnorm" ];
       fhir:ValueSet.code [ fhir:value "864720" ];
       fhir:ValueSet.display [ fhir:value "methadone hydrochloride 5 MG Oral Tablet [Dolophine]" ]
     ], [
       fhir:index 4;
       fhir:ValueSet.system [ fhir:value "http://www.nlm.nih.gov/research/umls/rxnorm" ];
       fhir:ValueSet.code [ fhir:value "864737" ];
       fhir:ValueSet.display [ fhir:value "methadone hydrochloride 5 MG Oral Tablet [Methadose]" ]
     ], [
       fhir:index 5;
       fhir:ValueSet.system [ fhir:value "http://www.nlm.nih.gov/research/umls/rxnorm" ];
       fhir:ValueSet.code [ fhir:value "864980" ];
       fhir:ValueSet.display [ fhir:value "methadone hydrochloride 40 MG Tablet for Oral Suspension [Methadose]" ]
     ], [
       fhir:index 6;
       fhir:ValueSet.system [ fhir:value "http://www.nlm.nih.gov/research/umls/rxnorm" ];
       fhir:ValueSet.code [ fhir:value "991149" ];
       fhir:ValueSet.display [ fhir:value "methadone hydrochloride 10 MG/ML Oral Solution [Methadose]" ]
     ], [
       fhir:index 7;
       fhir:ValueSet.system [ fhir:value "http://www.nlm.nih.gov/research/umls/rxnorm" ];
       fhir:ValueSet.code [ fhir:value "864706" ];
       fhir:ValueSet.display [ fhir:value "methadone hydrochloride 10 MG Oral Tablet" ]
     ], [
       fhir:index 8;
       fhir:ValueSet.system [ fhir:value "http://www.nlm.nih.gov/research/umls/rxnorm" ];
       fhir:ValueSet.code [ fhir:value "864714" ];
       fhir:ValueSet.display [ fhir:value "methadone hydrochloride 10 MG/ML Injectable Solution" ]
     ], [
       fhir:index 9;
       fhir:ValueSet.system [ fhir:value "http://www.nlm.nih.gov/research/umls/rxnorm" ];
       fhir:ValueSet.code [ fhir:value "864718" ];
       fhir:ValueSet.display [ fhir:value "methadone hydrochloride 5 MG Oral Tablet" ]
     ], [
       fhir:index 10;
       fhir:ValueSet.system [ fhir:value "http://www.nlm.nih.gov/research/umls/rxnorm" ];
       fhir:ValueSet.code [ fhir:value "864761" ];
       fhir:ValueSet.display [ fhir:value "methadone hydrochloride 1 MG/ML Oral Solution" ]
     ], [
       fhir:index 11;
       fhir:ValueSet.system [ fhir:value "http://www.nlm.nih.gov/research/umls/rxnorm" ];
       fhir:ValueSet.code [ fhir:value "864769" ];
       fhir:ValueSet.display [ fhir:value "methadone hydrochloride 2 MG/ML Oral Solution" ]
     ], [
       fhir:index 12;
       fhir:ValueSet.system [ fhir:value "http://www.nlm.nih.gov/research/umls/rxnorm" ];
       fhir:ValueSet.code [ fhir:value "864826" ];
       fhir:ValueSet.display [ fhir:value "methadone hydrochloride 5 MG/ML Oral Solution" ]
     ], [
       fhir:index 13;
       fhir:ValueSet.system [ fhir:value "http://www.nlm.nih.gov/research/umls/rxnorm" ];
       fhir:ValueSet.code [ fhir:value "864978" ];
       fhir:ValueSet.display [ fhir:value "methadone hydrochloride 40 MG Tablet for Oral Suspension" ]
     ], [
       fhir:index 14;
       fhir:ValueSet.system [ fhir:value "http://www.nlm.nih.gov/research/umls/rxnorm" ];
       fhir:ValueSet.code [ fhir:value "864984" ];
       fhir:ValueSet.display [ fhir:value "methadone hydrochloride 20 MG/ML Oral Solution" ]
     ], [
       fhir:index 15;
       fhir:ValueSet.system [ fhir:value "http://www.nlm.nih.gov/research/umls/rxnorm" ];
       fhir:ValueSet.code [ fhir:value "991147" ];
       fhir:ValueSet.display [ fhir:value "methadone hydrochloride 10 MG/ML Oral Solution" ]
     ]
  ] .

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

