{
  "resourceType": "StructureDefinition",
  "id": "MedicationStatement-uv-ips",
  "meta": {
    "lastUpdated": "2018-02-20T23:47:03.873+00:00"
  },
  "url": "http://hl7.org/fhir/uv/ips/StructureDefinition/MedicationStatement-uv-ips",
  "name": "MedicationStatementIPS",
  "title": "Medication Statement (IPS)",
  "status": "active",
  "date": "2018-02-14T21:57:06.512+00:00",
  "publisher": "HL7 International",
  "description": "This profile represents the constraints applied to the MedicationStatement resource by the International Patient Summary (IPS) FHIR Implementation Guide, based on FHIR R4. 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.",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationStatement",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationStatement",
        "path": "MedicationStatement",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.id",
        "path": "MedicationStatement.id",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.status",
        "path": "MedicationStatement.status",
        "comment": "In the scope of the IPS the entered-in-error concept is not allowed.",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.medication[x]",
        "path": "MedicationStatement.medication[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "definition": "Identifies the medication being administered or the reason for absent or unknown Medication. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code. To improve global interoperability is strongly encouraged that the reference to a medication resource is used, limiting the usage of the medicationCodeableConcept only to the cases in which no other information than a simple code is available.",
        "mustSupport": true,
        "binding": {
          "strength": "example",
          "description": "The type of medication",
          "valueSetUnknownType_StructureDefinition.differential.element[3].binding": "http://hl7.org/fhir/uv/ips/ValueSet/medication-example-uv-ips"
        }
      },
      {
        "id": "MedicationStatement.medication[x]:medicationReference",
        "path": "MedicationStatement.medication[x]",
        "sliceName": "medicationReference",
        "definition": "Identifies the medication being administered or the reason for absent or unknown Medication. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code. To improve global interoperability is strongly encouraged that the reference to a medication resource is used, limiting the usage of the medicationCodeableConcept only to the cases in which no other information than a simple code is available.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/uv/ips/StructureDefinition/Medication-uv-ips"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.medication[x]:medicationCodeableConcept",
        "path": "MedicationStatement.medication[x]",
        "sliceName": "medicationCodeableConcept",
        "short": "Code for absent or unknown medication",
        "definition": "Code for a negated/excluded medication statement.  This describes a categorical negated statement (e.g.,  \"No known allergy\").",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ],
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "UnknownMedicationCode"
            }
          ],
          "strength": "extensible",
          "description": "Representation of unknown or absent medications",
          "valueSetUnknownType_StructureDefinition.differential.element[5].binding": "http://hl7.org/fhir/uv/ips/ValueSet/absent-or-unknown-medications-uv-ips"
        }
      },
      {
        "id": "MedicationStatement.subject",
        "path": "MedicationStatement.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/uv/ips/StructureDefinition/Patient-uv-ips"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.effective[x]",
        "path": "MedicationStatement.effective[x]",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.effective[x]:data-absent-reason",
        "path": "MedicationStatement.effective[x].extension",
        "short": "effective[x] absence reason",
        "definition": "Provides a reason why the effectiveTime is missing.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.informationSource",
        "path": "MedicationStatement.informationSource",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage",
        "path": "MedicationStatement.dosage",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage.text",
        "path": "MedicationStatement.dosage.text",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage.timing",
        "path": "MedicationStatement.dosage.timing",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage.route",
        "path": "MedicationStatement.dosage.route",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "preferred",
          "description": "EDQM Standards Terms",
          "valueSetUnknownType_StructureDefinition.differential.element[13].binding": "http://hl7.org/fhir/uv/ips/ValueSet/medicine-route-of-administration"
        }
      }
    ]
  }
}