{
  "resourceType": "StructureDefinition",
  "id": "MedicationDispense-my-core",
  "meta": {
    "lastUpdated": "2022-01-06T07:00:33.457+00:00"
  },
  "url": "https://smilecdr.mhn.asia/baseR4/fhir/my/core/StructureDefinition/MedicationDispenseMyCore",
  "name": "MedicationDispenseMyCore",
  "title": "MedicationDispense (My Core)",
  "status": "draft",
  "date": "2022-01-06T04:13:14.0110509Z",
  "description": "This resource covers all type of orders for medications for a patient. This includes inpatient medication orders as well as community orders (whether filled by the prescriber or by a pharmacy).",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationDispense",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationDispense.id",
        "path": "MedicationDispense.id",
        "short": "Logical id of this artifact"
      },
      {
        "id": "MedicationDispense.meta",
        "path": "MedicationDispense.meta",
        "short": "Metadata about the resource"
      },
      {
        "id": "MedicationDispense.implicitRules",
        "path": "MedicationDispense.implicitRules",
        "min": 1
      },
      {
        "id": "MedicationDispense.text",
        "path": "MedicationDispense.text",
        "min": 1
      },
      {
        "id": "MedicationDispense.identifier",
        "path": "MedicationDispense.identifier",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicationDispense.partOf",
        "path": "MedicationDispense.partOf",
        "max": "1"
      },
      {
        "id": "MedicationDispense.statusReason[x]",
        "path": "MedicationDispense.statusReason[x]",
        "min": 1
      },
      {
        "id": "MedicationDispense.category",
        "path": "MedicationDispense.category",
        "short": "Type of medication dispense",
        "definition": "Indicates the type of medication dispense (for example, where the medication is expected to be consumed or administered (i.e. inpatient or outpatient))"
      },
      {
        "id": "MedicationDispense.category.coding",
        "path": "MedicationDispense.category.coding",
        "max": "1"
      },
      {
        "id": "MedicationDispense.category.text",
        "path": "MedicationDispense.category.text",
        "short": "Plain text representation of the concept"
      },
      {
        "id": "MedicationDispense.subject",
        "path": "MedicationDispense.subject",
        "min": 1
      },
      {
        "id": "MedicationDispense.performer",
        "path": "MedicationDispense.performer",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicationDispense.location",
        "path": "MedicationDispense.location",
        "min": 1
      },
      {
        "id": "MedicationDispense.authorizingPrescription",
        "path": "MedicationDispense.authorizingPrescription",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicationDispense.type",
        "path": "MedicationDispense.type",
        "min": 1
      },
      {
        "id": "MedicationDispense.quantity",
        "path": "MedicationDispense.quantity",
        "min": 1
      },
      {
        "id": "MedicationDispense.daysSupply",
        "path": "MedicationDispense.daysSupply",
        "min": 1
      },
      {
        "id": "MedicationDispense.destination",
        "path": "MedicationDispense.destination",
        "min": 1
      },
      {
        "id": "MedicationDispense.receiver",
        "path": "MedicationDispense.receiver",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicationDispense.note",
        "path": "MedicationDispense.note",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicationDispense.dosageInstruction",
        "path": "MedicationDispense.dosageInstruction",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicationDispense.substitution",
        "path": "MedicationDispense.substitution",
        "definition": "Indicates whether or not substitution was made as part of the dispense.  In some cases, substitution will be expected but does not happen, in other cases substitution is not expected but does happen.  This block explains what substitution did or did not happen and why.  If nothing is specified, substitution was not done"
      }
    ]
  }
}