FHIR © HL7.org  |  Server Home  |  XIG Home  |  Server Source  |  FHIR  

FHIR IG Statistics: StructureDefinition/2.16.840.1.113883.10.20.22.4.18

Packagehl7.cda.us.ccdar2dot2
TypeStructureDefinition
Id2.16.840.1.113883.10.20.22.4.18
FHIR VersionR4
Sourcehttp://hl7.org/cda/us/ccda/https://build.fhir.org/ig/HL7/CDA-ccda-2.2/StructureDefinition-2.16.840.1.113883.10.20.22.4.18.html
URLhttp://hl7.org/fhir/cda/ccda/StructureDefinition/2.16.840.1.113883.10.20.22.4.18
Version2.2
Statusactive
Date2022-05-13T15:50:12+00:00
NameMedicationDispense
TitleMedication Dispense
Realmus
Authorityhl7
DescriptionThis template records the act of supplying medications (i.e., dispensing).
TypeSupply
Kindresource

Resources that use this resource

StructureDefinition
2.16.840.1.113883.10.20.22.4.16Medication Activity
2.16.840.1.113883.10.20.22.4.52Immunization Activity

Resources that this resource uses

StructureDefinition
2.16.840.1.113883.10.20.22.4.17Medication Supply Order
2.16.840.1.113883.10.20.22.4.23Medication Information
2.16.840.1.113883.10.20.22.4.54Immunization Medication Information
2.16.840.1.113883.10.20.22.5.2US Realm Address (AD.US.FIELDED)
ValueSet
2.16.840.1.113883.3.88.12.80.64Medication Fill Status

Narrative

Note: links and images are rebased to the (stated) source

NameFlagsCard.TypeDescription & Constraintsdoco
.. Supply I1..1CDAR2Supply1098-9333: A supply act **SHALL** contain one product/Medication Information *OR* one product/Immunization Medication Information template (CONF:1098-9333).
... classCode 1..1code
... moodCode 1..1codeRequired Pattern: EVN
... Slices for templateId 0..*IISlice: Unordered, Open by value:root, value:extension
.... templateId:primary 1..1II
..... root 1..1stringRequired Pattern: 2.16.840.1.113883.10.20.22.4.18
..... extension 1..1stringRequired Pattern: 2014-06-09
... id 1..*II
... statusCode 1..1CS
.... code 1..1stringBinding: Medication Fill Status (required)
... effectiveTime 0..1SXCM_TS, IVL_TS, EIVL_TS, PIVL_TS, SXPR_TS
... repeatNumber 0..1IVL_INTIn "INT" (intent) mood, the repeatNumber defines the number of allowed administrations. For example, a repeatNumber of "3" means that the substance can be administered up to 3 times. In "EVN" (event) mood, the repeatNumber is the number of occurrences. For example, a repeatNumber of "3" in a substance administration event means that the current administration is the 3rd in a series.
... quantity 0..1PQ
... product 0..1Element
.... manufacturedProduct 1..1
..... manufacturedProductManufacturedProduct(MedicationInformation)
..... manufacturedProductManufacturedProduct(ImmunizationMedicationInformation)
... performer 0..1Performer2
.... assignedEntity 1..1AssignedEntity
..... addr I0..1USRealmAddressADUSFIELDED1098-10565: The content of addr **SHALL** be a conformant US Realm Address (AD.US.FIELDED) (2.16.840.1.113883.10.20.22.5.2) (CONF:1098-10565).
... Slices for entryRelationship 0..*ElementSlice: Unordered, Open by profile:supply
.... entryRelationship:supplyOrder 0..1Element
..... typeCode 1..1codeRequired Pattern: REFR
..... supply 1..1MedicationSupplyOrder

doco Documentation for this format

Source

