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

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

[] a fhir:StructureDefinition ;
  fhir:id [ fhir:v "MedicationInformation"] ;
  fhir:text [
     fhir:status [ fhir:v "extensions" ]
  ] ;
  fhir:extension ( [
     fhir:url [ fhir:v "http://hl7.org/fhir/tools/StructureDefinition/logical-target" ] ;
     fhir:value [
       fhir:v "" ;
       fhir:extension ( [
         fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/data-absent-reason" ] ;
         fhir:value [ fhir:v "not-applicable" ]
       ] )
     ]
  ] [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace" ] ;
     fhir:value [ fhir:v "urn:hl7-org:v3" ]
  ] [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-xml-name" ] ;
     fhir:value [ fhir:v "manufacturedProduct" ]
  ] ) ;
  fhir:url [ fhir:v "http://hl7.org/cda/us/ccda/StructureDefinition/MedicationInformation"], [ fhir:v "http://hl7.org/cda/us/ccda/StructureDefinition/MedicationInformation"] ;
  fhir:identifier ( [
     fhir:value [ fhir:v "urn:hl7ii:2.16.840.1.113883.10.20.22.4.23:2014-06-09" ]
  ] [
     fhir:value [ fhir:v "urn:hl7ii:2.16.840.1.113883.10.20.22.4.23:2014-06-09" ]
  ] ) ;
  fhir:version [ fhir:v "2.1"], [ fhir:v "2.1"] ;
  fhir:name [ fhir:v "MedicationInformation"], [ fhir:v "MedicationInformation"] ;
  fhir:title [ fhir:v "Medication Information"], [ fhir:v "Medication Information"] ;
  fhir:status [ fhir:v "draft"], [ fhir:v "draft"] ;
  fhir:date [ fhir:v "2023-09-29T16:20:44+00:00"], [ fhir:v "2023-09-29T16:20:44+00:00"] ;
  fhir:publisher [ fhir:v "Health Level Seven"], [ fhir:v "Health Level Seven"] ;
  fhir:contact ( [
     fhir:name [ fhir:v "HL7 International - Structured Documents" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/structure" ]
     ] )
  ] [
     fhir:name [ fhir:v "HL7 International - Structured Documents" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/structure" ]
     ] )
  ] ) ;
  fhir:description [ fhir:v "A medication should be recorded as a pre-coordinated ingredient + strength + dose form (e.g., \"metoprolol 25mg tablet\", \"amoxicillin 400mg/5mL suspension\") where possible. This includes RxNorm codes whose Term Type is SCD (semantic clinical drug), SBD (semantic brand drug), GPCK (generic pack), BPCK (brand pack).\n\nThe dose (doseQuantity) represents how many of the consumables are to be administered at each administration event. As a result, the dose is always relative to the consumable. Thus, a patient consuming a single \"metoprolol 25mg tablet\" per administration will have a doseQuantity of \"1\", whereas a patient consuming \"metoprolol\" will have a dose of \"25 mg\"."], [ fhir:v "A medication should be recorded as a pre-coordinated ingredient + strength + dose form (e.g., \"metoprolol 25mg tablet\", \"amoxicillin 400mg/5mL suspension\") where possible. This includes RxNorm codes whose Term Type is SCD (semantic clinical drug), SBD (semantic brand drug), GPCK (generic pack), BPCK (brand pack).\n\nThe dose (doseQuantity) represents how many of the consumables are to be administered at each administration event. As a result, the dose is always relative to the consumable. Thus, a patient consuming a single \"metoprolol 25mg tablet\" per administration will have a doseQuantity of \"1\", whereas a patient consuming \"metoprolol\" will have a dose of \"25 mg\"."] ;
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [ fhir:v "urn:iso:std:iso:3166" ] ;
       fhir:code [ fhir:v "US" ]
     ] )
  ] [
     fhir:coding ( [
       fhir:system [ fhir:v "urn:iso:std:iso:3166" ] ;
       fhir:code [ fhir:v "US" ]
     ] )
  ] ) ;
  fhir:fhirVersion [ fhir:v "5.0.0"] ;
  fhir:mapping ( [
     fhir:identity [ fhir:v "rim" ] ;
     fhir:uri [ fhir:v "http://hl7.org/v3" ] ;
     fhir:name [ fhir:v "RIM Mapping" ]
  ] ) ;
  fhir:kind [ fhir:v "logical"] ;
  fhir:abstract [ fhir:v "false"] ;
  fhir:type [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/ManufacturedProduct"] ;
  fhir:baseDefinition [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/ManufacturedProduct"] ;
  fhir:derivation [ fhir:v "constraint"] ;
  fhir:snapshot [
     fhir:element ( [
       fhir:id [ fhir:v "ManufacturedProduct" ] ;
       fhir:path [ fhir:v "ManufacturedProduct" ] ;
       fhir:short [ fhir:v "Base for all types and resources" ] ;
       fhir:definition [ fhir:v "Base definition for all types defined in FHIR type system." ] ;
       fhir:min [ fhir:v "1" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Base" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [ ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ]
       ] ) ;
       fhir:isModifier [ fhir:v "false" ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v "n/a" ]
       ] )
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.classCode" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.classCode" ] ;
       fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
       fhir:comment [ fhir:v "SHALL contain exactly one [1..1] @classCode=\"MANU\" (CodeSystem: HL7RoleClass urn:oid:2.16.840.1.113883.5.110 STATIC) (CONF:1098-7408)." ] ;
       fhir:min [ fhir:v "1" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "ManufacturedProduct.classCode" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "code" ] ;
         fhir:profile ( [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/cs-simple" ] )
       ] ) ;
       fhir:fixed [ fhir:v "MANU" ] ;
       fhir:binding [
         fhir:strength [ fhir:v "required" ] ;
         fhir:valueSet [ fhir:v "http://terminology.hl7.org/ValueSet/v3-RoleClassManufacturedProduct" ]
       ]
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.templateId" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.templateId" ] ;
       fhir:slicing [
         fhir:discriminator ( [
           fhir:type [ fhir:v "value" ] ;
           fhir:path [ fhir:v "root" ]
         ] [
           fhir:type [ fhir:v "value" ] ;
           fhir:path [ fhir:v "extension" ]
         ] ) ;
         fhir:rules [ fhir:v "open" ]
       ] ;
       fhir:definition [ fhir:v "When valued in an instance, this attribute signals the imposition of a set of template-defined constraints. The value of this attribute provides a unique identifier for the templates in question" ] ;
       fhir:min [ fhir:v "1" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "ManufacturedProduct.templateId" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/II" ]
       ] )
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.templateId:primary" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.templateId" ] ;
       fhir:sliceName [ fhir:v "primary" ] ;
       fhir:definition [ fhir:v "When valued in an instance, this attribute signals the imposition of a set of template-defined constraints. The value of this attribute provides a unique identifier for the templates in question" ] ;
       fhir:comment [ fhir:v "SHALL contain exactly one [1..1] templateId (CONF:1098-7409) such that it" ] ;
       fhir:min [ fhir:v "1" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "ManufacturedProduct.templateId" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/II" ]
       ] )
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.templateId:primary.nullFlavor" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.templateId.nullFlavor" ] ;
       fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
       fhir:label [ fhir:v "Exceptional Value Detail" ] ;
       fhir:definition [ fhir:v "If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "ANY.nullFlavor" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "code" ] ;
         fhir:profile ( [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/cs-simple" ] )
       ] ) ;
       fhir:binding [
         fhir:strength [ fhir:v "required" ] ;
         fhir:valueSet [ fhir:v "http://terminology.hl7.org/ValueSet/v3-NullFlavor" ]
       ]
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.templateId:primary.assigningAuthorityName" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.templateId.assigningAuthorityName" ] ;
       fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
       fhir:label [ fhir:v "Assigning Authority Name" ] ;
       fhir:definition [ fhir:v "A human readable name or mnemonic for the assigning authority. The Assigning Authority Name has no computational value. The purpose of a Assigning Authority Name is to assist an unaided human interpreter of an II value to interpret the authority. Note: no automated processing must depend on the assigning authority name to be present in any form." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "II.assigningAuthorityName" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "string" ] ;
         fhir:profile ( [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/st-simple" ] )
       ] )
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.templateId:primary.displayable" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.templateId.displayable" ] ;
       fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
       fhir:label [ fhir:v "Displayable" ] ;
       fhir:definition [ fhir:v "Specifies if the identifier is intended for human display and data entry (displayable = true) as opposed to pure machine interoperation (displayable = false)." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "II.displayable" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "boolean" ] ;
         fhir:profile ( [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/bl-simple" ] )
       ] )
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.templateId:primary.root" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.templateId.root" ] ;
       fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
       fhir:label [ fhir:v "Root" ] ;
       fhir:definition [ fhir:v "A unique identifier that guarantees the global uniqueness of the instance identifier. The root alone may be the entire instance identifier." ] ;
       fhir:comment [ fhir:v "SHALL contain exactly one [1..1] @root=\"2.16.840.1.113883.10.20.22.4.23\" (CONF:1098-10506)." ] ;
       fhir:min [ fhir:v "1" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "II.root" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "string" ] ;
         fhir:profile ( [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/oid" ] [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/uuid" ] [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/ruid" ] )
       ] ) ;
       fhir:pattern [ fhir:v "2.16.840.1.113883.10.20.22.4.23" ]
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.templateId:primary.extension" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.templateId.extension" ] ;
       fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
       fhir:label [ fhir:v "Extension" ] ;
       fhir:definition [ fhir:v "A character string as a unique identifier within the scope of the identifier root." ] ;
       fhir:comment [ fhir:v "SHALL contain exactly one [1..1] @extension=\"2014-06-09\" (CONF:1098-32579)." ] ;
       fhir:min [ fhir:v "1" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "II.extension" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "string" ] ;
         fhir:profile ( [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/st-simple" ] )
       ] ) ;
       fhir:pattern [ fhir:v "2014-06-09" ]
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.id" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.id" ] ;
       fhir:comment [ fhir:v "MAY contain zero or more [0..*] id (CONF:1098-7410)." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "ManufacturedProduct.id" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/II" ]
       ] )
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.sdtcIdentifiedBy" ] ;
       fhir:extension ( [
         fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace" ] ;
         fhir:value [ fhir:v "urn:hl7-org:sdtc" ]
       ] [
         fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-xml-name" ] ;
         fhir:value [ fhir:v "identifiedBy" ]
       ] ) ;
       fhir:path [ fhir:v "ManufacturedProduct.sdtcIdentifiedBy" ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "ManufacturedProduct.sdtcIdentifiedBy" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/IdentifiedBy" ]
       ] )
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturedLabeledDrug" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturedLabeledDrug" ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "ManufacturedProduct.manufacturedLabeledDrug" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/LabeledDrug" ]
       ] )
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturedMaterial" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturedMaterial" ] ;
       fhir:short [ fhir:v "A medication should be recorded as a pre-coordinated ingredient + strength + dose form (e.g., “metoprolol 25mg tablet”, “amoxicillin 400mg/5mL suspension”) where possible. This includes RxNorm codes whose Term Type is SCD (semantic clinical drug), SBD (semantic brand drug), GPCK (generic pack), BPCK (brand pack)." ] ;
       fhir:comment [ fhir:v "SHALL contain exactly one [1..1] manufacturedMaterial (CONF:1098-7411)." ] ;
       fhir:min [ fhir:v "1" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "ManufacturedProduct.manufacturedMaterial" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/Material" ]
       ] )
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturedMaterial.classCode" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturedMaterial.classCode" ] ;
       fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Material.classCode" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "code" ] ;
         fhir:profile ( [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/cs-simple" ] )
       ] ) ;
       fhir:fixed [ fhir:v "MMAT" ] ;
       fhir:binding [
         fhir:strength [ fhir:v "required" ] ;
         fhir:valueSet [ fhir:v "http://terminology.hl7.org/ValueSet/v3-EntityClassManufacturedMaterial" ]
       ]
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturedMaterial.determinerCode" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturedMaterial.determinerCode" ] ;
       fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Material.determinerCode" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "code" ] ;
         fhir:profile ( [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/cs-simple" ] )
       ] ) ;
       fhir:fixed [ fhir:v "KIND" ] ;
       fhir:binding [
         fhir:strength [ fhir:v "required" ] ;
         fhir:valueSet [ fhir:v "http://terminology.hl7.org/ValueSet/v3-EntityDeterminerDetermined" ]
       ]
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturedMaterial.nullFlavor" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturedMaterial.nullFlavor" ] ;
       fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
       fhir:label [ fhir:v "Exceptional Value Detail" ] ;
       fhir:definition [ fhir:v "If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Material.nullFlavor" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "code" ] ;
         fhir:profile ( [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/cs-simple" ] )
       ] ) ;
       fhir:binding [
         fhir:strength [ fhir:v "required" ] ;
         fhir:valueSet [ fhir:v "http://terminology.hl7.org/ValueSet/v3-NullFlavor" ]
       ]
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturedMaterial.templateId" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturedMaterial.templateId" ] ;
       fhir:definition [ fhir:v "When valued in an instance, this attribute signals the imposition of a set of template-defined constraints. The value of this attribute provides a unique identifier for the templates in question" ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Material.templateId" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/II" ]
       ] )
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturedMaterial.code" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturedMaterial.code" ] ;
       fhir:comment [ fhir:v "This manufacturedMaterial SHALL contain exactly one [1..1] code, which SHALL be selected from ValueSet Medication Clinical Drug urn:oid:2.16.840.1.113762.1.4.1010.4 DYNAMIC (CONF:1098-7412)." ] ;
       fhir:min [ fhir:v "1" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Material.code" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/CE" ]
       ] ) ;
       fhir:binding [
         fhir:strength [ fhir:v "required" ] ;
         fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1010.4" ]
       ]
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturedMaterial.code.nullFlavor" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturedMaterial.code.nullFlavor" ] ;
       fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
       fhir:label [ fhir:v "Exceptional Value Detail" ] ;
       fhir:definition [ fhir:v "If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "ANY.nullFlavor" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "code" ] ;
         fhir:profile ( [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/cs-simple" ] )
       ] ) ;
       fhir:binding [
         fhir:strength [ fhir:v "required" ] ;
         fhir:valueSet [ fhir:v "http://terminology.hl7.org/ValueSet/v3-NullFlavor" ]
       ]
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturedMaterial.code.code" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturedMaterial.code.code" ] ;
       fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
       fhir:label [ fhir:v "Code" ] ;
       fhir:definition [ fhir:v "The plain code symbol defined by the code system. For example, \"784.0\" is the code symbol of the ICD-9 code \"784.0\" for headache." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "CD.code" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "code" ] ;
         fhir:profile ( [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/cs-simple" ] )
       ] )
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturedMaterial.code.codeSystem" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturedMaterial.code.codeSystem" ] ;
       fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
       fhir:label [ fhir:v "Code System" ] ;
       fhir:definition [ fhir:v "Specifies the code system that defines the code." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "CD.codeSystem" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "string" ] ;
         fhir:profile ( [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/oid" ] [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/uuid" ] [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/ruid" ] )
       ] )
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturedMaterial.code.codeSystemName" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturedMaterial.code.codeSystemName" ] ;
       fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
       fhir:label [ fhir:v "Code System Name" ] ;
       fhir:definition [ fhir:v "The common name of the coding system." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "CD.codeSystemName" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "string" ] ;
         fhir:profile ( [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/st-simple" ] )
       ] )
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturedMaterial.code.codeSystemVersion" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturedMaterial.code.codeSystemVersion" ] ;
       fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
       fhir:label [ fhir:v "Code System Version" ] ;
       fhir:definition [ fhir:v "If applicable, a version descriptor defined specifically for the given code system." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "CD.codeSystemVersion" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "string" ] ;
         fhir:profile ( [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/st-simple" ] )
       ] )
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturedMaterial.code.displayName" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturedMaterial.code.displayName" ] ;
       fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
       fhir:label [ fhir:v "Display Name" ] ;
       fhir:definition [ fhir:v "A name or title for the code, under which the sending system shows the code value to its users." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "CD.displayName" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "string" ] ;
         fhir:profile ( [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/st-simple" ] )
       ] )
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturedMaterial.code.sdtcValueSet" ] ;
       fhir:extension ( [
         fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace" ] ;
         fhir:value [ fhir:v "urn:hl7-org:sdtc" ]
       ] [
         fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-xml-name" ] ;
         fhir:value [ fhir:v "valueSet" ]
       ] ) ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturedMaterial.code.sdtcValueSet" ] ;
       fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
       fhir:definition [ fhir:v "The valueSet extension adds an attribute for elements with a CD dataType which indicates the particular value set constraining the coded concept." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "CD.valueSet" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "string" ] ;
         fhir:profile ( [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/oid" ] )
       ] )
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturedMaterial.code.sdtcValueSetVersion" ] ;
       fhir:extension ( [
         fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace" ] ;
         fhir:value [ fhir:v "urn:hl7-org:sdtc" ]
       ] [
         fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-xml-name" ] ;
         fhir:value [ fhir:v "valueSetVersion" ]
       ] ) ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturedMaterial.code.sdtcValueSetVersion" ] ;
       fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
       fhir:definition [ fhir:v "The valueSetVersion extension adds an attribute for elements with a CD dataType which indicates the version of the particular value set constraining the coded concept." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "CD.sdtcValueSetVersion" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "string" ] ;
         fhir:profile ( [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/st-simple" ] )
       ] )
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturedMaterial.code.originalText" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturedMaterial.code.originalText" ] ;
       fhir:label [ fhir:v "Original Text" ] ;
       fhir:definition [ fhir:v "The text or phrase used as the basis for the coding." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "CD.originalText" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/ED" ]
       ] )
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturedMaterial.code.qualifier" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturedMaterial.code.qualifier" ] ;
       fhir:label [ fhir:v "Qualifier" ] ;
       fhir:definition [ fhir:v "Specifies additional codes that increase the specificity of the the primary code." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "0" ] ;
       fhir:base [
         fhir:path [ fhir:v "CD.qualifier" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/CR" ]
       ] )
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturedMaterial.code.translation" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturedMaterial.code.translation" ] ;
       fhir:representation ( [ fhir:v "typeAttr" ] ) ;
       fhir:label [ fhir:v "Translation" ] ;
       fhir:definition [ fhir:v "A set of other concept descriptors that translate this concept descriptor into other code systems." ] ;
       fhir:comment [ fhir:v "This code MAY contain zero or more [0..*] translation, which MAY be selected from ValueSet Clinical Substance urn:oid:2.16.840.1.113762.1.4.1010.2 DYNAMIC (CONF:1098-31884)." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "CD.translation" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/CD" ]
       ] ) ;
       fhir:binding [
         fhir:strength [ fhir:v "example" ] ;
         fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1010.2" ]
       ]
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturedMaterial.name" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturedMaterial.name" ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Material.name" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/EN" ]
       ] )
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturedMaterial.lotNumberText" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturedMaterial.lotNumberText" ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Material.lotNumberText" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/ST" ]
       ] )
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturerOrganization" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturerOrganization" ] ;
       fhir:comment [ fhir:v "MAY contain zero or one [0..1] manufacturerOrganization (CONF:1098-7416)." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "ManufacturedProduct.manufacturerOrganization" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/Organization" ]
       ] )
     ] )
  ] ;
  fhir:differential [
     fhir:element ( [
       fhir:id [ fhir:v "ManufacturedProduct.classCode" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.classCode" ] ;
       fhir:comment [ fhir:v "SHALL contain exactly one [1..1] @classCode=\"MANU\" (CodeSystem: HL7RoleClass urn:oid:2.16.840.1.113883.5.110 STATIC) (CONF:1098-7408)." ] ;
       fhir:min [ fhir:v "1" ]
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.templateId" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.templateId" ] ;
       fhir:slicing [
         fhir:discriminator ( [
           fhir:type [ fhir:v "value" ] ;
           fhir:path [ fhir:v "root" ]
         ] [
           fhir:type [ fhir:v "value" ] ;
           fhir:path [ fhir:v "extension" ]
         ] ) ;
         fhir:rules [ fhir:v "open" ]
       ] ;
       fhir:min [ fhir:v "1" ]
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.templateId:primary" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.templateId" ] ;
       fhir:sliceName [ fhir:v "primary" ] ;
       fhir:comment [ fhir:v "SHALL contain exactly one [1..1] templateId (CONF:1098-7409) such that it" ] ;
       fhir:min [ fhir:v "1" ] ;
       fhir:max [ fhir:v "1" ]
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.templateId:primary.root" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.templateId.root" ] ;
       fhir:comment [ fhir:v "SHALL contain exactly one [1..1] @root=\"2.16.840.1.113883.10.20.22.4.23\" (CONF:1098-10506)." ] ;
       fhir:min [ fhir:v "1" ] ;
       fhir:pattern [ fhir:v "2.16.840.1.113883.10.20.22.4.23" ]
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.templateId:primary.extension" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.templateId.extension" ] ;
       fhir:comment [ fhir:v "SHALL contain exactly one [1..1] @extension=\"2014-06-09\" (CONF:1098-32579)." ] ;
       fhir:min [ fhir:v "1" ] ;
       fhir:pattern [ fhir:v "2014-06-09" ]
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.id" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.id" ] ;
       fhir:comment [ fhir:v "MAY contain zero or more [0..*] id (CONF:1098-7410)." ]
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturedMaterial" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturedMaterial" ] ;
       fhir:short [ fhir:v "A medication should be recorded as a pre-coordinated ingredient + strength + dose form (e.g., “metoprolol 25mg tablet”, “amoxicillin 400mg/5mL suspension”) where possible. This includes RxNorm codes whose Term Type is SCD (semantic clinical drug), SBD (semantic brand drug), GPCK (generic pack), BPCK (brand pack)." ] ;
       fhir:comment [ fhir:v "SHALL contain exactly one [1..1] manufacturedMaterial (CONF:1098-7411)." ] ;
       fhir:min [ fhir:v "1" ]
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturedMaterial.code" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturedMaterial.code" ] ;
       fhir:comment [ fhir:v "This manufacturedMaterial SHALL contain exactly one [1..1] code, which SHALL be selected from ValueSet Medication Clinical Drug urn:oid:2.16.840.1.113762.1.4.1010.4 DYNAMIC (CONF:1098-7412)." ] ;
       fhir:min [ fhir:v "1" ] ;
       fhir:binding [
         fhir:strength [ fhir:v "required" ] ;
         fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1010.4" ]
       ]
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturedMaterial.code.translation" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturedMaterial.code.translation" ] ;
       fhir:comment [ fhir:v "This code MAY contain zero or more [0..*] translation, which MAY be selected from ValueSet Clinical Substance urn:oid:2.16.840.1.113762.1.4.1010.2 DYNAMIC (CONF:1098-31884)." ] ;
       fhir:binding [
         fhir:strength [ fhir:v "example" ] ;
         fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1010.2" ]
       ]
     ] [
       fhir:id [ fhir:v "ManufacturedProduct.manufacturerOrganization" ] ;
       fhir:path [ fhir:v "ManufacturedProduct.manufacturerOrganization" ] ;
       fhir:comment [ fhir:v "MAY contain zero or one [0..1] manufacturerOrganization (CONF:1098-7416)." ]
     ] )
  ] .

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

