{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.cambio.se/StructureDefinition/MedicationRequestDoseDispensing",
  "version": "1.0",
  "name": "MedicationRequestDoseDispensing",
  "status": "draft",
  "description": "This profile will be used for communicating prescription data that needs to be dispensed from dose dispensing machines.",
  "copyright": "Kalindu Perera @Cambio 2023",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "MedicationRequest",
        "path": "MedicationRequest",
        "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. This profile will be used for communicating prescription data that needs to be dispensed from dose dispensing machines."
      },
      {
        "id": "MedicationRequest.intent",
        "path": "MedicationRequest.intent",
        "requirements": "The use case to order set of drugs to be dispensed from a machine",
        "fixedCode": "order"
      },
      {
        "id": "MedicationRequest.subject",
        "path": "MedicationRequest.subject",
        "requirements": "Since when requested from the external system they will send one request per patient so we will not send multiple patient data in one medicationRequest response. Also will be sending information of one prescription in one medicationRequest response so there will be no use case for use groups",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "MedicationRequest.instantiatesCanonical",
        "path": "MedicationRequest.instantiatesCanonical",
        "max": "0"
      },
      {
        "id": "MedicationRequest.instantiatesUri",
        "path": "MedicationRequest.instantiatesUri",
        "max": "0"
      },
      {
        "id": "MedicationRequest.courseOfTherapyType",
        "path": "MedicationRequest.courseOfTherapyType",
        "requirements": "Not available in the cambio medication",
        "max": "0"
      },
      {
        "id": "MedicationRequest.insurance",
        "path": "MedicationRequest.insurance",
        "requirements": "No use case to communicate insuarance details from this profile",
        "max": "0"
      },
      {
        "id": "MedicationRequest.eventHistory",
        "path": "MedicationRequest.eventHistory",
        "max": "0"
      }
    ]
  }
}