{
  "resourceType": "StructureDefinition",
  "id": "2.16.840.1.113883.10.20.22.4.18",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "url": "http://hl7.org/fhir/cda/ccda/StructureDefinition/2.16.840.1.113883.10.20.22.4.18",
  "identifier": [
    {
      "value": "urn:hl7ii:2.16.840.1.113883.10.20.22.4.18:2014-06-09"
    }
  ],
  "version": "2.2",
  "name": "MedicationDispense",
  "title": "Medication Dispense",
  "status": "active",
  "date": "2022-05-13T15:50:12+00:00",
  "publisher": "Health Level Seven",
  "contact": [
    {
      "name": "HL7 International - Structured Documents",
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/structure"
        }
      ]
    }
  ],
  "description": "This template records the act of supplying medications (i.e., dispensing).",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "US"
        }
      ]
    }
  ],
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Supply",
  "baseDefinition": "http://hl7.org/fhir/cda/StructureDefinition/Supply",
  "derivation": "constraint",
  "snapshot": {
    "element": [
      {
        "id": "Supply",
        "path": "Supply",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Base",
          "min": 0,
          "max": "*"
        },
        "constraint": [
          {
            "key": "1098-9333",
            "severity": "error",
            "human": "A supply act  **SHALL** contain one product/Medication Information *OR* one product/Immunization Medication Information template (CONF:1098-9333)."
          }
        ],
        "isModifier": false
      },
      {
        "id": "Supply.classCode",
        "path": "Supply.classCode",
        "representation": [
          "xmlAttr"
        ],
        "requirements": "SHALL contain exactly one [1..1] @classCode=\"SPLY\" (CodeSystem: HL7ActClass urn:oid:2.16.840.1.113883.5.6 STATIC) (CONF:1098-7451).",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Supply.classCode",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "defaultValueCode": "SPLY",
        "fixedCode": "SPLY",
        "binding": {
          "strength": "required",
          "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActClassSupply"
        }
      },
      {
        "id": "Supply.moodCode",
        "path": "Supply.moodCode",
        "representation": [
          "xmlAttr"
        ],
        "requirements": "SHALL contain exactly one [1..1] @moodCode=\"EVN\" (CodeSystem: HL7ActMood urn:oid:2.16.840.1.113883.5.1001 STATIC) (CONF:1098-7452).",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Supply.moodCode",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "patternCode": "EVN"
      },
      {
        "id": "Supply.realmCode",
        "path": "Supply.realmCode",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Supply.realmCode",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/CS"
          }
        ]
      },
      {
        "id": "Supply.typeId",
        "path": "Supply.typeId",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.typeId",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/II"
          }
        ]
      },
      {
        "id": "Supply.templateId",
        "path": "Supply.templateId",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "root"
            },
            {
              "type": "value",
              "path": "extension"
            }
          ],
          "rules": "open"
        },
        "definition": "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",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Supply.templateId",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/II"
          }
        ]
      },
      {
        "id": "Supply.templateId:primary",
        "path": "Supply.templateId",
        "sliceName": "primary",
        "definition": "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",
        "requirements": "SHALL contain exactly one [1..1] templateId (CONF:1098-7453) such that it",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Supply.templateId",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/II"
          }
        ]
      },
      {
        "id": "Supply.templateId:primary.nullFlavor",
        "path": "Supply.templateId.nullFlavor",
        "representation": [
          "xmlAttr"
        ],
        "label": "Exceptional Value Detail",
        "definition": "If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "ANY.nullFlavor",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://terminology.hl7.org/ValueSet/v3-NullFlavor"
        }
      },
      {
        "id": "Supply.templateId:primary.assigningAuthorityName",
        "path": "Supply.templateId.assigningAuthorityName",
        "representation": [
          "xmlAttr"
        ],
        "label": "Assigning Authority Name",
        "definition": "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "II.assigningAuthorityName",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Supply.templateId:primary.displayable",
        "path": "Supply.templateId.displayable",
        "representation": [
          "xmlAttr"
        ],
        "label": "Displayable",
        "definition": "Specifies if the identifier is intended for human display and data entry (displayable = true) as opposed to pure machine interoperation (displayable = false).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "II.displayable",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "Supply.templateId:primary.root",
        "path": "Supply.templateId.root",
        "representation": [
          "xmlAttr"
        ],
        "label": "Root",
        "definition": "A unique identifier that guarantees the global uniqueness of the instance identifier. The root alone may be the entire instance identifier.",
        "requirements": "SHALL contain exactly one [1..1] @root=\"2.16.840.1.113883.10.20.22.4.18\" (CONF:1098-10505).",
        "min": 1,
        "max": "1",
        "base": {
          "path": "II.root",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "patternString": "2.16.840.1.113883.10.20.22.4.18"
      },
      {
        "id": "Supply.templateId:primary.extension",
        "path": "Supply.templateId.extension",
        "representation": [
          "xmlAttr"
        ],
        "label": "Extension",
        "definition": "A character string as a unique identifier within the scope of the identifier root.",
        "requirements": "SHALL contain exactly one [1..1] @extension=\"2014-06-09\" (CONF:1098-32580).",
        "min": 1,
        "max": "1",
        "base": {
          "path": "II.extension",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "patternString": "2014-06-09"
      },
      {
        "id": "Supply.id",
        "path": "Supply.id",
        "requirements": "SHALL contain at least one [1..*] id (CONF:1098-7454).",
        "min": 1,
        "max": "*",
        "base": {
          "path": "Supply.id",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/II"
          }
        ]
      },
      {
        "id": "Supply.code",
        "path": "Supply.code",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.code",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/CD"
          }
        ],
        "binding": {
          "strength": "extensible",
          "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActCode"
        }
      },
      {
        "id": "Supply.text",
        "path": "Supply.text",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/ED"
          }
        ]
      },
      {
        "id": "Supply.statusCode",
        "path": "Supply.statusCode",
        "requirements": "SHALL contain exactly one [1..1] statusCode (CONF:1098-7455).",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Supply.statusCode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/CS"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActStatus"
        }
      },
      {
        "id": "Supply.statusCode.nullFlavor",
        "path": "Supply.statusCode.nullFlavor",
        "representation": [
          "xmlAttr"
        ],
        "label": "Exceptional Value Detail",
        "definition": "If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "ANY.nullFlavor",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://terminology.hl7.org/ValueSet/v3-NullFlavor"
        }
      },
      {
        "id": "Supply.statusCode.code",
        "path": "Supply.statusCode.code",
        "representation": [
          "xmlAttr"
        ],
        "label": "Code",
        "definition": "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.",
        "requirements": "This statusCode SHALL contain exactly one [1..1] @code, which SHALL be selected from ValueSet Medication Fill Status urn:oid:2.16.840.1.113883.3.88.12.80.64 STATIC 2014-04-23 (CONF:1098-32361).",
        "min": 1,
        "max": "1",
        "base": {
          "path": "CD.code",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.88.12.80.64"
        }
      },
      {
        "id": "Supply.statusCode.codeSystem",
        "path": "Supply.statusCode.codeSystem",
        "representation": [
          "xmlAttr"
        ],
        "label": "Code System",
        "definition": "Specifies the code system that defines the code.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "CD.codeSystem",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Supply.statusCode.codeSystemName",
        "path": "Supply.statusCode.codeSystemName",
        "representation": [
          "xmlAttr"
        ],
        "label": "Code System Name",
        "definition": "The common name of the coding system.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "CD.codeSystemName",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Supply.statusCode.codeSystemVersion",
        "path": "Supply.statusCode.codeSystemVersion",
        "representation": [
          "xmlAttr"
        ],
        "label": "Code System Version",
        "definition": "If applicable, a version descriptor defined specifically for the given code system.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "CD.codeSystemVersion",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Supply.statusCode.displayName",
        "path": "Supply.statusCode.displayName",
        "representation": [
          "xmlAttr"
        ],
        "label": "Display Name",
        "definition": "A name or title for the code, under which the sending system shows the code value to its users.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "CD.displayName",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Supply.statusCode.sdtcValueSet",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace",
            "valueUri": "urn:hl7-org:sdtc"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-xml-name",
            "valueString": "valueSet"
          }
        ],
        "path": "Supply.statusCode.sdtcValueSet",
        "representation": [
          "xmlAttr"
        ],
        "definition": "The valueSet extension adds an attribute for elements with a CD dataType which indicates the particular value set constraining the coded concept.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "CD.valueSet",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Supply.statusCode.sdtcValueSetVersion",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace",
            "valueUri": "urn:hl7-org:sdtc"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-xml-name",
            "valueString": "valueSetVersion"
          }
        ],
        "path": "Supply.statusCode.sdtcValueSetVersion",
        "representation": [
          "xmlAttr"
        ],
        "definition": "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "CD.sdtcValueSetVersion",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Supply.statusCode.originalText",
        "path": "Supply.statusCode.originalText",
        "label": "Original Text",
        "definition": "The text or phrase used as the basis for the coding.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "CD.originalText",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/ED"
          }
        ]
      },
      {
        "id": "Supply.statusCode.qualifier",
        "path": "Supply.statusCode.qualifier",
        "label": "Qualifier",
        "definition": "Specifies additional codes that increase the specificity of the the primary code.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "CD.qualifier",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/CR"
          }
        ]
      },
      {
        "id": "Supply.statusCode.translation",
        "path": "Supply.statusCode.translation",
        "representation": [
          "typeAttr"
        ],
        "label": "Translation",
        "definition": "A set of other concept descriptors that translate this concept descriptor into other code systems.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "CD.translation",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/CD"
          }
        ]
      },
      {
        "id": "Supply.effectiveTime",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-defaulttype",
            "valueString": "http://hl7.org/fhir/cda/StructureDefinition/SXCM-TS"
          }
        ],
        "path": "Supply.effectiveTime",
        "representation": [
          "typeAttr"
        ],
        "requirements": "SHOULD contain zero or one [0..1] effectiveTime (CONF:1098-7456).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.effectiveTime",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/SXCM-TS"
          },
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/IVL-TS"
          },
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/EIVL-TS"
          },
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/PIVL-TS"
          },
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/SXPR-TS"
          }
        ]
      },
      {
        "id": "Supply.priorityCode",
        "path": "Supply.priorityCode",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Supply.priorityCode",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/CE"
          }
        ],
        "binding": {
          "strength": "extensible",
          "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActPriority"
        }
      },
      {
        "id": "Supply.repeatNumber",
        "path": "Supply.repeatNumber",
        "short": "In \"INT\" (intent) mood, the repeatNumber defines the number of allowed administrations. For example, a repeatNumber of \"3\" means that the substance can be administered up to 3 times. In \"EVN\" (event) mood, the repeatNumber is the number of occurrences. For example, a repeatNumber of \"3\" in a substance administration event means that the current administration is the 3rd in a series.",
        "requirements": "SHOULD contain zero or one [0..1] repeatNumber (CONF:1098-7457).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.repeatNumber",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/IVL-INT"
          }
        ]
      },
      {
        "id": "Supply.independentInd",
        "path": "Supply.independentInd",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.independentInd",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/BL"
          }
        ]
      },
      {
        "id": "Supply.quantity",
        "path": "Supply.quantity",
        "requirements": "SHOULD contain zero or one [0..1] quantity (CONF:1098-7458).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.quantity",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/PQ"
          }
        ]
      },
      {
        "id": "Supply.expectedUseTime",
        "path": "Supply.expectedUseTime",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.expectedUseTime",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/IVL-TS"
          }
        ]
      },
      {
        "id": "Supply.product",
        "path": "Supply.product",
        "requirements": "MAY contain zero or one [0..1] product (CONF:1098-7459).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.product",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Element"
          }
        ]
      },
      {
        "id": "Supply.product.typeCode",
        "path": "Supply.product.typeCode",
        "representation": [
          "xmlAttr"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Supply.product.typeCode",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "defaultValueCode": "PRD",
        "fixedCode": "PRD",
        "binding": {
          "strength": "required",
          "valueSet": "http://terminology.hl7.org/ValueSet/v3-ParticipationTargetDirect"
        }
      },
      {
        "id": "Supply.product.manufacturedProduct",
        "path": "Supply.product.manufacturedProduct",
        "requirements": "The product, if present, SHALL contain exactly one [1..1] Medication Information (V2) (identifier: urn:hl7ii:2.16.840.1.113883.10.20.22.4.23:2014-06-09) (CONF:1098-15607).",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Supply.product.manufacturedProduct",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/ManufacturedProduct",
            "profile": [
              "http://hl7.org/fhir/cda/ccda/StructureDefinition/2.16.840.1.113883.10.20.22.4.23"
            ]
          },
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/ManufacturedProduct",
            "profile": [
              "http://hl7.org/fhir/cda/ccda/StructureDefinition/2.16.840.1.113883.10.20.22.4.54"
            ]
          }
        ]
      },
      {
        "id": "Supply.subject",
        "path": "Supply.subject",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.subject",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Element"
          }
        ]
      },
      {
        "id": "Supply.subject.typeCode",
        "path": "Supply.subject.typeCode",
        "representation": [
          "xmlAttr"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Supply.subject.typeCode",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "defaultValueCode": "SBJ",
        "fixedCode": "SBJ",
        "binding": {
          "strength": "required",
          "valueSet": "http://terminology.hl7.org/ValueSet/v3-ParticipationTargetSubject"
        }
      },
      {
        "id": "Supply.subject.contextControlCode",
        "path": "Supply.subject.contextControlCode",
        "representation": [
          "xmlAttr"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Supply.subject.contextControlCode",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "defaultValueCode": "OP",
        "fixedCode": "OP",
        "binding": {
          "strength": "required",
          "valueSet": "http://terminology.hl7.org/ValueSet/v3-ContextControl"
        }
      },
      {
        "id": "Supply.subject.awarenessCode",
        "path": "Supply.subject.awarenessCode",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.subject.awarenessCode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/CE"
          }
        ],
        "binding": {
          "strength": "extensible",
          "valueSet": "http://terminology.hl7.org/ValueSet/v3-TargetAwareness"
        }
      },
      {
        "id": "Supply.subject.relatedSubject",
        "path": "Supply.subject.relatedSubject",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Supply.subject.relatedSubject",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/RelatedSubject"
          }
        ]
      },
      {
        "id": "Supply.specimen",
        "path": "Supply.specimen",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Supply.specimen",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/Specimen"
          }
        ]
      },
      {
        "id": "Supply.performer",
        "path": "Supply.performer",
        "requirements": "MAY contain zero or one [0..1] performer (CONF:1098-7461).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.performer",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/Performer2"
          }
        ]
      },
      {
        "id": "Supply.performer.nullFlavor",
        "path": "Supply.performer.nullFlavor",
        "representation": [
          "xmlAttr"
        ],
        "label": "Exceptional Value Detail",
        "definition": "If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Performer2.nullFlavor",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://terminology.hl7.org/ValueSet/v3-NullFlavor"
        }
      },
      {
        "id": "Supply.performer.typeCode",
        "path": "Supply.performer.typeCode",
        "representation": [
          "xmlAttr"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "Performer2.typeCode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/cda/StructureDefinition/cs"
            ]
          }
        ],
        "fixedCode": "PRF",
        "binding": {
          "strength": "required",
          "valueSet": "http://terminology.hl7.org/ValueSet/v3-ParticipationPhysicalPerformer"
        }
      },
      {
        "id": "Supply.performer.realmCode",
        "path": "Supply.performer.realmCode",
        "definition": "When valued in an instance, this attribute signals the imposition of realm-specific constraints. The value of this attribute identifies the realm in question",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Performer2.realmCode",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/CS"
          }
        ]
      },
      {
        "id": "Supply.performer.typeId",
        "path": "Supply.performer.typeId",
        "definition": "When valued in an instance, this attribute signals the imposition of constraints defined in an HL7-specified message type. This might be a common type (also known as CMET in the messaging communication environment), or content included within a wrapper. The value of this attribute provides a unique identifier for the type in question.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Performer2.typeId",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/II"
          }
        ]
      },
      {
        "id": "Supply.performer.templateId",
        "path": "Supply.performer.templateId",
        "definition": "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",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Performer2.templateId",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/II"
          }
        ]
      },
      {
        "id": "Supply.performer.functionCode",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace",
            "valueUri": "urn:hl7-org:sdtc"
          }
        ],
        "path": "Supply.performer.functionCode",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Performer2.functionCode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/CE"
          }
        ]
      },
      {
        "id": "Supply.performer.time",
        "path": "Supply.performer.time",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Performer2.time",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/IVL-TS"
          }
        ]
      },
      {
        "id": "Supply.performer.modeCode",
        "path": "Supply.performer.modeCode",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Performer2.modeCode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/CE"
          }
        ]
      },
      {
        "id": "Supply.performer.assignedEntity",
        "path": "Supply.performer.assignedEntity",
        "requirements": "The performer, if present, SHALL contain exactly one [1..1] assignedEntity (CONF:1098-7467).",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Performer2.assignedEntity",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/AssignedEntity"
          }
        ]
      },
      {
        "id": "Supply.performer.assignedEntity.classCode",
        "path": "Supply.performer.assignedEntity.classCode",
        "representation": [
          "xmlAttr"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "AssignedEntity.classCode",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "defaultValueCode": "ASSIGNED",
        "fixedCode": "ASSIGNED",
        "binding": {
          "strength": "required",
          "valueSet": "http://terminology.hl7.org/ValueSet/v3-RoleClassAssignedEntity"
        }
      },
      {
        "id": "Supply.performer.assignedEntity.templateId",
        "path": "Supply.performer.assignedEntity.templateId",
        "definition": "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",
        "min": 0,
        "max": "*",
        "base": {
          "path": "AssignedEntity.templateId",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/II"
          }
        ]
      },
      {
        "id": "Supply.performer.assignedEntity.id",
        "path": "Supply.performer.assignedEntity.id",
        "min": 1,
        "max": "*",
        "base": {
          "path": "AssignedEntity.id",
          "min": 1,
          "max": "*"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/II"
          }
        ]
      },
      {
        "id": "Supply.performer.assignedEntity.sdtcIdentifiedBy",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace",
            "valueUri": "urn:hl7-org:sdtc"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-xml-name",
            "valueString": "identifiedBy"
          }
        ],
        "path": "Supply.performer.assignedEntity.sdtcIdentifiedBy",
        "min": 0,
        "max": "*",
        "base": {
          "path": "AssignedEntity.sdtcIdentifiedBy",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/IdentifiedBy"
          }
        ]
      },
      {
        "id": "Supply.performer.assignedEntity.code",
        "path": "Supply.performer.assignedEntity.code",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AssignedEntity.code",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/CE"
          }
        ],
        "binding": {
          "strength": "extensible",
          "valueSet": "http://terminology.hl7.org/ValueSet/v3-RoleCode"
        }
      },
      {
        "id": "Supply.performer.assignedEntity.addr",
        "path": "Supply.performer.assignedEntity.addr",
        "definition": "Mailing and home or office addresses. A sequence of address parts, such as street or post office Box, city, postal code, country, etc.",
        "requirements": "This assignedEntity SHOULD contain zero or one [0..1] US Realm Address (AD.US.FIELDED) (identifier: urn:oid:2.16.840.1.113883.10.20.22.5.2) (CONF:1098-7468).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AssignedEntity.addr",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/AD",
            "profile": [
              "http://hl7.org/fhir/cda/ccda/StructureDefinition/2.16.840.1.113883.10.20.22.5.2"
            ]
          }
        ],
        "constraint": [
          {
            "key": "81-7296",
            "severity": "error",
            "human": "**SHALL NOT** have mixed content except for white space (CONF:81-7296).",
            "source": "http://hl7.org/fhir/cda/StructureDefinition/Supply"
          },
          {
            "key": "1098-10565",
            "severity": "error",
            "human": "The content of addr **SHALL** be a conformant US Realm Address (AD.US.FIELDED) (2.16.840.1.113883.10.20.22.5.2) (CONF:1098-10565)."
          }
        ],
        "isModifier": false
      },
      {
        "id": "Supply.performer.assignedEntity.telecom",
        "path": "Supply.performer.assignedEntity.telecom",
        "min": 0,
        "max": "*",
        "base": {
          "path": "AssignedEntity.telecom",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/TEL"
          }
        ]
      },
      {
        "id": "Supply.performer.assignedEntity.assignedPerson",
        "path": "Supply.performer.assignedEntity.assignedPerson",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AssignedEntity.assignedPerson",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/Person"
          }
        ]
      },
      {
        "id": "Supply.performer.assignedEntity.representedOrganization",
        "path": "Supply.performer.assignedEntity.representedOrganization",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AssignedEntity.representedOrganization",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/Organization"
          }
        ]
      },
      {
        "id": "Supply.author",
        "path": "Supply.author",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Supply.author",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/Author"
          }
        ]
      },
      {
        "id": "Supply.informant",
        "path": "Supply.informant",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Supply.informant",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Element"
          }
        ]
      },
      {
        "id": "Supply.informant.typeCode",
        "path": "Supply.informant.typeCode",
        "representation": [
          "xmlAttr"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Supply.informant.typeCode",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "defaultValueCode": "INF",
        "fixedCode": "INF",
        "binding": {
          "strength": "required",
          "valueSet": "http://terminology.hl7.org/ValueSet/v3-ParticipationInformationGenerator"
        }
      },
      {
        "id": "Supply.informant.contextControlCode",
        "path": "Supply.informant.contextControlCode",
        "representation": [
          "xmlAttr"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Supply.informant.contextControlCode",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "defaultValueCode": "OP",
        "fixedCode": "OP",
        "binding": {
          "strength": "required",
          "valueSet": "http://terminology.hl7.org/ValueSet/v3-ContextControl"
        }
      },
      {
        "id": "Supply.informant.assignedEntity",
        "path": "Supply.informant.assignedEntity",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.informant.assignedEntity",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/AssignedEntity"
          }
        ]
      },
      {
        "id": "Supply.informant.relatedEntity",
        "path": "Supply.informant.relatedEntity",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.informant.relatedEntity",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/RelatedEntity"
          }
        ]
      },
      {
        "id": "Supply.participant",
        "path": "Supply.participant",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Supply.participant",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/Participant2"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship",
        "path": "Supply.entryRelationship",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "supply"
            }
          ],
          "rules": "open"
        },
        "min": 0,
        "max": "*",
        "base": {
          "path": "Supply.entryRelationship",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Element"
          }
        ],
        "constraint": [
          {
            "key": "sup-er-1",
            "severity": "error",
            "human": "Only one of observation, regionOfInterest, observationMedia, substanceAdministration, supply, procedure, encounter, organizer, and act",
            "expression": "(observation | regionOfInterest | observationMedia | substanceAdministration | supply | procedure | encounter | organizer | act).count() = 1",
            "source": "http://hl7.org/fhir/cda/StructureDefinition/Supply"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship.typeCode",
        "path": "Supply.entryRelationship.typeCode",
        "representation": [
          "xmlAttr"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Supply.entryRelationship.typeCode",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship.inversionInd",
        "path": "Supply.entryRelationship.inversionInd",
        "representation": [
          "xmlAttr"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.entryRelationship.inversionInd",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship.contextConductionInd",
        "path": "Supply.entryRelationship.contextConductionInd",
        "representation": [
          "xmlAttr"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Supply.entryRelationship.contextConductionInd",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean"
          }
        ],
        "defaultValueBoolean": true
      },
      {
        "id": "Supply.entryRelationship.sequenceNumber",
        "path": "Supply.entryRelationship.sequenceNumber",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.entryRelationship.sequenceNumber",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/INT"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship.negationInd",
        "path": "Supply.entryRelationship.negationInd",
        "representation": [
          "xmlAttr"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.entryRelationship.negationInd",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship.seperatableInd",
        "path": "Supply.entryRelationship.seperatableInd",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.entryRelationship.seperatableInd",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/BL"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship.observation",
        "path": "Supply.entryRelationship.observation",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.entryRelationship.observation",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/Observation"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship.regionOfInterest",
        "path": "Supply.entryRelationship.regionOfInterest",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.entryRelationship.regionOfInterest",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/RegionOfInterest"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship.observationMedia",
        "path": "Supply.entryRelationship.observationMedia",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.entryRelationship.observationMedia",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/ObservationMedia"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship.substanceAdministration",
        "path": "Supply.entryRelationship.substanceAdministration",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.entryRelationship.substanceAdministration",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/SubstanceAdministration"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship.supply",
        "path": "Supply.entryRelationship.supply",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.entryRelationship.supply",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/Supply"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship.procedure",
        "path": "Supply.entryRelationship.procedure",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.entryRelationship.procedure",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/Procedure"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship.encounter",
        "path": "Supply.entryRelationship.encounter",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.entryRelationship.encounter",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/Encounter"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship.organizer",
        "path": "Supply.entryRelationship.organizer",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.entryRelationship.organizer",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/Organizer"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship.act",
        "path": "Supply.entryRelationship.act",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.entryRelationship.act",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/Act"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship:supplyOrder",
        "path": "Supply.entryRelationship",
        "sliceName": "supplyOrder",
        "requirements": "MAY contain zero or one [0..1] entryRelationship (CONF:1098-7473) such that it",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.entryRelationship",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Element"
          }
        ],
        "constraint": [
          {
            "key": "sup-er-1",
            "severity": "error",
            "human": "Only one of observation, regionOfInterest, observationMedia, substanceAdministration, supply, procedure, encounter, organizer, and act",
            "expression": "(observation | regionOfInterest | observationMedia | substanceAdministration | supply | procedure | encounter | organizer | act).count() = 1",
            "source": "http://hl7.org/fhir/cda/StructureDefinition/Supply"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship:supplyOrder.typeCode",
        "path": "Supply.entryRelationship.typeCode",
        "representation": [
          "xmlAttr"
        ],
        "requirements": "SHALL contain exactly one [1..1] @typeCode=\"REFR\" (CodeSystem: HL7ActRelationshipType urn:oid:2.16.840.1.113883.5.1002 STATIC) (CONF:1098-7474).",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Supply.entryRelationship.typeCode",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "patternCode": "REFR"
      },
      {
        "id": "Supply.entryRelationship:supplyOrder.inversionInd",
        "path": "Supply.entryRelationship.inversionInd",
        "representation": [
          "xmlAttr"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.entryRelationship.inversionInd",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship:supplyOrder.contextConductionInd",
        "path": "Supply.entryRelationship.contextConductionInd",
        "representation": [
          "xmlAttr"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Supply.entryRelationship.contextConductionInd",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean"
          }
        ],
        "defaultValueBoolean": true
      },
      {
        "id": "Supply.entryRelationship:supplyOrder.sequenceNumber",
        "path": "Supply.entryRelationship.sequenceNumber",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.entryRelationship.sequenceNumber",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/INT"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship:supplyOrder.negationInd",
        "path": "Supply.entryRelationship.negationInd",
        "representation": [
          "xmlAttr"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.entryRelationship.negationInd",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship:supplyOrder.seperatableInd",
        "path": "Supply.entryRelationship.seperatableInd",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.entryRelationship.seperatableInd",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/BL"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship:supplyOrder.observation",
        "path": "Supply.entryRelationship.observation",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Supply.entryRelationship.observation",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/Observation"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship:supplyOrder.regionOfInterest",
        "path": "Supply.entryRelationship.regionOfInterest",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Supply.entryRelationship.regionOfInterest",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/RegionOfInterest"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship:supplyOrder.observationMedia",
        "path": "Supply.entryRelationship.observationMedia",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Supply.entryRelationship.observationMedia",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/ObservationMedia"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship:supplyOrder.substanceAdministration",
        "path": "Supply.entryRelationship.substanceAdministration",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Supply.entryRelationship.substanceAdministration",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/SubstanceAdministration"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship:supplyOrder.supply",
        "path": "Supply.entryRelationship.supply",
        "requirements": "SHALL contain exactly one [1..1] Medication Supply Order (V2) (identifier: urn:hl7ii:2.16.840.1.113883.10.20.22.4.17:2014-06-09) (CONF:1098-15606).",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Supply.entryRelationship.supply",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/Supply",
            "profile": [
              "http://hl7.org/fhir/cda/ccda/StructureDefinition/2.16.840.1.113883.10.20.22.4.17"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Supply.entryRelationship:supplyOrder.procedure",
        "path": "Supply.entryRelationship.procedure",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Supply.entryRelationship.procedure",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/Procedure"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship:supplyOrder.encounter",
        "path": "Supply.entryRelationship.encounter",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Supply.entryRelationship.encounter",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/Encounter"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship:supplyOrder.organizer",
        "path": "Supply.entryRelationship.organizer",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Supply.entryRelationship.organizer",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/Organizer"
          }
        ]
      },
      {
        "id": "Supply.entryRelationship:supplyOrder.act",
        "path": "Supply.entryRelationship.act",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Supply.entryRelationship.act",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/Act"
          }
        ]
      },
      {
        "id": "Supply.reference",
        "path": "Supply.reference",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Supply.reference",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Element"
          }
        ]
      },
      {
        "id": "Supply.reference.typeCode",
        "path": "Supply.reference.typeCode",
        "representation": [
          "xmlAttr"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Supply.reference.typeCode",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ]
      },
      {
        "id": "Supply.reference.seperatableInd",
        "path": "Supply.reference.seperatableInd",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.reference.seperatableInd",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/BL"
          }
        ]
      },
      {
        "id": "Supply.reference.externalAct",
        "path": "Supply.reference.externalAct",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.reference.externalAct",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/ExternalAct"
          }
        ]
      },
      {
        "id": "Supply.reference.externalObservation",
        "path": "Supply.reference.externalObservation",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.reference.externalObservation",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/ExternalObservation"
          }
        ]
      },
      {
        "id": "Supply.reference.externalProcedure",
        "path": "Supply.reference.externalProcedure",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.reference.externalProcedure",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/ExternalProcedure"
          }
        ]
      },
      {
        "id": "Supply.reference.externalDocument",
        "path": "Supply.reference.externalDocument",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Supply.reference.externalDocument",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/ExternalDocument"
          }
        ]
      },
      {
        "id": "Supply.precondition",
        "path": "Supply.precondition",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Supply.precondition",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/Precondition"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "Supply",
        "path": "Supply",
        "constraint": [
          {
            "key": "1098-9333",
            "severity": "error",
            "human": "A supply act  **SHALL** contain one product/Medication Information *OR* one product/Immunization Medication Information template (CONF:1098-9333)."
          }
        ]
      },
      {
        "id": "Supply.classCode",
        "path": "Supply.classCode",
        "requirements": "SHALL contain exactly one [1..1] @classCode=\"SPLY\" (CodeSystem: HL7ActClass urn:oid:2.16.840.1.113883.5.6 STATIC) (CONF:1098-7451).",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Supply.moodCode",
        "path": "Supply.moodCode",
        "requirements": "SHALL contain exactly one [1..1] @moodCode=\"EVN\" (CodeSystem: HL7ActMood urn:oid:2.16.840.1.113883.5.1001 STATIC) (CONF:1098-7452).",
        "min": 1,
        "max": "1",
        "patternCode": "EVN"
      },
      {
        "id": "Supply.templateId",
        "path": "Supply.templateId",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "root"
            },
            {
              "type": "value",
              "path": "extension"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Supply.templateId:primary",
        "path": "Supply.templateId",
        "sliceName": "primary",
        "requirements": "SHALL contain exactly one [1..1] templateId (CONF:1098-7453) such that it",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Supply.templateId:primary.root",
        "path": "Supply.templateId.root",
        "requirements": "SHALL contain exactly one [1..1] @root=\"2.16.840.1.113883.10.20.22.4.18\" (CONF:1098-10505).",
        "min": 1,
        "max": "1",
        "patternString": "2.16.840.1.113883.10.20.22.4.18"
      },
      {
        "id": "Supply.templateId:primary.extension",
        "path": "Supply.templateId.extension",
        "requirements": "SHALL contain exactly one [1..1] @extension=\"2014-06-09\" (CONF:1098-32580).",
        "min": 1,
        "max": "1",
        "patternString": "2014-06-09"
      },
      {
        "id": "Supply.id",
        "path": "Supply.id",
        "requirements": "SHALL contain at least one [1..*] id (CONF:1098-7454).",
        "min": 1,
        "max": "*"
      },
      {
        "id": "Supply.statusCode",
        "path": "Supply.statusCode",
        "requirements": "SHALL contain exactly one [1..1] statusCode (CONF:1098-7455).",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Supply.statusCode.code",
        "path": "Supply.statusCode.code",
        "requirements": "This statusCode SHALL contain exactly one [1..1] @code, which SHALL be selected from ValueSet Medication Fill Status urn:oid:2.16.840.1.113883.3.88.12.80.64 STATIC 2014-04-23 (CONF:1098-32361).",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.88.12.80.64"
        }
      },
      {
        "id": "Supply.effectiveTime",
        "path": "Supply.effectiveTime",
        "requirements": "SHOULD contain zero or one [0..1] effectiveTime (CONF:1098-7456).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Supply.repeatNumber",
        "path": "Supply.repeatNumber",
        "short": "In \"INT\" (intent) mood, the repeatNumber defines the number of allowed administrations. For example, a repeatNumber of \"3\" means that the substance can be administered up to 3 times. In \"EVN\" (event) mood, the repeatNumber is the number of occurrences. For example, a repeatNumber of \"3\" in a substance administration event means that the current administration is the 3rd in a series.",
        "requirements": "SHOULD contain zero or one [0..1] repeatNumber (CONF:1098-7457).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Supply.quantity",
        "path": "Supply.quantity",
        "requirements": "SHOULD contain zero or one [0..1] quantity (CONF:1098-7458).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Supply.product",
        "path": "Supply.product",
        "requirements": "MAY contain zero or one [0..1] product (CONF:1098-7459).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Supply.product.manufacturedProduct",
        "path": "Supply.product.manufacturedProduct",
        "requirements": "The product, if present, SHALL contain exactly one [1..1] Medication Information (V2) (identifier: urn:hl7ii:2.16.840.1.113883.10.20.22.4.23:2014-06-09) (CONF:1098-15607).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/ManufacturedProduct",
            "profile": [
              "http://hl7.org/fhir/cda/ccda/StructureDefinition/2.16.840.1.113883.10.20.22.4.23"
            ]
          },
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/ManufacturedProduct",
            "profile": [
              "http://hl7.org/fhir/cda/ccda/StructureDefinition/2.16.840.1.113883.10.20.22.4.54"
            ]
          }
        ]
      },
      {
        "id": "Supply.performer",
        "path": "Supply.performer",
        "requirements": "MAY contain zero or one [0..1] performer (CONF:1098-7461).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Supply.performer.assignedEntity",
        "path": "Supply.performer.assignedEntity",
        "requirements": "The performer, if present, SHALL contain exactly one [1..1] assignedEntity (CONF:1098-7467).",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Supply.performer.assignedEntity.addr",
        "path": "Supply.performer.assignedEntity.addr",
        "requirements": "This assignedEntity SHOULD contain zero or one [0..1] US Realm Address (AD.US.FIELDED) (identifier: urn:oid:2.16.840.1.113883.10.20.22.5.2) (CONF:1098-7468).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/AD",
            "profile": [
              "http://hl7.org/fhir/cda/ccda/StructureDefinition/2.16.840.1.113883.10.20.22.5.2"
            ]
          }
        ],
        "constraint": [
          {
            "key": "1098-10565",
            "severity": "error",
            "human": "The content of addr **SHALL** be a conformant US Realm Address (AD.US.FIELDED) (2.16.840.1.113883.10.20.22.5.2) (CONF:1098-10565)."
          }
        ]
      },
      {
        "id": "Supply.entryRelationship",
        "path": "Supply.entryRelationship",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "supply"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Supply.entryRelationship:supplyOrder",
        "path": "Supply.entryRelationship",
        "sliceName": "supplyOrder",
        "requirements": "MAY contain zero or one [0..1] entryRelationship (CONF:1098-7473) such that it",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Supply.entryRelationship:supplyOrder.typeCode",
        "path": "Supply.entryRelationship.typeCode",
        "requirements": "SHALL contain exactly one [1..1] @typeCode=\"REFR\" (CodeSystem: HL7ActRelationshipType urn:oid:2.16.840.1.113883.5.1002 STATIC) (CONF:1098-7474).",
        "min": 1,
        "max": "1",
        "patternCode": "REFR"
      },
      {
        "id": "Supply.entryRelationship:supplyOrder.supply",
        "path": "Supply.entryRelationship.supply",
        "requirements": "SHALL contain exactly one [1..1] Medication Supply Order (V2) (identifier: urn:hl7ii:2.16.840.1.113883.10.20.22.4.17:2014-06-09) (CONF:1098-15606).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "http://hl7.org/fhir/cda/StructureDefinition/Supply",
            "profile": [
              "http://hl7.org/fhir/cda/ccda/StructureDefinition/2.16.840.1.113883.10.20.22.4.17"
            ]
          }
        ]
      }
    ]
  }
}