PackagesCanonicalsLogsProblems
    Packages
    synapxe.nehr@1.0.0
    https://fhir.synapxe.sg/StructureDefinition/profile-medicationstatement
{
  "description": null,
  "_filename": "MedicationStatement.StructureDefinition.json",
  "package_name": "synapxe.nehr",
  "date": null,
  "derivation": "constraint",
  "publisher": null,
  "fhirVersion": "5.0.0",
  "name": "MedicationStatement",
  "abstract": false,
  "type": "MedicationStatement",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": null,
  "package_version": "1.0.0",
  "status": "draft",
  "id": "755307ab-c26f-493c-a094-3d1f3674624c",
  "kind": "resource",
  "url": "https://fhir.synapxe.sg/StructureDefinition/profile-medicationstatement",
  "version": null,
  "differential": {
    "element": [ {
      "constraint": [ {
        "key": "dom-2",
        "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.contained.empty()"
      }, {
        "key": "dom-4",
        "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"
      }, {
        "key": "dom-3",
        "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()"
      }, {
        "key": "dom-6",
        "human": "A resource should have narrative for robust management",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "warning",
        "expression": "text.`div`.exists()"
      }, {
        "key": "dom-5",
        "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.meta.security.empty()"
      }, {
        "key": "mdd-1",
        "human": "whenHandedOver cannot be before whenPrepared",
        "source": "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
        "severity": "error",
        "expression": "whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared"
      } ],
      "path": "MedicationStatement.contained",
      "min": 1,
      "definition": "An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationRequest\" rather than \"MedicationPrescription\" or \"MedicationOrder\" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns.",
      "short": "Ordering of medication for patient or group",
      "mapping": [ {
        "map": "Request",
        "identity": "workflow"
      }, {
        "map": "clinical.medication",
        "identity": "w5"
      }, {
        "map": "Message/Body/NewRx",
        "identity": "script10.6"
      } ],
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "$this",
          "type": "type"
        } ]
      },
      "alias": [ "Prescription", "Order" ],
      "id": "MedicationStatement.contained"
    }, {
      "id": "MedicationStatement.contained:MedicationRequest",
      "max": "1",
      "min": 1,
      "path": "MedicationStatement.contained",
      "type": [ {
        "code": "Resource",
        "profile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-medicationrequest" ]
      } ],
      "short": "Contained, inline Resources",
      "sliceName": "MedicationRequest",
      "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning."
    }, {
      "id": "MedicationStatement.contained:MedicationDispense",
      "max": "1",
      "min": 1,
      "path": "MedicationStatement.contained",
      "type": [ {
        "code": "Resource",
        "profile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-medicationdispense" ]
      } ],
      "short": "Contained, inline Resources",
      "sliceName": "MedicationDispense",
      "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning."
    }, {
      "id": "MedicationStatement.contained:Medication",
      "max": "1",
      "min": 1,
      "path": "MedicationStatement.contained",
      "type": [ {
        "code": "Resource",
        "profile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-medication" ]
      } ],
      "sliceName": "Medication"
    }, {
      "id": "MedicationStatement.extension",
      "min": 4,
      "path": "MedicationStatement.extension"
    }, {
      "id": "MedicationStatement.extension:sequenceNo",
      "max": "1",
      "min": 1,
      "path": "MedicationStatement.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://fhir.synapxe.sg/StructureDefinition/ext-sequenceno" ]
      } ],
      "sliceName": "sequenceNo"
    }, {
      "id": "MedicationStatement.extension:groupNo",
      "max": "1",
      "min": 1,
      "path": "MedicationStatement.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://fhir.synapxe.sg/StructureDefinition/ext-groupno" ]
      } ],
      "sliceName": "groupNo"
    }, {
      "id": "MedicationStatement.extension:groupSequenceNo",
      "max": "1",
      "min": 1,
      "path": "MedicationStatement.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://fhir.synapxe.sg/StructureDefinition/ext-groupsequenceno" ]
      } ],
      "sliceName": "groupSequenceNo"
    }, {
      "id": "MedicationStatement.extension:changesMade",
      "max": "1",
      "path": "MedicationStatement.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://fhir.synapxe.sg/StructureDefinition/ext-changesmade" ]
      } ],
      "sliceName": "changesMade"
    }, {
      "id": "MedicationStatement.extension:reasonForChange",
      "max": "1",
      "min": 1,
      "path": "MedicationStatement.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://fhir.synapxe.sg/StructureDefinition/ext-reasonforchange" ]
      } ],
      "sliceName": "reasonForChange"
    }, {
      "id": "MedicationStatement.modifierExtension",
      "max": "0",
      "path": "MedicationStatement.modifierExtension"
    }, {
      "id": "MedicationStatement.identifier",
      "max": "1",
      "min": 1,
      "path": "MedicationStatement.identifier"
    }, {
      "id": "MedicationStatement.identifier.id",
      "max": "0",
      "path": "MedicationStatement.identifier.id"
    }, {
      "id": "MedicationStatement.identifier.extension",
      "max": "0",
      "path": "MedicationStatement.identifier.extension"
    }, {
      "id": "MedicationStatement.identifier.use",
      "max": "0",
      "path": "MedicationStatement.identifier.use"
    }, {
      "id": "MedicationStatement.identifier.type",
      "max": "0",
      "path": "MedicationStatement.identifier.type"
    }, {
      "id": "MedicationStatement.identifier.system",
      "min": 1,
      "path": "MedicationStatement.identifier.system"
    }, {
      "id": "MedicationStatement.identifier.value",
      "min": 1,
      "path": "MedicationStatement.identifier.value"
    }, {
      "id": "MedicationStatement.identifier.period",
      "max": "0",
      "path": "MedicationStatement.identifier.period"
    }, {
      "id": "MedicationStatement.identifier.assigner",
      "max": "0",
      "path": "MedicationStatement.identifier.assigner"
    }, {
      "id": "MedicationStatement.partOf",
      "max": "0",
      "path": "MedicationStatement.partOf"
    }, {
      "id": "MedicationStatement.category",
      "max": "0",
      "path": "MedicationStatement.category"
    }, {
      "id": "MedicationStatement.medication.id",
      "max": "0",
      "path": "MedicationStatement.medication.id"
    }, {
      "id": "MedicationStatement.medication.extension",
      "max": "0",
      "path": "MedicationStatement.medication.extension"
    }, {
      "id": "MedicationStatement.medication.concept",
      "max": "0",
      "path": "MedicationStatement.medication.concept"
    }, {
      "id": "MedicationStatement.medication.reference",
      "min": 1,
      "path": "MedicationStatement.medication.reference"
    }, {
      "id": "MedicationStatement.medication.reference.id",
      "max": "0",
      "path": "MedicationStatement.medication.reference.id"
    }, {
      "id": "MedicationStatement.medication.reference.extension",
      "max": "0",
      "path": "MedicationStatement.medication.reference.extension"
    }, {
      "id": "MedicationStatement.medication.reference.reference",
      "min": 1,
      "path": "MedicationStatement.medication.reference.reference"
    }, {
      "id": "MedicationStatement.medication.reference.type",
      "max": "0",
      "path": "MedicationStatement.medication.reference.type"
    }, {
      "id": "MedicationStatement.medication.reference.identifier",
      "max": "0",
      "path": "MedicationStatement.medication.reference.identifier"
    }, {
      "id": "MedicationStatement.medication.reference.display",
      "max": "0",
      "path": "MedicationStatement.medication.reference.display"
    }, {
      "id": "MedicationStatement.encounter",
      "max": "0",
      "path": "MedicationStatement.encounter"
    }, {
      "id": "MedicationStatement.effective[x]",
      "max": "0",
      "path": "MedicationStatement.effective[x]"
    }, {
      "id": "MedicationStatement.dateAsserted",
      "min": 1,
      "path": "MedicationStatement.dateAsserted"
    }, {
      "id": "MedicationStatement.informationSource",
      "max": "1",
      "path": "MedicationStatement.informationSource"
    }, {
      "id": "MedicationStatement.derivedFrom",
      "min": 1,
      "path": "MedicationStatement.derivedFrom",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "reference",
          "type": "type"
        } ]
      }
    }, {
      "id": "MedicationStatement.derivedFrom.id",
      "max": "0",
      "path": "MedicationStatement.derivedFrom.id"
    }, {
      "id": "MedicationStatement.derivedFrom.extension",
      "max": "0",
      "path": "MedicationStatement.derivedFrom.extension"
    }, {
      "id": "MedicationStatement.derivedFrom.reference",
      "min": 1,
      "path": "MedicationStatement.derivedFrom.reference"
    }, {
      "id": "MedicationStatement.derivedFrom.type",
      "max": "0",
      "path": "MedicationStatement.derivedFrom.type"
    }, {
      "id": "MedicationStatement.derivedFrom.identifier",
      "max": "0",
      "path": "MedicationStatement.derivedFrom.identifier"
    }, {
      "id": "MedicationStatement.derivedFrom.display",
      "max": "0",
      "path": "MedicationStatement.derivedFrom.display"
    }, {
      "id": "MedicationStatement.derivedFrom:MedicationRequest",
      "max": "1",
      "min": 1,
      "path": "MedicationStatement.derivedFrom",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-medicationrequest" ]
      } ],
      "sliceName": "MedicationRequest"
    }, {
      "id": "MedicationStatement.derivedFrom:MedicationDispense",
      "max": "1",
      "min": 1,
      "path": "MedicationStatement.derivedFrom",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-medicationdispense" ]
      } ],
      "sliceName": "MedicationDispense"
    }, {
      "id": "MedicationStatement.reason",
      "max": "1",
      "min": 1,
      "path": "MedicationStatement.reason"
    }, {
      "id": "MedicationStatement.reason.id",
      "max": "0",
      "path": "MedicationStatement.reason.id"
    }, {
      "id": "MedicationStatement.reason.extension",
      "max": "0",
      "path": "MedicationStatement.reason.extension"
    }, {
      "id": "MedicationStatement.reason.concept",
      "min": 1,
      "path": "MedicationStatement.reason.concept"
    }, {
      "id": "MedicationStatement.reason.concept.id",
      "max": "0",
      "path": "MedicationStatement.reason.concept.id"
    }, {
      "id": "MedicationStatement.reason.concept.extension",
      "max": "0",
      "path": "MedicationStatement.reason.concept.extension"
    }, {
      "id": "MedicationStatement.reason.concept.coding",
      "max": "1",
      "min": 1,
      "path": "MedicationStatement.reason.concept.coding"
    }, {
      "id": "MedicationStatement.reason.concept.coding.id",
      "max": "0",
      "path": "MedicationStatement.reason.concept.coding.id"
    }, {
      "id": "MedicationStatement.reason.concept.coding.extension",
      "max": "0",
      "path": "MedicationStatement.reason.concept.coding.extension"
    }, {
      "id": "MedicationStatement.reason.concept.coding.system",
      "min": 1,
      "path": "MedicationStatement.reason.concept.coding.system"
    }, {
      "id": "MedicationStatement.reason.concept.coding.version",
      "max": "0",
      "path": "MedicationStatement.reason.concept.coding.version"
    }, {
      "id": "MedicationStatement.reason.concept.coding.code",
      "min": 1,
      "path": "MedicationStatement.reason.concept.coding.code"
    }, {
      "id": "MedicationStatement.reason.concept.coding.display",
      "min": 1,
      "path": "MedicationStatement.reason.concept.coding.display"
    }, {
      "id": "MedicationStatement.reason.concept.coding.userSelected",
      "max": "0",
      "path": "MedicationStatement.reason.concept.coding.userSelected"
    }, {
      "id": "MedicationStatement.reason.concept.text",
      "max": "0",
      "path": "MedicationStatement.reason.concept.text"
    }, {
      "id": "MedicationStatement.note",
      "max": "1",
      "min": 1,
      "path": "MedicationStatement.note"
    }, {
      "id": "MedicationStatement.note.id",
      "max": "0",
      "path": "MedicationStatement.note.id"
    }, {
      "id": "MedicationStatement.note.extension",
      "max": "0",
      "path": "MedicationStatement.note.extension"
    }, {
      "id": "MedicationStatement.note.author[x]",
      "max": "0",
      "path": "MedicationStatement.note.author[x]"
    }, {
      "id": "MedicationStatement.note.time",
      "max": "0",
      "path": "MedicationStatement.note.time"
    }, {
      "id": "MedicationStatement.relatedClinicalInformation",
      "max": "0",
      "path": "MedicationStatement.relatedClinicalInformation"
    }, {
      "id": "MedicationStatement.renderedDosageInstruction",
      "max": "0",
      "path": "MedicationStatement.renderedDosageInstruction"
    }, {
      "id": "MedicationStatement.dosage",
      "max": "1",
      "min": 1,
      "path": "MedicationStatement.dosage"
    }, {
      "id": "MedicationStatement.dosage.id",
      "max": "0",
      "path": "MedicationStatement.dosage.id"
    }, {
      "id": "MedicationStatement.dosage.extension",
      "max": "0",
      "path": "MedicationStatement.dosage.extension"
    }, {
      "id": "MedicationStatement.dosage.modifierExtension",
      "max": "0",
      "path": "MedicationStatement.dosage.modifierExtension"
    }, {
      "id": "MedicationStatement.dosage.sequence",
      "max": "0",
      "path": "MedicationStatement.dosage.sequence"
    }, {
      "id": "MedicationStatement.dosage.text",
      "min": 1,
      "path": "MedicationStatement.dosage.text"
    }, {
      "id": "MedicationStatement.dosage.additionalInstruction",
      "max": "0",
      "path": "MedicationStatement.dosage.additionalInstruction"
    }, {
      "id": "MedicationStatement.dosage.patientInstruction",
      "max": "0",
      "path": "MedicationStatement.dosage.patientInstruction"
    }, {
      "id": "MedicationStatement.dosage.timing",
      "max": "0",
      "path": "MedicationStatement.dosage.timing"
    }, {
      "id": "MedicationStatement.dosage.asNeeded",
      "max": "0",
      "path": "MedicationStatement.dosage.asNeeded"
    }, {
      "id": "MedicationStatement.dosage.asNeededFor",
      "max": "1",
      "min": 1,
      "path": "MedicationStatement.dosage.asNeededFor"
    }, {
      "id": "MedicationStatement.dosage.asNeededFor.id",
      "max": "0",
      "path": "MedicationStatement.dosage.asNeededFor.id"
    }, {
      "id": "MedicationStatement.dosage.asNeededFor.extension",
      "max": "0",
      "path": "MedicationStatement.dosage.asNeededFor.extension"
    }, {
      "id": "MedicationStatement.dosage.asNeededFor.coding",
      "max": "1",
      "min": 1,
      "path": "MedicationStatement.dosage.asNeededFor.coding"
    }, {
      "id": "MedicationStatement.dosage.asNeededFor.coding.id",
      "max": "0",
      "path": "MedicationStatement.dosage.asNeededFor.coding.id"
    }, {
      "id": "MedicationStatement.dosage.asNeededFor.coding.extension",
      "max": "0",
      "path": "MedicationStatement.dosage.asNeededFor.coding.extension"
    }, {
      "id": "MedicationStatement.dosage.asNeededFor.coding.system",
      "min": 1,
      "path": "MedicationStatement.dosage.asNeededFor.coding.system"
    }, {
      "id": "MedicationStatement.dosage.asNeededFor.coding.version",
      "max": "0",
      "path": "MedicationStatement.dosage.asNeededFor.coding.version"
    }, {
      "id": "MedicationStatement.dosage.asNeededFor.coding.code",
      "min": 1,
      "path": "MedicationStatement.dosage.asNeededFor.coding.code"
    }, {
      "id": "MedicationStatement.dosage.asNeededFor.coding.display",
      "min": 1,
      "path": "MedicationStatement.dosage.asNeededFor.coding.display"
    }, {
      "id": "MedicationStatement.dosage.asNeededFor.coding.userSelected",
      "max": "0",
      "path": "MedicationStatement.dosage.asNeededFor.coding.userSelected"
    }, {
      "id": "MedicationStatement.dosage.asNeededFor.text",
      "max": "0",
      "path": "MedicationStatement.dosage.asNeededFor.text"
    }, {
      "id": "MedicationStatement.dosage.site",
      "max": "0",
      "path": "MedicationStatement.dosage.site"
    }, {
      "id": "MedicationStatement.dosage.route",
      "min": 1,
      "path": "MedicationStatement.dosage.route"
    }, {
      "id": "MedicationStatement.dosage.route.id",
      "max": "0",
      "path": "MedicationStatement.dosage.route.id"
    }, {
      "id": "MedicationStatement.dosage.route.extension",
      "max": "0",
      "path": "MedicationStatement.dosage.route.extension"
    }, {
      "id": "MedicationStatement.dosage.route.coding",
      "max": "1",
      "min": 1,
      "path": "MedicationStatement.dosage.route.coding"
    }, {
      "id": "MedicationStatement.dosage.route.coding.id",
      "max": "0",
      "path": "MedicationStatement.dosage.route.coding.id"
    }, {
      "id": "MedicationStatement.dosage.route.coding.extension",
      "max": "0",
      "path": "MedicationStatement.dosage.route.coding.extension"
    }, {
      "id": "MedicationStatement.dosage.route.coding.system",
      "min": 1,
      "path": "MedicationStatement.dosage.route.coding.system"
    }, {
      "id": "MedicationStatement.dosage.route.coding.version",
      "max": "0",
      "path": "MedicationStatement.dosage.route.coding.version"
    }, {
      "id": "MedicationStatement.dosage.route.coding.code",
      "min": 1,
      "path": "MedicationStatement.dosage.route.coding.code"
    }, {
      "id": "MedicationStatement.dosage.route.coding.display",
      "min": 1,
      "path": "MedicationStatement.dosage.route.coding.display"
    }, {
      "id": "MedicationStatement.dosage.route.coding.userSelected",
      "max": "0",
      "path": "MedicationStatement.dosage.route.coding.userSelected"
    }, {
      "id": "MedicationStatement.dosage.route.text",
      "max": "0",
      "path": "MedicationStatement.dosage.route.text"
    }, {
      "id": "MedicationStatement.dosage.method",
      "max": "0",
      "path": "MedicationStatement.dosage.method"
    }, {
      "id": "MedicationStatement.dosage.doseAndRate",
      "max": "1",
      "min": 1,
      "path": "MedicationStatement.dosage.doseAndRate"
    }, {
      "id": "MedicationStatement.dosage.doseAndRate.id",
      "max": "0",
      "path": "MedicationStatement.dosage.doseAndRate.id"
    }, {
      "id": "MedicationStatement.dosage.doseAndRate.extension",
      "max": "0",
      "path": "MedicationStatement.dosage.doseAndRate.extension"
    }, {
      "id": "MedicationStatement.dosage.doseAndRate.type",
      "max": "0",
      "path": "MedicationStatement.dosage.doseAndRate.type"
    }, {
      "id": "MedicationStatement.dosage.doseAndRate.dose[x]",
      "min": 1,
      "path": "MedicationStatement.dosage.doseAndRate.dose[x]",
      "type": [ {
        "code": "Range"
      } ]
    }, {
      "id": "MedicationStatement.dosage.doseAndRate.rate[x]",
      "max": "0",
      "path": "MedicationStatement.dosage.doseAndRate.rate[x]"
    }, {
      "id": "MedicationStatement.dosage.maxDosePerPeriod",
      "max": "0",
      "path": "MedicationStatement.dosage.maxDosePerPeriod"
    }, {
      "id": "MedicationStatement.dosage.maxDosePerAdministration",
      "max": "0",
      "path": "MedicationStatement.dosage.maxDosePerAdministration"
    }, {
      "id": "MedicationStatement.dosage.maxDosePerLifetime",
      "max": "0",
      "path": "MedicationStatement.dosage.maxDosePerLifetime"
    }, {
      "id": "MedicationStatement.adherence",
      "max": "0",
      "path": "MedicationStatement.adherence"
    } ]
  },
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationStatement"
}