{
  "resourceType": "StructureDefinition",
  "id": "VGHKS-MedicationRequest-TOTFA",
  "url": "http://standard-interoperability-lab.com/fhir/StructureDefinition/VGHKSMedicationRequestTOTFA",
  "name": "VGHKSMedicationRequestTOTFA",
  "title": "VGHKS MedicationRequest TOTFA profile",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationRequest.identifier.use",
        "path": "MedicationRequest.identifier.use",
        "max": "0"
      },
      {
        "id": "MedicationRequest.identifier.type",
        "path": "MedicationRequest.identifier.type",
        "max": "0"
      },
      {
        "id": "MedicationRequest.identifier.system",
        "path": "MedicationRequest.identifier.system",
        "max": "0"
      },
      {
        "id": "MedicationRequest.identifier.value",
        "path": "MedicationRequest.identifier.value",
        "short": "TOTFA.p13",
        "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.\r\n醫令序"
      },
      {
        "id": "MedicationRequest.identifier.period",
        "path": "MedicationRequest.identifier.period",
        "max": "0"
      },
      {
        "id": "MedicationRequest.identifier.assigner",
        "path": "MedicationRequest.identifier.assigner",
        "max": "0"
      },
      {
        "id": "MedicationRequest.status",
        "path": "MedicationRequest.status",
        "short": "[active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown]請輸入(completed)",
        "fixedCode": "completed"
      },
      {
        "id": "MedicationRequest.statusReason",
        "path": "MedicationRequest.statusReason",
        "max": "0"
      },
      {
        "id": "MedicationRequest.intent",
        "path": "MedicationRequest.intent",
        "short": "[proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option]請輸入(order)",
        "fixedCode": "order"
      },
      {
        "id": "MedicationRequest.category.coding.code",
        "path": "MedicationRequest.category.coding.code",
        "short": "TOTFA.p2, TOTFA.p3, TOTFA.p17",
        "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\r\ncategory[0].coding[0].code對應至TOTFA.p2\r\ncategory[1].coding[0].code對應至TOTFA.p3\r\ncategory[2].coding[0].code對應至TOTFA.p17"
      },
      {
        "id": "MedicationRequest.category.text",
        "path": "MedicationRequest.category.text",
        "short": "[醫令調劑方式, 醫令類別, 慢性病連續處方箋、同一療程及排程檢查案件註記]",
        "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.\r\ncategory[0].text請輸入醫令調劑方式\r\ncategory[1].text請輸入醫令類別\r\ncategory[2].text請輸入慢性病連續處方箋、同一療程及排程檢查案件註記",
        "min": 1
      },
      {
        "id": "MedicationRequest.priority",
        "path": "MedicationRequest.priority",
        "max": "0"
      },
      {
        "id": "MedicationRequest.doNotPerform",
        "path": "MedicationRequest.doNotPerform",
        "max": "0"
      },
      {
        "id": "MedicationRequest.reported[x]",
        "path": "MedicationRequest.reported[x]",
        "max": "0"
      },
      {
        "id": "MedicationRequest.medication[x]",
        "path": "MedicationRequest.medication[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "MedicationRequest.medication[x].coding.version",
        "path": "MedicationRequest.medication[x].coding.version",
        "max": "0"
      },
      {
        "id": "MedicationRequest.medication[x].coding.code",
        "path": "MedicationRequest.medication[x].coding.code",
        "short": "TOTFA.p4",
        "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\r\n藥品(項目)代號"
      },
      {
        "id": "MedicationRequest.medication[x].coding.userSelected",
        "path": "MedicationRequest.medication[x].coding.userSelected",
        "max": "0"
      },
      {
        "id": "MedicationRequest.subject.reference",
        "path": "MedicationRequest.subject.reference",
        "short": "患者Resource Link",
        "min": 1
      },
      {
        "id": "MedicationRequest.subject.type",
        "path": "MedicationRequest.subject.type",
        "max": "0"
      },
      {
        "id": "MedicationRequest.subject.identifier",
        "path": "MedicationRequest.subject.identifier",
        "max": "0"
      },
      {
        "id": "MedicationRequest.subject.display",
        "path": "MedicationRequest.subject.display",
        "max": "0"
      },
      {
        "id": "MedicationRequest.encounter",
        "path": "MedicationRequest.encounter",
        "min": 1
      },
      {
        "id": "MedicationRequest.encounter.reference",
        "path": "MedicationRequest.encounter.reference",
        "short": "TOTFA看診紀錄 Resource Link",
        "min": 1
      },
      {
        "id": "MedicationRequest.encounter.type",
        "path": "MedicationRequest.encounter.type",
        "max": "0"
      },
      {
        "id": "MedicationRequest.encounter.identifier",
        "path": "MedicationRequest.encounter.identifier",
        "max": "0"
      },
      {
        "id": "MedicationRequest.encounter.display",
        "path": "MedicationRequest.encounter.display",
        "max": "0"
      },
      {
        "id": "MedicationRequest.supportingInformation",
        "path": "MedicationRequest.supportingInformation",
        "max": "0"
      },
      {
        "id": "MedicationRequest.authoredOn",
        "path": "MedicationRequest.authoredOn",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester",
        "path": "MedicationRequest.requester",
        "max": "0"
      },
      {
        "id": "MedicationRequest.performer",
        "path": "MedicationRequest.performer",
        "max": "0"
      },
      {
        "id": "MedicationRequest.performerType",
        "path": "MedicationRequest.performerType",
        "max": "0"
      },
      {
        "id": "MedicationRequest.recorder",
        "path": "MedicationRequest.recorder",
        "max": "0"
      },
      {
        "id": "MedicationRequest.reasonCode.coding.code",
        "path": "MedicationRequest.reasonCode.coding.code",
        "short": "TOTFA.p6"
      },
      {
        "id": "MedicationRequest.reasonCode.text",
        "path": "MedicationRequest.reasonCode.text",
        "short": "[診療之部位]",
        "min": 1
      },
      {
        "id": "MedicationRequest.reasonReference",
        "path": "MedicationRequest.reasonReference",
        "max": "0"
      },
      {
        "id": "MedicationRequest.instantiatesCanonical",
        "path": "MedicationRequest.instantiatesCanonical",
        "max": "0"
      },
      {
        "id": "MedicationRequest.instantiatesUri",
        "path": "MedicationRequest.instantiatesUri",
        "max": "0"
      },
      {
        "id": "MedicationRequest.basedOn",
        "path": "MedicationRequest.basedOn",
        "max": "0"
      },
      {
        "id": "MedicationRequest.groupIdentifier",
        "path": "MedicationRequest.groupIdentifier",
        "max": "0"
      },
      {
        "id": "MedicationRequest.courseOfTherapyType",
        "path": "MedicationRequest.courseOfTherapyType",
        "max": "0"
      },
      {
        "id": "MedicationRequest.insurance",
        "path": "MedicationRequest.insurance",
        "max": "0"
      },
      {
        "id": "MedicationRequest.note",
        "path": "MedicationRequest.note",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.sequence",
        "path": "MedicationRequest.dosageInstruction.sequence",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.text",
        "path": "MedicationRequest.dosageInstruction.text",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.additionalInstruction",
        "path": "MedicationRequest.dosageInstruction.additionalInstruction",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.patientInstruction",
        "path": "MedicationRequest.dosageInstruction.patientInstruction",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.timing.event",
        "path": "MedicationRequest.dosageInstruction.timing.event",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.timing.repeat",
        "path": "MedicationRequest.dosageInstruction.timing.repeat",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.timing.code.coding.code",
        "path": "MedicationRequest.dosageInstruction.timing.code.coding.code",
        "short": "TOTFA.p7",
        "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\r\n藥品使用頻率"
      },
      {
        "id": "MedicationRequest.dosageInstruction.asNeeded[x]",
        "path": "MedicationRequest.dosageInstruction.asNeeded[x]",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.site.coding.code",
        "path": "MedicationRequest.dosageInstruction.site.coding.code",
        "short": "TOTFA.p9",
        "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\r\n給藥途徑/作用部位"
      },
      {
        "id": "MedicationRequest.dosageInstruction.route",
        "path": "MedicationRequest.dosageInstruction.route",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.method",
        "path": "MedicationRequest.dosageInstruction.method",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.doseAndRate.type",
        "path": "MedicationRequest.dosageInstruction.doseAndRate.type",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.doseAndRate.dose[x]",
        "path": "MedicationRequest.dosageInstruction.doseAndRate.dose[x]",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction.doseAndRate.dose[x].value",
        "path": "MedicationRequest.dosageInstruction.doseAndRate.dose[x].value",
        "short": "TOTFA.p5",
        "definition": "The value of the measured amount. The value includes an implicit precision in the presentation of the value.\r\n藥品用量"
      },
      {
        "id": "MedicationRequest.dosageInstruction.doseAndRate.rate[x]",
        "path": "MedicationRequest.dosageInstruction.doseAndRate.rate[x]",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.maxDosePerPeriod",
        "path": "MedicationRequest.dosageInstruction.maxDosePerPeriod",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.maxDosePerAdministration",
        "path": "MedicationRequest.dosageInstruction.maxDosePerAdministration",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.maxDosePerLifetime",
        "path": "MedicationRequest.dosageInstruction.maxDosePerLifetime",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dispenseRequest.initialFill",
        "path": "MedicationRequest.dispenseRequest.initialFill",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dispenseRequest.dispenseInterval",
        "path": "MedicationRequest.dispenseRequest.dispenseInterval",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dispenseRequest.validityPeriod.start",
        "path": "MedicationRequest.dispenseRequest.validityPeriod.start",
        "short": "TOTFA.p14",
        "definition": "The start of the period. The boundary is inclusive.\r\n執行時間-起"
      },
      {
        "id": "MedicationRequest.dispenseRequest.validityPeriod.end",
        "path": "MedicationRequest.dispenseRequest.validityPeriod.end",
        "short": "TOTFA.p15",
        "definition": "The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.\r\n執行時間-迄"
      },
      {
        "id": "MedicationRequest.dispenseRequest.numberOfRepeatsAllowed",
        "path": "MedicationRequest.dispenseRequest.numberOfRepeatsAllowed",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dispenseRequest.quantity.value",
        "path": "MedicationRequest.dispenseRequest.quantity.value",
        "short": "TOTFA.p10"
      },
      {
        "id": "MedicationRequest.dispenseRequest.expectedSupplyDuration",
        "path": "MedicationRequest.dispenseRequest.expectedSupplyDuration",
        "min": 1
      },
      {
        "id": "MedicationRequest.dispenseRequest.expectedSupplyDuration.value",
        "path": "MedicationRequest.dispenseRequest.expectedSupplyDuration.value",
        "short": "TOTFA.p1"
      },
      {
        "id": "MedicationRequest.dispenseRequest.expectedSupplyDuration.unit",
        "path": "MedicationRequest.dispenseRequest.expectedSupplyDuration.unit",
        "min": 1,
        "fixedString": "days"
      },
      {
        "id": "MedicationRequest.dispenseRequest.expectedSupplyDuration.system",
        "path": "MedicationRequest.dispenseRequest.expectedSupplyDuration.system",
        "min": 1,
        "fixedUri": "http://unitsofmeasure.org"
      },
      {
        "id": "MedicationRequest.dispenseRequest.expectedSupplyDuration.code",
        "path": "MedicationRequest.dispenseRequest.expectedSupplyDuration.code",
        "min": 1,
        "fixedCode": "d"
      },
      {
        "id": "MedicationRequest.dispenseRequest.performer",
        "path": "MedicationRequest.dispenseRequest.performer",
        "max": "0"
      },
      {
        "id": "MedicationRequest.substitution",
        "path": "MedicationRequest.substitution",
        "max": "0"
      },
      {
        "id": "MedicationRequest.priorPrescription",
        "path": "MedicationRequest.priorPrescription",
        "max": "0"
      },
      {
        "id": "MedicationRequest.detectedIssue",
        "path": "MedicationRequest.detectedIssue",
        "max": "0"
      },
      {
        "id": "MedicationRequest.eventHistory",
        "path": "MedicationRequest.eventHistory",
        "max": "0"
      }
    ]
  }
}