@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 "limited-life-expectancy-conditions"];
  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://fhir.org/guides/cdc/opioid-cds/StructureDefinition/cdc-valueset-clinical-focus" ];
     fhir:Extension.value [ fhir:value "A finding that documents a terminal prognosis" ]
  ], [
     fhir:index 1;
     fhir:Extension.url [ fhir:value "http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/cdc-valueset-dataelement-scope" ];
     fhir:Extension.value [ fhir:value "Condition" ]
  ], [
     fhir:index 2;
     fhir:Extension.url [ fhir:value "http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/cdc-valueset-inclusion-criteria" ];
     fhir:Extension.value [ fhir:value "Specific terminal condition findings that do not indicate the clinical disease at cause." ]
  ], [
     fhir:index 3;
     fhir:Extension.url [ fhir:value "http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/cdc-valueset-exclusion-criteria" ];
     fhir:Extension.value [ fhir:value "Actual disease-specific conditions" ]
  ], [
     fhir:index 4;
     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 5;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability" ];
     fhir:Extension.value [ fhir:value "computable" ]
  ], [
     fhir:index 6;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeRepresentationLevel" ];
     fhir:Extension.value [ fhir:value "structured" ]
  ], [
     fhir:index 7;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability" ];
     fhir:Extension.value [ fhir:value "executable" ]
  ], [
     fhir:index 8;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeRepresentationLevel" ];
     fhir:Extension.value [ fhir:value "executable" ]
  ], [
     fhir:index 9;
     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 10;
     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:ValueSet.url [ fhir:value "http://fhir.org/guides/cdc/opioid-cds/ValueSet/limited-life-expectancy-conditions"];
  fhir:ValueSet.version [ fhir:value "2022.1.0"];
  fhir:ValueSet.name [ fhir:value "LIMITED_LIFE_EXPECTANCY_CONDITIONS"];
  fhir:ValueSet.title [ fhir:value "Limited life expectancy conditions"];
  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 "A finding that documents a terminal prognosis"];
  fhir:ValueSet.jurisdiction [
     fhir:index 0;
     fhir:CodeableConcept.coding [ fhir:index 0 ]
  ];
  fhir:ValueSet.purpose [ fhir:value "Provide terminology for conditions to be used as exclusions for opioid use recommendations"];
  fhir:ValueSet.copyright [ fhir:value "© CDC 2016+."];
  fhir:ValueSet.compose [
     fhir:ValueSet.include [
       fhir:index 0;
       fhir:ValueSet.system [ fhir:value "http://snomed.info/sct" ];
       fhir:ValueSet.version [ fhir:value "http://snomed.info/sct/731000124108" ];
       fhir:ValueSet.filter [
         fhir:index 0;
         fhir:ValueSet.property [ fhir:value "concept" ];
         fhir:ValueSet.op [ fhir:value "is-a" ];
         fhir:ValueSet.value [ fhir:value "300936002" ]
       ]
     ], [
       fhir:index 1;
       fhir:ValueSet.system [ fhir:value "http://snomed.info/sct" ];
       fhir:ValueSet.version [ fhir:value "http://snomed.info/sct/731000124108" ];
       fhir:ValueSet.filter [
         fhir:index 0;
         fhir:ValueSet.property [ fhir:value "concept" ];
         fhir:ValueSet.op [ fhir:value "is-a" ];
         fhir:ValueSet.value [ fhir:value "170969009" ]
       ]
     ], [
       fhir:index 2;
       fhir:ValueSet.system [ fhir:value "http://snomed.info/sct" ];
       fhir:ValueSet.version [ fhir:value "http://snomed.info/sct/731000124108" ];
       fhir:ValueSet.filter [
         fhir:index 0;
         fhir:ValueSet.property [ fhir:value "concept" ];
         fhir:ValueSet.op [ fhir:value "is-a" ];
         fhir:ValueSet.value [ fhir:value "27143004" ]
       ]
     ]
  ];
  fhir:ValueSet.expansion [
     fhir:Element.extension [
       fhir:index 0;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/valueset-unclosed" ];
       fhir:Extension.value [ fhir:value "true" ]
     ];
     fhir:ValueSet.timestamp [ fhir:value "2023-05-26T00:29:00.587Z" ];
     fhir:ValueSet.parameter [
       fhir:index 0;
       fhir:ValueSet.name [ fhir:value "version" ];
       fhir:ValueSet.value [ fhir:value "http://snomed.info/sct|http://snomed.info/sct/731000124108/version/20230301" ]
     ];
     fhir:ValueSet.contains [
       fhir:index 0;
       fhir:ValueSet.system [ fhir:value "http://snomed.info/sct" ];
       fhir:ValueSet.code [ fhir:value "300936002" ];
       fhir:ValueSet.display [ fhir:value "Terminal illness (finding)" ]
     ], [
       fhir:index 1;
       fhir:ValueSet.system [ fhir:value "http://snomed.info/sct" ];
       fhir:ValueSet.code [ fhir:value "111947009" ];
       fhir:ValueSet.display [ fhir:value "Functional disorder present, condition terminal (finding)" ]
     ], [
       fhir:index 2;
       fhir:ValueSet.system [ fhir:value "http://snomed.info/sct" ];
       fhir:ValueSet.code [ fhir:value "162607003" ];
       fhir:ValueSet.display [ fhir:value "Terminal illness - early stage (finding)" ]
     ], [
       fhir:index 3;
       fhir:ValueSet.system [ fhir:value "http://snomed.info/sct" ];
       fhir:ValueSet.code [ fhir:value "162608008" ];
       fhir:ValueSet.display [ fhir:value "Terminal illness - late stage (finding)" ]
     ], [
       fhir:index 4;
       fhir:ValueSet.system [ fhir:value "http://snomed.info/sct" ];
       fhir:ValueSet.code [ fhir:value "170969009" ];
       fhir:ValueSet.display [ fhir:value "Prognosis bad (finding)" ]
     ], [
       fhir:index 5;
       fhir:ValueSet.system [ fhir:value "http://snomed.info/sct" ];
       fhir:ValueSet.code [ fhir:value "27143004" ];
       fhir:ValueSet.display [ fhir:value "Patient status determination, pre-terminal (finding)" ]
     ]
  ] .

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

