{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2018-02-20T23:47:03.873+00:00"
  },
  "url": "http://hl7.org/fhir/ips/StructureDefinition/medicationstatement-uv-ips",
  "name": "MedicationStatement-uv-ips",
  "title": "Medication Statement",
  "status": "draft",
  "date": "2018-02-14T21:57:06.512+00:00",
  "publisher": "HL7 International",
  "contact": [
    {
      "name": "Christof Gessner"
    },
    {
      "name": "François Macary"
    }
  ],
  "description": "This profile represents the constraints applied to the MedicationStatement resource by the International Patient Summary (IPS) FHIR Implementation Guide, based on FHIR STU3. A record of a medication statement is represented in the patient summary as an instance of a MedicationStatement resource constrained by this profile.",
  "purpose": "This profile constrains the representation of a medication statement related to the patient, in the context of the international patient summary as specified by the IPS project of HL7 International.",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationStatement",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationStatement",
        "path": "MedicationStatement"
      },
      {
        "id": "MedicationStatement.basedOn",
        "path": "MedicationStatement.basedOn"
      },
      {
        "id": "MedicationStatement.extension",
        "path": "MedicationStatement.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "MedicationStatement.extension:dateAbsentReason",
        "path": "MedicationStatement.extension",
        "sliceName": "dateAbsentReason",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/data-absent-reason-uv-ips"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.basedOn.identifier",
        "path": "MedicationStatement.basedOn.identifier",
        "max": "0"
      },
      {
        "id": "MedicationStatement.partOf",
        "path": "MedicationStatement.partOf"
      },
      {
        "id": "MedicationStatement.partOf.identifier",
        "path": "MedicationStatement.partOf.identifier",
        "max": "0"
      },
      {
        "id": "MedicationStatement.context",
        "path": "MedicationStatement.context"
      },
      {
        "id": "MedicationStatement.context.identifier",
        "path": "MedicationStatement.context.identifier",
        "max": "0"
      },
      {
        "id": "MedicationStatement.status",
        "path": "MedicationStatement.status",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.category",
        "path": "MedicationStatement.category",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ]
      },
      {
        "id": "MedicationStatement.medication[x]",
        "path": "MedicationStatement.medication[x]",
        "definition": "Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that gives a reason for absent or unknown Medication..",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/ips/StructureDefinition/medication-uv-ips"
          }
        ],
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "MedicationCode"
            }
          ],
          "strength": "required",
          "description": "Representation of unknown or absent medications",
          "valueSetUri": "http://hl7.org/fhir/ips/ValueSet/absent-or-unknown-medication-uv-ips"
        }
      },
      {
        "id": "MedicationStatement.effective[x]",
        "path": "MedicationStatement.effective[x]",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.informationSource",
        "path": "MedicationStatement.informationSource"
      },
      {
        "id": "MedicationStatement.informationSource.identifier",
        "path": "MedicationStatement.informationSource.identifier",
        "max": "0"
      },
      {
        "id": "MedicationStatement.subject",
        "path": "MedicationStatement.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ]
      },
      {
        "id": "MedicationStatement.subject.identifier",
        "path": "MedicationStatement.subject.identifier",
        "max": "0"
      },
      {
        "id": "MedicationStatement.derivedFrom",
        "path": "MedicationStatement.derivedFrom"
      },
      {
        "id": "MedicationStatement.derivedFrom.identifier",
        "path": "MedicationStatement.derivedFrom.identifier",
        "max": "0"
      },
      {
        "id": "MedicationStatement.reasonNotTaken",
        "path": "MedicationStatement.reasonNotTaken",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ]
      },
      {
        "id": "MedicationStatement.reasonCode",
        "path": "MedicationStatement.reasonCode",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ]
      },
      {
        "id": "MedicationStatement.reasonReference",
        "path": "MedicationStatement.reasonReference"
      },
      {
        "id": "MedicationStatement.reasonReference.identifier",
        "path": "MedicationStatement.reasonReference.identifier",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage",
        "path": "MedicationStatement.dosage",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage.text",
        "path": "MedicationStatement.dosage.text",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage.additionalInstruction",
        "path": "MedicationStatement.dosage.additionalInstruction",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ]
      },
      {
        "id": "MedicationStatement.dosage.patientInstruction",
        "path": "MedicationStatement.dosage.patientInstruction",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage.timing",
        "path": "MedicationStatement.dosage.timing",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat",
        "path": "MedicationStatement.dosage.timing.repeat"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.bounds[x]",
        "path": "MedicationStatement.dosage.timing.repeat.bounds[x]",
        "type": [
          {
            "code": "Duration"
          },
          {
            "code": "Period"
          },
          {
            "code": "Range",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/Range-uv-ips"
          }
        ]
      },
      {
        "id": "MedicationStatement.dosage.timing.code",
        "path": "MedicationStatement.dosage.timing.code",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ]
      },
      {
        "id": "MedicationStatement.dosage.timing.code.coding",
        "path": "MedicationStatement.dosage.timing.code.coding"
      },
      {
        "id": "MedicationStatement.dosage.timing.code.coding.system",
        "path": "MedicationStatement.dosage.timing.code.coding.system",
        "binding": {
          "strength": "example",
          "valueSetUri": "http://hl7.org/fhir/valueset-event-timing.html"
        }
      },
      {
        "id": "MedicationStatement.dosage.site",
        "path": "MedicationStatement.dosage.site",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ]
      },
      {
        "id": "MedicationStatement.dosage.site.coding",
        "path": "MedicationStatement.dosage.site.coding",
        "binding": {
          "strength": "preferred",
          "valueSetUri": "http://hl7.org/fhir/ips/ValueSet/target-site-uv-ips"
        }
      },
      {
        "id": "MedicationStatement.dosage.site.coding.system",
        "path": "MedicationStatement.dosage.site.coding.system",
        "binding": {
          "strength": "preferred",
          "valueSetUri": "http://hl7.org/fhir/ips/ValueSet/target-site-uv-ips"
        }
      },
      {
        "id": "MedicationStatement.dosage.route",
        "path": "MedicationStatement.dosage.route",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage.route.coding",
        "path": "MedicationStatement.dosage.route.coding",
        "binding": {
          "strength": "preferred",
          "description": "EDQM Standards Terms",
          "valueSetUri": "http://hl7.org/fhir/ips/ValueSet/medicine-route-of-administration"
        }
      },
      {
        "id": "MedicationStatement.dosage.route.coding.system",
        "path": "MedicationStatement.dosage.route.coding.system",
        "binding": {
          "strength": "preferred",
          "valueSetUri": "http://hl7.org/fhir/ips/ValueSet/medicine-route-of-administration"
        }
      },
      {
        "id": "MedicationStatement.dosage.method",
        "path": "MedicationStatement.dosage.method",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ]
      },
      {
        "id": "MedicationStatement.dosage.maxDosePerPeriod",
        "path": "MedicationStatement.dosage.maxDosePerPeriod",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.maxDosePerAdministration",
        "path": "MedicationStatement.dosage.maxDosePerAdministration",
        "max": "0",
        "type": [
          {
            "code": "Quantity",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/Quantity-uv-ips"
          }
        ]
      },
      {
        "id": "MedicationStatement.dosage.maxDosePerAdministration.comparator",
        "path": "MedicationStatement.dosage.maxDosePerAdministration.comparator",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.maxDosePerLifetime",
        "path": "MedicationStatement.dosage.maxDosePerLifetime",
        "max": "0",
        "type": [
          {
            "code": "Quantity",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/Quantity-uv-ips"
          }
        ]
      },
      {
        "id": "MedicationStatement.dosage.maxDosePerLifetime.comparator",
        "path": "MedicationStatement.dosage.maxDosePerLifetime.comparator",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.rateQuantity:rateQuantity",
        "path": "MedicationStatement.dosage.rateQuantity",
        "sliceName": "rateQuantity",
        "max": "0",
        "type": [
          {
            "code": "Quantity",
            "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
          }
        ]
      }
    ]
  }
}