PackagesCanonicalsLogsProblems
    Packages
    tw.gov.mohw.emr@0.1.0
    https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/EPModel
{
  "description": "用於描述電子處方箋邏輯模型",
  "_filename": "StructureDefinition-EPModel.json",
  "package_name": "tw.gov.mohw.emr",
  "date": "2024-05-06T17:38:33+08:00",
  "derivation": "specialization",
  "publisher": "衛生福利部",
  "fhirVersion": "4.0.1",
  "name": "EPModel",
  "mapping": [ {
    "uri": "hl7.org/fhir/r4",
    "name": "EPModel",
    "identity": "EP"
  }, {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  } ],
  "abstract": false,
  "type": "https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/EPModel",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": "電子處方箋-邏輯模型",
  "package_version": "0.1.0",
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "EPModel",
      "min": 0,
      "definition": "用於描述電子處方箋邏輯模型",
      "isModifier": false,
      "short": "電子處方箋邏輯模型",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Element"
      } ],
      "max": "*",
      "id": "EPModel",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element"
      }
    }, {
      "path": "EPModel.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "EPModel.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "EPModel.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "EPModel.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "EPModel.hospital",
      "min": 1,
      "definition": "醫事機構基本資料",
      "short": "醫事機構基本資料",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "1",
      "id": "EPModel.hospital",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.hospital"
      }
    }, {
      "path": "EPModel.hospital.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "EPModel.hospital.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "EPModel.hospital.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "EPModel.hospital.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "EPModel.hospital.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "EPModel.hospital.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "path": "EPModel.hospital.hospitalId",
      "min": 1,
      "definition": "醫療機構代碼",
      "short": "醫療機構代碼",
      "mapping": [ {
        "map": "醫療機構代碼:Organization.Identifier",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "max": "1",
      "id": "EPModel.hospital.hospitalId",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.hospital.hospitalId"
      }
    }, {
      "path": "EPModel.hospital.hospitalName",
      "min": 1,
      "definition": "醫療機構名稱",
      "short": "醫療機構名稱",
      "mapping": [ {
        "map": "醫療機構名稱:Organization.name",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "string",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/string" ]
      } ],
      "max": "1",
      "id": "EPModel.hospital.hospitalName",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.hospital.hospitalName"
      }
    }, {
      "path": "EPModel.hospital.address",
      "min": 1,
      "definition": "醫療機構地址",
      "short": "醫療機構地址",
      "mapping": [ {
        "map": "醫療機構地址:Organization.address",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "Address",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Address" ]
      } ],
      "max": "1",
      "id": "EPModel.hospital.address",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.hospital.address"
      }
    }, {
      "path": "EPModel.hospital.telecom",
      "min": 1,
      "definition": "醫療機構電話",
      "short": "醫療機構電話",
      "mapping": [ {
        "map": "醫療機構電話:Organization.contact.telecom",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "ContactPoint",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/ContactPoint" ]
      } ],
      "max": "1",
      "id": "EPModel.hospital.telecom",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.hospital.telecom"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "EPModel.patientInformation",
      "min": 1,
      "definition": "病人基本資料",
      "short": "病人基本資料",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "1",
      "id": "EPModel.patientInformation",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.patientInformation"
      }
    }, {
      "path": "EPModel.patientInformation.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "EPModel.patientInformation.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "EPModel.patientInformation.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "EPModel.patientInformation.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "EPModel.patientInformation.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "EPModel.patientInformation.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "path": "EPModel.patientInformation.idNumber",
      "min": 1,
      "definition": "身分證號/護照號碼/居留證號",
      "short": "身分證號",
      "mapping": [ {
        "map": "身分證號:Patient.identifier",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "max": "1",
      "id": "EPModel.patientInformation.idNumber",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.patientInformation.idNumber"
      }
    }, {
      "path": "EPModel.patientInformation.chartNo",
      "min": 0,
      "definition": "病歷號碼",
      "short": "病歷號碼",
      "mapping": [ {
        "map": "病歷號碼:Patient.identifier",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "max": "1",
      "id": "EPModel.patientInformation.chartNo",
      "base": {
        "max": "1",
        "min": 0,
        "path": "EPModel.patientInformation.chartNo"
      }
    }, {
      "path": "EPModel.patientInformation.name",
      "min": 1,
      "definition": "姓名",
      "short": "姓名",
      "mapping": [ {
        "map": "姓名:Patient.name",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "HumanName",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/HumanName" ]
      } ],
      "max": "1",
      "id": "EPModel.patientInformation.name",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.patientInformation.name"
      }
    }, {
      "path": "EPModel.patientInformation.gender",
      "min": 1,
      "definition": "性別",
      "short": "性別",
      "mapping": [ {
        "map": "性別:Patient.gender",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "code",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/code" ]
      } ],
      "max": "1",
      "id": "EPModel.patientInformation.gender",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.patientInformation.gender"
      }
    }, {
      "path": "EPModel.patientInformation.birthDate",
      "min": 1,
      "definition": "出生日期,格式為西元YYYYMMDD",
      "short": "出生日期",
      "mapping": [ {
        "map": "出生日期:Patient.birthDate",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "date",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/date" ]
      } ],
      "max": "1",
      "id": "EPModel.patientInformation.birthDate",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.patientInformation.birthDate"
      }
    }, {
      "path": "EPModel.patientInformation.age",
      "min": 1,
      "definition": "就診年齡",
      "short": "就診年齡",
      "mapping": [ {
        "map": "就診年齡:Patient.extension.valueAge",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "Age",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Age" ]
      } ],
      "max": "1",
      "id": "EPModel.patientInformation.age",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.patientInformation.age"
      }
    }, {
      "path": "EPModel.patientInformation.identityType",
      "min": 1,
      "definition": "就醫身分別,健保、非健保",
      "short": "就醫身分別",
      "mapping": [ {
        "map": "就醫身分別:Coverage",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/CodeableConcept" ]
      } ],
      "max": "1",
      "id": "EPModel.patientInformation.identityType",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.patientInformation.identityType"
      }
    }, {
      "path": "EPModel.patientInformation.weight",
      "min": 0,
      "definition": "體重。若調劑藥物劑量須配合體重而有所調整,此欄位為必填",
      "short": "體重",
      "mapping": [ {
        "map": "體重:Observation.valueQuantity",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "Quantity",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Quantity" ]
      } ],
      "max": "1",
      "id": "EPModel.patientInformation.weight",
      "base": {
        "max": "1",
        "min": 0,
        "path": "EPModel.patientInformation.weight"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "EPModel.outpatient",
      "min": 1,
      "definition": "門診基本資料",
      "short": "門診基本資料",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "1",
      "id": "EPModel.outpatient",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.outpatient"
      }
    }, {
      "path": "EPModel.outpatient.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "EPModel.outpatient.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "EPModel.outpatient.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "EPModel.outpatient.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "EPModel.outpatient.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "EPModel.outpatient.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "path": "EPModel.outpatient.opdDate",
      "min": 1,
      "definition": "門診日期,等同開立處方日期,格式為西元YYYYMMDD",
      "short": "門診日期",
      "mapping": [ {
        "map": "門診日期:Encounter.period.start",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "dateTime",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/dateTime" ]
      } ],
      "max": "1",
      "id": "EPModel.outpatient.opdDate",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.outpatient.opdDate"
      }
    }, {
      "path": "EPModel.outpatient.department",
      "min": 1,
      "definition": "科別",
      "short": "科別",
      "mapping": [ {
        "map": "科別:Encounter.serviceType",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/CodeableConcept" ]
      } ],
      "max": "1",
      "id": "EPModel.outpatient.department",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.outpatient.department"
      }
    }, {
      "path": "EPModel.outpatient.medicalIdentifier",
      "min": 0,
      "definition": "就醫識別碼",
      "short": "就醫識別碼",
      "mapping": [ {
        "map": "就醫識別碼:Encounter.identifier",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "max": "1",
      "id": "EPModel.outpatient.medicalIdentifier",
      "base": {
        "max": "1",
        "min": 0,
        "path": "EPModel.outpatient.medicalIdentifier"
      }
    }, {
      "path": "EPModel.outpatient.note",
      "min": 1,
      "definition": "部分負擔代碼",
      "short": "部分負擔代碼",
      "mapping": [ {
        "map": "部分負擔代碼:Condition.note",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "Annotation",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Annotation" ]
      } ],
      "max": "1",
      "id": "EPModel.outpatient.note",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.outpatient.note"
      }
    }, {
      "path": "EPModel.outpatient.medicaltreatmentNumber",
      "min": 0,
      "definition": "健保卡就醫序號",
      "short": "健保卡就醫序號",
      "mapping": [ {
        "map": "健保卡就醫序號:Encounter.identifier",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "max": "1",
      "id": "EPModel.outpatient.medicaltreatmentNumber",
      "base": {
        "max": "1",
        "min": 0,
        "path": "EPModel.outpatient.medicaltreatmentNumber"
      }
    }, {
      "path": "EPModel.outpatient.class",
      "min": 0,
      "definition": "案件分類。\r\n健保案件分類,如01:西醫一般案件 02:西醫急診 03:西醫門診手術 04:西醫慢性病 05:洗腎 06:結核病 08:慢性病連續處方調劑 09:西醫其他專案 11:牙醫一般案件 12:牙醫急診 13:牙醫門診手術等。\r\n自費案件可免填。",
      "short": "案件分類",
      "mapping": [ {
        "map": "案件分類:Encounter.class",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "Coding",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Coding" ]
      } ],
      "max": "1",
      "id": "EPModel.outpatient.class",
      "base": {
        "max": "1",
        "min": 0,
        "path": "EPModel.outpatient.class"
      }
    }, {
      "path": "EPModel.outpatient.type",
      "min": 0,
      "definition": "給付類別。此欄位涉及藥局向民眾收取部分負擔金額判斷,且藥局申報給付類別需依照原處方所列給付類別代碼申報。\r\n依健保卡上傳資料格式 2.0 填寫(非必填)\r\n1:職業傷害\r\n2:職業病\r\n3:普通傷害\r\n4:普通疾病\r\n8:天然災害\r\n9:呼吸照護\r\nD:起雲劑\r\nY:八仙樂園粉塵暴燃事件\r\nZ:高雄市氣爆事件",
      "short": "給付類別",
      "mapping": [ {
        "map": "給付類別:Encounter.type",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/CodeableConcept" ]
      } ],
      "max": "1",
      "id": "EPModel.outpatient.type",
      "base": {
        "max": "1",
        "min": 0,
        "path": "EPModel.outpatient.type"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "EPModel.practitionerInformation",
      "min": 1,
      "definition": "醫事人員基本資料",
      "short": "醫事人員基本資料",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "1",
      "id": "EPModel.practitionerInformation",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.practitionerInformation"
      }
    }, {
      "path": "EPModel.practitionerInformation.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "EPModel.practitionerInformation.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "EPModel.practitionerInformation.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "EPModel.practitionerInformation.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "EPModel.practitionerInformation.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "EPModel.practitionerInformation.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "path": "EPModel.practitionerInformation.physicianName",
      "min": 1,
      "definition": "醫師姓名",
      "short": "醫師姓名",
      "mapping": [ {
        "map": "醫師姓名:Practitioner.name",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "HumanName",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/HumanName" ]
      } ],
      "max": "1",
      "id": "EPModel.practitionerInformation.physicianName",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.practitionerInformation.physicianName"
      }
    }, {
      "path": "EPModel.practitionerInformation.licenseNumber",
      "min": 0,
      "definition": "管制藥品使用執照號碼。開立第一級、第二級及第三級管制藥品專用處方箋,此欄位為必填。",
      "short": "管制藥品使用執照號碼",
      "mapping": [ {
        "map": "管制藥品使用執照號碼:Practitioner.identifier.value",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "max": "1",
      "id": "EPModel.practitionerInformation.licenseNumber",
      "base": {
        "max": "1",
        "min": 0,
        "path": "EPModel.practitionerInformation.licenseNumber"
      }
    }, {
      "path": "EPModel.practitionerInformation.telecom",
      "min": 0,
      "definition": "醫師聯絡電話。開立第一級、第二級及第三級管制藥品專用處方箋,此欄位為必填。",
      "short": "醫師聯絡電話",
      "mapping": [ {
        "map": "醫師聯絡電話:Practitioner.telecom.value",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "ContactPoint",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/ContactPoint" ]
      } ],
      "max": "1",
      "id": "EPModel.practitionerInformation.telecom",
      "base": {
        "max": "1",
        "min": 0,
        "path": "EPModel.practitionerInformation.telecom"
      }
    }, {
      "path": "EPModel.practitionerInformation.certificateNo",
      "min": 1,
      "definition": "醫事人員證書字號",
      "short": "醫事人員證書字號",
      "mapping": [ {
        "map": "醫事人員證書字號:Practitioner.qualification.identifier.value",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "max": "1",
      "id": "EPModel.practitionerInformation.certificateNo",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.practitionerInformation.certificateNo"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "EPModel.diagnose",
      "min": 1,
      "definition": "診斷",
      "short": "診斷",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "*",
      "id": "EPModel.diagnose",
      "base": {
        "max": "*",
        "min": 1,
        "path": "EPModel.diagnose"
      }
    }, {
      "path": "EPModel.diagnose.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "EPModel.diagnose.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "EPModel.diagnose.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "EPModel.diagnose.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "EPModel.diagnose.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "EPModel.diagnose.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "path": "EPModel.diagnose.icdCode",
      "min": 1,
      "definition": "國際疾病分類代碼ICD Code(International Classification of Diseases),應含主診斷或次診斷之ICD代碼",
      "short": "國際疾病分類代碼ICD Code(International Classification of Diseases)",
      "mapping": [ {
        "map": "國際疾病分類代碼:Condition.code.coding.code",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "code",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/code" ]
      } ],
      "max": "1",
      "id": "EPModel.diagnose.icdCode",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.diagnose.icdCode"
      }
    }, {
      "path": "EPModel.diagnose.icdName",
      "min": 1,
      "definition": "國際疾病分類名稱ICD Code(International Classification of Diseases),應含主診斷或次診斷之ICD中英文名稱",
      "short": "國際疾病分類名稱ICD Code(International Classification of Diseases)",
      "mapping": [ {
        "map": "國際疾病分類名稱:Condition.code.coding.display或Condition.code.text",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "string",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/string" ]
      } ],
      "max": "1",
      "id": "EPModel.diagnose.icdName",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.diagnose.icdName"
      }
    }, {
      "path": "EPModel.diagnose.note",
      "min": 0,
      "definition": "醫療評估之內容註記",
      "short": "醫療評估內容註記",
      "mapping": [ {
        "map": "醫療評估之內容註記:Condition.note",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "Annotation",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Annotation" ]
      } ],
      "max": "1",
      "id": "EPModel.diagnose.note",
      "base": {
        "max": "1",
        "min": 0,
        "path": "EPModel.diagnose.note"
      }
    }, {
      "path": "EPModel.prescriptionNo",
      "min": 1,
      "definition": "處方箋單號",
      "short": "處方箋單號",
      "mapping": [ {
        "map": "處方箋單號:MedicationRequest.identifier",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "max": "1",
      "id": "EPModel.prescriptionNo",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.prescriptionNo"
      }
    }, {
      "path": "EPModel.typeofPrescription",
      "min": 1,
      "definition": "處方箋種類註記\r\nA:一般處方箋:處方用藥,一次給予7日(含)以下之用藥量\r\nB:慢性病處方箋\r\nC:慢性病連續處方箋\r\nD:管制藥品專用處方箋(一般)\r\nE:管制藥品專用處方箋(慢箋)\r\nF管制藥品專用處方箋(慢連箋)",
      "short": "處方箋種類註記",
      "mapping": [ {
        "map": "處方箋種類註記:MedicationRequest.category",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/CodeableConcept" ]
      } ],
      "max": "1",
      "id": "EPModel.typeofPrescription",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.typeofPrescription"
      }
    }, {
      "path": "EPModel.combinedPrescriptionNote",
      "min": 1,
      "definition": "須被合併之處方箋註記。\r\n合併請填是,預設值為「否」。說明:同時開立管制藥品及一般藥品時,須開立二張處方箋,並在這二張處方箋此欄位上註記「是」。",
      "short": "須被合併之處方箋註記",
      "mapping": [ {
        "map": "須被合併之處方箋註記:MedicationRequest.note",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "Annotation",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Annotation" ]
      } ],
      "max": "1",
      "id": "EPModel.combinedPrescriptionNote",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.combinedPrescriptionNote"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "EPModel.prescriptionDatetime",
      "min": 1,
      "definition": "處方箋有效日期",
      "short": "處方箋有效日期",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "1",
      "id": "EPModel.prescriptionDatetime",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.prescriptionDatetime"
      }
    }, {
      "path": "EPModel.prescriptionDatetime.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "EPModel.prescriptionDatetime.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "EPModel.prescriptionDatetime.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "EPModel.prescriptionDatetime.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "EPModel.prescriptionDatetime.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "EPModel.prescriptionDatetime.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "path": "EPModel.prescriptionDatetime.datetime",
      "min": 1,
      "definition": "處方箋有效日期,包含第二次之後的建議領藥日期;格式為西元YYYYMMDD",
      "short": "處方箋有效日期",
      "mapping": [ {
        "map": "處方箋有效日期:Composition.date",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "dateTime",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/dateTime" ]
      } ],
      "max": "*",
      "id": "EPModel.prescriptionDatetime.datetime",
      "base": {
        "max": "*",
        "min": 1,
        "path": "EPModel.prescriptionDatetime.datetime"
      }
    }, {
      "path": "EPModel.prescriptionDatetime.note",
      "min": 0,
      "definition": "處方箋註銷註記,註銷請填Y,並至處方箋有效日期更新為處方箋註銷日期說明:\r\n用於就醫當次未調劑處方或第二次(含)以後未調劑慢連箋處方之註銷",
      "short": "處方箋註銷註記",
      "mapping": [ {
        "map": "處方箋註銷註記:MedicationRequest.note",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "Annotation",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Annotation" ]
      } ],
      "max": "1",
      "id": "EPModel.prescriptionDatetime.note",
      "base": {
        "max": "1",
        "min": 0,
        "path": "EPModel.prescriptionDatetime.note"
      }
    }, {
      "path": "EPModel.totalMedicationsDays",
      "min": 1,
      "definition": "給藥總日份",
      "short": "給藥總日份",
      "mapping": [ {
        "map": "給藥總日份:MedicationRequest.extension",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "positiveInt",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/positiveInt" ]
      } ],
      "max": "1",
      "id": "EPModel.totalMedicationsDays",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.totalMedicationsDays"
      }
    }, {
      "path": "EPModel.refillTimes",
      "min": 1,
      "definition": "連續處方可調劑次數",
      "short": "連續處方可調劑次數",
      "mapping": [ {
        "map": "連續處方可調劑次數:MedicationRequest.dispenseRequest.numberOfRepeatsAllowed",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "unsignedInt",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/unsignedInt" ]
      } ],
      "max": "1",
      "id": "EPModel.refillTimes",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.refillTimes"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "EPModel.prescriptionContent",
      "min": 1,
      "definition": "處方內容",
      "short": "處方內容",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "*",
      "id": "EPModel.prescriptionContent",
      "base": {
        "max": "*",
        "min": 1,
        "path": "EPModel.prescriptionContent"
      }
    }, {
      "path": "EPModel.prescriptionContent.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "EPModel.prescriptionContent.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "EPModel.prescriptionContent.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "EPModel.prescriptionContent.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "EPModel.prescriptionContent.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "EPModel.prescriptionContent.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "path": "EPModel.prescriptionContent.orderType",
      "min": 0,
      "definition": "藉由「醫令類別」區分是否為藥品或特殊材料。",
      "short": "醫令類別",
      "mapping": [ {
        "map": "醫令類別:MedicationRequest.category",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/CodeableConcept" ]
      } ],
      "max": "1",
      "id": "EPModel.prescriptionContent.orderType",
      "base": {
        "max": "1",
        "min": 0,
        "path": "EPModel.prescriptionContent.orderType"
      }
    }, {
      "path": "EPModel.prescriptionContent.item",
      "min": 1,
      "definition": "項次。使民眾及藥局確認藥品品項數。",
      "short": "項次",
      "mapping": [ {
        "map": "項次:MedicationRequest.identifier",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "max": "1",
      "id": "EPModel.prescriptionContent.item",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.prescriptionContent.item"
      }
    }, {
      "path": "EPModel.prescriptionContent.code",
      "min": 0,
      "definition": "健保代碼",
      "short": "健保代碼",
      "mapping": [ {
        "map": "健保代碼:Medication.code",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/CodeableConcept" ]
      } ],
      "max": "1",
      "id": "EPModel.prescriptionContent.code",
      "base": {
        "max": "1",
        "min": 0,
        "path": "EPModel.prescriptionContent.code"
      }
    }, {
      "path": "EPModel.prescriptionContent.brandName",
      "min": 0,
      "definition": "藥品商品名稱",
      "short": "藥品商品名稱",
      "mapping": [ {
        "map": "藥品商品名稱Medication.code.coding.display,使用學名則填入於Medication.code.text",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "string",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/string" ]
      } ],
      "max": "1",
      "id": "EPModel.prescriptionContent.brandName",
      "base": {
        "max": "1",
        "min": 0,
        "path": "EPModel.prescriptionContent.brandName"
      }
    }, {
      "path": "EPModel.prescriptionContent.genericName",
      "min": 1,
      "definition": "學名",
      "short": "學名",
      "mapping": [ {
        "map": "學名:Medication.code.text或Medication.code.coding.display",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "string",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/string" ]
      } ],
      "max": "1",
      "id": "EPModel.prescriptionContent.genericName",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.prescriptionContent.genericName"
      }
    }, {
      "path": "EPModel.prescriptionContent.substitution",
      "min": 0,
      "definition": "不得以其他廠牌藥品替代之理由。填寫說明:有特殊情況時才填寫。",
      "short": "不得以其他廠牌藥品替代之理由",
      "mapping": [ {
        "map": "不得以其他廠牌藥品替代之理由:MedicationRequest.substitution",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "BackboneElement",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/BackboneElement" ]
      } ],
      "max": "1",
      "id": "EPModel.prescriptionContent.substitution",
      "base": {
        "max": "1",
        "min": 0,
        "path": "EPModel.prescriptionContent.substitution"
      }
    }, {
      "path": "EPModel.prescriptionContent.drugunitContent",
      "min": 1,
      "definition": "藥品單位含量",
      "short": "藥品單位含量",
      "mapping": [ {
        "map": "藥品單位含量:MedicationRequest.ingredient.strength",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "Ratio",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Ratio" ]
      } ],
      "max": "1",
      "id": "EPModel.prescriptionContent.drugunitContent",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.prescriptionContent.drugunitContent"
      }
    }, {
      "path": "EPModel.prescriptionContent.dosageForm",
      "min": 1,
      "definition": "劑型,如藥水、藥丸等",
      "short": "劑型",
      "mapping": [ {
        "map": "劑型:Medication.form",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/CodeableConcept" ]
      } ],
      "max": "1",
      "id": "EPModel.prescriptionContent.dosageForm",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.prescriptionContent.dosageForm"
      }
    }, {
      "path": "EPModel.prescriptionContent.dose",
      "min": 1,
      "definition": "劑量",
      "short": "劑量",
      "mapping": [ {
        "map": "劑量:MedicationRequest.dosageInstruction.doseAndRate.doseQuantity.value",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "decimal",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/decimal" ]
      } ],
      "max": "1",
      "id": "EPModel.prescriptionContent.dose",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.prescriptionContent.dose"
      }
    }, {
      "path": "EPModel.prescriptionContent.doseUnits",
      "min": 0,
      "definition": "劑量單位,如:顆、CC等",
      "short": "劑量單位",
      "mapping": [ {
        "map": "劑量單位:MedicationRequest.dosageInstruction.doseAndRate.doseQuantity.unit",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "string",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/string" ]
      } ],
      "max": "*",
      "id": "EPModel.prescriptionContent.doseUnits",
      "base": {
        "max": "*",
        "min": 0,
        "path": "EPModel.prescriptionContent.doseUnits"
      }
    }, {
      "path": "EPModel.prescriptionContent.frequency",
      "min": 1,
      "definition": "頻率",
      "short": "頻率",
      "mapping": [ {
        "map": "頻率:MedicationRequest.dosageInstruction.timing.repeat.frequency",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "positiveInt",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/positiveInt" ]
      } ],
      "max": "1",
      "id": "EPModel.prescriptionContent.frequency",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.prescriptionContent.frequency"
      }
    }, {
      "path": "EPModel.prescriptionContent.usagetime",
      "min": 0,
      "definition": "使用時間,如飯前後",
      "short": "使用時間",
      "mapping": [ {
        "map": "使用時間:MedicationRequest.dosageInstruction.timing.code",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/CodeableConcept" ]
      } ],
      "max": "1",
      "id": "EPModel.prescriptionContent.usagetime",
      "base": {
        "max": "1",
        "min": 0,
        "path": "EPModel.prescriptionContent.usagetime"
      }
    }, {
      "path": "EPModel.prescriptionContent.routeofAdministration",
      "min": 1,
      "definition": "給藥途徑",
      "short": "給藥途徑",
      "mapping": [ {
        "map": "給藥途徑:MedicationRequest.dosageInstruction.route",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/CodeableConcept" ]
      } ],
      "max": "1",
      "id": "EPModel.prescriptionContent.routeofAdministration",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.prescriptionContent.routeofAdministration"
      }
    }, {
      "path": "EPModel.prescriptionContent.medicationDays",
      "min": 1,
      "definition": "給藥日數",
      "short": "給藥日數",
      "mapping": [ {
        "map": "給藥日數:MedicationRequest.dispenseRequest.expectedSupplyDuration",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "Duration",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Duration" ]
      } ],
      "max": "1",
      "id": "EPModel.prescriptionContent.medicationDays",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.prescriptionContent.medicationDays"
      }
    }, {
      "path": "EPModel.prescriptionContent.totalAmount",
      "min": 1,
      "definition": "給藥總量",
      "short": "給藥總量",
      "mapping": [ {
        "map": "給藥總量:MedicationRequest.dispenseRequest.quantity.value",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "decimal",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/decimal" ]
      } ],
      "max": "1",
      "id": "EPModel.prescriptionContent.totalAmount",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.prescriptionContent.totalAmount"
      }
    }, {
      "path": "EPModel.prescriptionContent.totalUnits",
      "min": 1,
      "definition": "給藥總量單位,如:顆、CC、瓶等",
      "short": "給藥總量單位",
      "mapping": [ {
        "map": "給藥總量單位:MedicationRequest.dispenseRequest.quantity.unit",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "string",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/string" ]
      } ],
      "max": "1",
      "id": "EPModel.prescriptionContent.totalUnits",
      "base": {
        "max": "1",
        "min": 1,
        "path": "EPModel.prescriptionContent.totalUnits"
      }
    }, {
      "path": "EPModel.prescriptionContent.selfnote",
      "min": 0,
      "definition": "自費註記",
      "short": "自費註記",
      "mapping": [ {
        "map": "自費註記:MedicationRequest.note",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "Annotation",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Annotation" ]
      } ],
      "max": "1",
      "id": "EPModel.prescriptionContent.selfnote",
      "base": {
        "max": "1",
        "min": 0,
        "path": "EPModel.prescriptionContent.selfnote"
      }
    }, {
      "path": "EPModel.prescriptionContent.directions",
      "min": 0,
      "definition": "用藥指示",
      "short": "用藥指示",
      "mapping": [ {
        "map": "用藥指示:MedicationRequest.dosageInstruction.method",
        "identity": "EP"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/CodeableConcept" ]
      } ],
      "max": "1",
      "id": "EPModel.prescriptionContent.directions",
      "base": {
        "max": "1",
        "min": 0,
        "path": "EPModel.prescriptionContent.directions"
      }
    } ]
  },
  "status": "draft",
  "id": "1d3ff609-21ac-4959-ac7c-decb9a8a860b",
  "kind": "logical",
  "url": "https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/EPModel",
  "version": "0.1.0",
  "differential": {
    "element": [ {
      "id": "EPModel",
      "max": "*",
      "min": 0,
      "path": "EPModel",
      "type": [ {
        "code": "Element"
      } ],
      "short": "電子處方箋邏輯模型",
      "definition": "用於描述電子處方箋邏輯模型"
    }, {
      "id": "EPModel.hospital",
      "max": "1",
      "min": 1,
      "path": "EPModel.hospital",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "醫事機構基本資料",
      "definition": "醫事機構基本資料"
    }, {
      "id": "EPModel.hospital.hospitalId",
      "max": "1",
      "min": 1,
      "path": "EPModel.hospital.hospitalId",
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "short": "醫療機構代碼",
      "mapping": [ {
        "map": "醫療機構代碼:Organization.Identifier",
        "identity": "EP"
      } ],
      "definition": "醫療機構代碼"
    }, {
      "id": "EPModel.hospital.hospitalName",
      "max": "1",
      "min": 1,
      "path": "EPModel.hospital.hospitalName",
      "type": [ {
        "code": "string",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/string" ]
      } ],
      "short": "醫療機構名稱",
      "mapping": [ {
        "map": "醫療機構名稱:Organization.name",
        "identity": "EP"
      } ],
      "definition": "醫療機構名稱"
    }, {
      "id": "EPModel.hospital.address",
      "max": "1",
      "min": 1,
      "path": "EPModel.hospital.address",
      "type": [ {
        "code": "Address",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Address" ]
      } ],
      "short": "醫療機構地址",
      "mapping": [ {
        "map": "醫療機構地址:Organization.address",
        "identity": "EP"
      } ],
      "definition": "醫療機構地址"
    }, {
      "id": "EPModel.hospital.telecom",
      "max": "1",
      "min": 1,
      "path": "EPModel.hospital.telecom",
      "type": [ {
        "code": "ContactPoint",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/ContactPoint" ]
      } ],
      "short": "醫療機構電話",
      "mapping": [ {
        "map": "醫療機構電話:Organization.contact.telecom",
        "identity": "EP"
      } ],
      "definition": "醫療機構電話"
    }, {
      "id": "EPModel.patientInformation",
      "max": "1",
      "min": 1,
      "path": "EPModel.patientInformation",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "病人基本資料",
      "definition": "病人基本資料"
    }, {
      "id": "EPModel.patientInformation.idNumber",
      "max": "1",
      "min": 1,
      "path": "EPModel.patientInformation.idNumber",
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "short": "身分證號",
      "mapping": [ {
        "map": "身分證號:Patient.identifier",
        "identity": "EP"
      } ],
      "definition": "身分證號/護照號碼/居留證號"
    }, {
      "id": "EPModel.patientInformation.chartNo",
      "max": "1",
      "min": 0,
      "path": "EPModel.patientInformation.chartNo",
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "short": "病歷號碼",
      "mapping": [ {
        "map": "病歷號碼:Patient.identifier",
        "identity": "EP"
      } ],
      "definition": "病歷號碼"
    }, {
      "id": "EPModel.patientInformation.name",
      "max": "1",
      "min": 1,
      "path": "EPModel.patientInformation.name",
      "type": [ {
        "code": "HumanName",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/HumanName" ]
      } ],
      "short": "姓名",
      "mapping": [ {
        "map": "姓名:Patient.name",
        "identity": "EP"
      } ],
      "definition": "姓名"
    }, {
      "id": "EPModel.patientInformation.gender",
      "max": "1",
      "min": 1,
      "path": "EPModel.patientInformation.gender",
      "type": [ {
        "code": "code",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/code" ]
      } ],
      "short": "性別",
      "mapping": [ {
        "map": "性別:Patient.gender",
        "identity": "EP"
      } ],
      "definition": "性別"
    }, {
      "id": "EPModel.patientInformation.birthDate",
      "max": "1",
      "min": 1,
      "path": "EPModel.patientInformation.birthDate",
      "type": [ {
        "code": "date",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/date" ]
      } ],
      "short": "出生日期",
      "mapping": [ {
        "map": "出生日期:Patient.birthDate",
        "identity": "EP"
      } ],
      "definition": "出生日期,格式為西元YYYYMMDD"
    }, {
      "id": "EPModel.patientInformation.age",
      "max": "1",
      "min": 1,
      "path": "EPModel.patientInformation.age",
      "type": [ {
        "code": "Age",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Age" ]
      } ],
      "short": "就診年齡",
      "mapping": [ {
        "map": "就診年齡:Patient.extension.valueAge",
        "identity": "EP"
      } ],
      "definition": "就診年齡"
    }, {
      "id": "EPModel.patientInformation.identityType",
      "max": "1",
      "min": 1,
      "path": "EPModel.patientInformation.identityType",
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/CodeableConcept" ]
      } ],
      "short": "就醫身分別",
      "mapping": [ {
        "map": "就醫身分別:Coverage",
        "identity": "EP"
      } ],
      "definition": "就醫身分別,健保、非健保"
    }, {
      "id": "EPModel.patientInformation.weight",
      "max": "1",
      "min": 0,
      "path": "EPModel.patientInformation.weight",
      "type": [ {
        "code": "Quantity",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Quantity" ]
      } ],
      "short": "體重",
      "mapping": [ {
        "map": "體重:Observation.valueQuantity",
        "identity": "EP"
      } ],
      "definition": "體重。若調劑藥物劑量須配合體重而有所調整,此欄位為必填"
    }, {
      "id": "EPModel.outpatient",
      "max": "1",
      "min": 1,
      "path": "EPModel.outpatient",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "門診基本資料",
      "definition": "門診基本資料"
    }, {
      "id": "EPModel.outpatient.opdDate",
      "max": "1",
      "min": 1,
      "path": "EPModel.outpatient.opdDate",
      "type": [ {
        "code": "dateTime",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/dateTime" ]
      } ],
      "short": "門診日期",
      "mapping": [ {
        "map": "門診日期:Encounter.period.start",
        "identity": "EP"
      } ],
      "definition": "門診日期,等同開立處方日期,格式為西元YYYYMMDD"
    }, {
      "id": "EPModel.outpatient.department",
      "max": "1",
      "min": 1,
      "path": "EPModel.outpatient.department",
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/CodeableConcept" ]
      } ],
      "short": "科別",
      "mapping": [ {
        "map": "科別:Encounter.serviceType",
        "identity": "EP"
      } ],
      "definition": "科別"
    }, {
      "id": "EPModel.outpatient.medicalIdentifier",
      "max": "1",
      "min": 0,
      "path": "EPModel.outpatient.medicalIdentifier",
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "short": "就醫識別碼",
      "mapping": [ {
        "map": "就醫識別碼:Encounter.identifier",
        "identity": "EP"
      } ],
      "definition": "就醫識別碼"
    }, {
      "id": "EPModel.outpatient.note",
      "max": "1",
      "min": 1,
      "path": "EPModel.outpatient.note",
      "type": [ {
        "code": "Annotation",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Annotation" ]
      } ],
      "short": "部分負擔代碼",
      "mapping": [ {
        "map": "部分負擔代碼:Condition.note",
        "identity": "EP"
      } ],
      "definition": "部分負擔代碼"
    }, {
      "id": "EPModel.outpatient.medicaltreatmentNumber",
      "max": "1",
      "min": 0,
      "path": "EPModel.outpatient.medicaltreatmentNumber",
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "short": "健保卡就醫序號",
      "mapping": [ {
        "map": "健保卡就醫序號:Encounter.identifier",
        "identity": "EP"
      } ],
      "definition": "健保卡就醫序號"
    }, {
      "id": "EPModel.outpatient.class",
      "max": "1",
      "min": 0,
      "path": "EPModel.outpatient.class",
      "type": [ {
        "code": "Coding",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Coding" ]
      } ],
      "short": "案件分類",
      "mapping": [ {
        "map": "案件分類:Encounter.class",
        "identity": "EP"
      } ],
      "definition": "案件分類。\r\n健保案件分類,如01:西醫一般案件 02:西醫急診 03:西醫門診手術 04:西醫慢性病 05:洗腎 06:結核病 08:慢性病連續處方調劑 09:西醫其他專案 11:牙醫一般案件 12:牙醫急診 13:牙醫門診手術等。\r\n自費案件可免填。"
    }, {
      "id": "EPModel.outpatient.type",
      "max": "1",
      "min": 0,
      "path": "EPModel.outpatient.type",
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/CodeableConcept" ]
      } ],
      "short": "給付類別",
      "mapping": [ {
        "map": "給付類別:Encounter.type",
        "identity": "EP"
      } ],
      "definition": "給付類別。此欄位涉及藥局向民眾收取部分負擔金額判斷,且藥局申報給付類別需依照原處方所列給付類別代碼申報。\r\n依健保卡上傳資料格式 2.0 填寫(非必填)\r\n1:職業傷害\r\n2:職業病\r\n3:普通傷害\r\n4:普通疾病\r\n8:天然災害\r\n9:呼吸照護\r\nD:起雲劑\r\nY:八仙樂園粉塵暴燃事件\r\nZ:高雄市氣爆事件"
    }, {
      "id": "EPModel.practitionerInformation",
      "max": "1",
      "min": 1,
      "path": "EPModel.practitionerInformation",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "醫事人員基本資料",
      "definition": "醫事人員基本資料"
    }, {
      "id": "EPModel.practitionerInformation.physicianName",
      "max": "1",
      "min": 1,
      "path": "EPModel.practitionerInformation.physicianName",
      "type": [ {
        "code": "HumanName",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/HumanName" ]
      } ],
      "short": "醫師姓名",
      "mapping": [ {
        "map": "醫師姓名:Practitioner.name",
        "identity": "EP"
      } ],
      "definition": "醫師姓名"
    }, {
      "id": "EPModel.practitionerInformation.licenseNumber",
      "max": "1",
      "min": 0,
      "path": "EPModel.practitionerInformation.licenseNumber",
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "short": "管制藥品使用執照號碼",
      "mapping": [ {
        "map": "管制藥品使用執照號碼:Practitioner.identifier.value",
        "identity": "EP"
      } ],
      "definition": "管制藥品使用執照號碼。開立第一級、第二級及第三級管制藥品專用處方箋,此欄位為必填。"
    }, {
      "id": "EPModel.practitionerInformation.telecom",
      "max": "1",
      "min": 0,
      "path": "EPModel.practitionerInformation.telecom",
      "type": [ {
        "code": "ContactPoint",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/ContactPoint" ]
      } ],
      "short": "醫師聯絡電話",
      "mapping": [ {
        "map": "醫師聯絡電話:Practitioner.telecom.value",
        "identity": "EP"
      } ],
      "definition": "醫師聯絡電話。開立第一級、第二級及第三級管制藥品專用處方箋,此欄位為必填。"
    }, {
      "id": "EPModel.practitionerInformation.certificateNo",
      "max": "1",
      "min": 1,
      "path": "EPModel.practitionerInformation.certificateNo",
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "short": "醫事人員證書字號",
      "mapping": [ {
        "map": "醫事人員證書字號:Practitioner.qualification.identifier.value",
        "identity": "EP"
      } ],
      "definition": "醫事人員證書字號"
    }, {
      "id": "EPModel.diagnose",
      "max": "*",
      "min": 1,
      "path": "EPModel.diagnose",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "診斷",
      "definition": "診斷"
    }, {
      "id": "EPModel.diagnose.icdCode",
      "max": "1",
      "min": 1,
      "path": "EPModel.diagnose.icdCode",
      "type": [ {
        "code": "code",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/code" ]
      } ],
      "short": "國際疾病分類代碼ICD Code(International Classification of Diseases)",
      "mapping": [ {
        "map": "國際疾病分類代碼:Condition.code.coding.code",
        "identity": "EP"
      } ],
      "definition": "國際疾病分類代碼ICD Code(International Classification of Diseases),應含主診斷或次診斷之ICD代碼"
    }, {
      "id": "EPModel.diagnose.icdName",
      "max": "1",
      "min": 1,
      "path": "EPModel.diagnose.icdName",
      "type": [ {
        "code": "string",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/string" ]
      } ],
      "short": "國際疾病分類名稱ICD Code(International Classification of Diseases)",
      "mapping": [ {
        "map": "國際疾病分類名稱:Condition.code.coding.display或Condition.code.text",
        "identity": "EP"
      } ],
      "definition": "國際疾病分類名稱ICD Code(International Classification of Diseases),應含主診斷或次診斷之ICD中英文名稱"
    }, {
      "id": "EPModel.diagnose.note",
      "max": "1",
      "min": 0,
      "path": "EPModel.diagnose.note",
      "type": [ {
        "code": "Annotation",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Annotation" ]
      } ],
      "short": "醫療評估內容註記",
      "mapping": [ {
        "map": "醫療評估之內容註記:Condition.note",
        "identity": "EP"
      } ],
      "definition": "醫療評估之內容註記"
    }, {
      "id": "EPModel.prescriptionNo",
      "max": "1",
      "min": 1,
      "path": "EPModel.prescriptionNo",
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "short": "處方箋單號",
      "mapping": [ {
        "map": "處方箋單號:MedicationRequest.identifier",
        "identity": "EP"
      } ],
      "definition": "處方箋單號"
    }, {
      "id": "EPModel.typeofPrescription",
      "max": "1",
      "min": 1,
      "path": "EPModel.typeofPrescription",
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/CodeableConcept" ]
      } ],
      "short": "處方箋種類註記",
      "mapping": [ {
        "map": "處方箋種類註記:MedicationRequest.category",
        "identity": "EP"
      } ],
      "definition": "處方箋種類註記\r\nA:一般處方箋:處方用藥,一次給予7日(含)以下之用藥量\r\nB:慢性病處方箋\r\nC:慢性病連續處方箋\r\nD:管制藥品專用處方箋(一般)\r\nE:管制藥品專用處方箋(慢箋)\r\nF管制藥品專用處方箋(慢連箋)"
    }, {
      "id": "EPModel.combinedPrescriptionNote",
      "max": "1",
      "min": 1,
      "path": "EPModel.combinedPrescriptionNote",
      "type": [ {
        "code": "Annotation",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Annotation" ]
      } ],
      "short": "須被合併之處方箋註記",
      "mapping": [ {
        "map": "須被合併之處方箋註記:MedicationRequest.note",
        "identity": "EP"
      } ],
      "definition": "須被合併之處方箋註記。\r\n合併請填是,預設值為「否」。說明:同時開立管制藥品及一般藥品時,須開立二張處方箋,並在這二張處方箋此欄位上註記「是」。"
    }, {
      "id": "EPModel.prescriptionDatetime",
      "max": "1",
      "min": 1,
      "path": "EPModel.prescriptionDatetime",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "處方箋有效日期",
      "definition": "處方箋有效日期"
    }, {
      "id": "EPModel.prescriptionDatetime.datetime",
      "max": "*",
      "min": 1,
      "path": "EPModel.prescriptionDatetime.datetime",
      "type": [ {
        "code": "dateTime",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/dateTime" ]
      } ],
      "short": "處方箋有效日期",
      "mapping": [ {
        "map": "處方箋有效日期:Composition.date",
        "identity": "EP"
      } ],
      "definition": "處方箋有效日期,包含第二次之後的建議領藥日期;格式為西元YYYYMMDD"
    }, {
      "id": "EPModel.prescriptionDatetime.note",
      "max": "1",
      "min": 0,
      "path": "EPModel.prescriptionDatetime.note",
      "type": [ {
        "code": "Annotation",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Annotation" ]
      } ],
      "short": "處方箋註銷註記",
      "mapping": [ {
        "map": "處方箋註銷註記:MedicationRequest.note",
        "identity": "EP"
      } ],
      "definition": "處方箋註銷註記,註銷請填Y,並至處方箋有效日期更新為處方箋註銷日期說明:\r\n用於就醫當次未調劑處方或第二次(含)以後未調劑慢連箋處方之註銷"
    }, {
      "id": "EPModel.totalMedicationsDays",
      "max": "1",
      "min": 1,
      "path": "EPModel.totalMedicationsDays",
      "type": [ {
        "code": "positiveInt",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/positiveInt" ]
      } ],
      "short": "給藥總日份",
      "mapping": [ {
        "map": "給藥總日份:MedicationRequest.extension",
        "identity": "EP"
      } ],
      "definition": "給藥總日份"
    }, {
      "id": "EPModel.refillTimes",
      "max": "1",
      "min": 1,
      "path": "EPModel.refillTimes",
      "type": [ {
        "code": "unsignedInt",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/unsignedInt" ]
      } ],
      "short": "連續處方可調劑次數",
      "mapping": [ {
        "map": "連續處方可調劑次數:MedicationRequest.dispenseRequest.numberOfRepeatsAllowed",
        "identity": "EP"
      } ],
      "definition": "連續處方可調劑次數"
    }, {
      "id": "EPModel.prescriptionContent",
      "max": "*",
      "min": 1,
      "path": "EPModel.prescriptionContent",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "處方內容",
      "definition": "處方內容"
    }, {
      "id": "EPModel.prescriptionContent.orderType",
      "max": "1",
      "min": 0,
      "path": "EPModel.prescriptionContent.orderType",
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/CodeableConcept" ]
      } ],
      "short": "醫令類別",
      "mapping": [ {
        "map": "醫令類別:MedicationRequest.category",
        "identity": "EP"
      } ],
      "definition": "藉由「醫令類別」區分是否為藥品或特殊材料。"
    }, {
      "id": "EPModel.prescriptionContent.item",
      "max": "1",
      "min": 1,
      "path": "EPModel.prescriptionContent.item",
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "short": "項次",
      "mapping": [ {
        "map": "項次:MedicationRequest.identifier",
        "identity": "EP"
      } ],
      "definition": "項次。使民眾及藥局確認藥品品項數。"
    }, {
      "id": "EPModel.prescriptionContent.code",
      "max": "1",
      "min": 0,
      "path": "EPModel.prescriptionContent.code",
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/CodeableConcept" ]
      } ],
      "short": "健保代碼",
      "mapping": [ {
        "map": "健保代碼:Medication.code",
        "identity": "EP"
      } ],
      "definition": "健保代碼"
    }, {
      "id": "EPModel.prescriptionContent.brandName",
      "max": "1",
      "min": 0,
      "path": "EPModel.prescriptionContent.brandName",
      "type": [ {
        "code": "string",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/string" ]
      } ],
      "short": "藥品商品名稱",
      "mapping": [ {
        "map": "藥品商品名稱Medication.code.coding.display,使用學名則填入於Medication.code.text",
        "identity": "EP"
      } ],
      "definition": "藥品商品名稱"
    }, {
      "id": "EPModel.prescriptionContent.genericName",
      "max": "1",
      "min": 1,
      "path": "EPModel.prescriptionContent.genericName",
      "type": [ {
        "code": "string",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/string" ]
      } ],
      "short": "學名",
      "mapping": [ {
        "map": "學名:Medication.code.text或Medication.code.coding.display",
        "identity": "EP"
      } ],
      "definition": "學名"
    }, {
      "id": "EPModel.prescriptionContent.substitution",
      "max": "1",
      "min": 0,
      "path": "EPModel.prescriptionContent.substitution",
      "type": [ {
        "code": "BackboneElement",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/BackboneElement" ]
      } ],
      "short": "不得以其他廠牌藥品替代之理由",
      "mapping": [ {
        "map": "不得以其他廠牌藥品替代之理由:MedicationRequest.substitution",
        "identity": "EP"
      } ],
      "definition": "不得以其他廠牌藥品替代之理由。填寫說明:有特殊情況時才填寫。"
    }, {
      "id": "EPModel.prescriptionContent.drugunitContent",
      "max": "1",
      "min": 1,
      "path": "EPModel.prescriptionContent.drugunitContent",
      "type": [ {
        "code": "Ratio",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Ratio" ]
      } ],
      "short": "藥品單位含量",
      "mapping": [ {
        "map": "藥品單位含量:MedicationRequest.ingredient.strength",
        "identity": "EP"
      } ],
      "definition": "藥品單位含量"
    }, {
      "id": "EPModel.prescriptionContent.dosageForm",
      "max": "1",
      "min": 1,
      "path": "EPModel.prescriptionContent.dosageForm",
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/CodeableConcept" ]
      } ],
      "short": "劑型",
      "mapping": [ {
        "map": "劑型:Medication.form",
        "identity": "EP"
      } ],
      "definition": "劑型,如藥水、藥丸等"
    }, {
      "id": "EPModel.prescriptionContent.dose",
      "max": "1",
      "min": 1,
      "path": "EPModel.prescriptionContent.dose",
      "type": [ {
        "code": "decimal",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/decimal" ]
      } ],
      "short": "劑量",
      "mapping": [ {
        "map": "劑量:MedicationRequest.dosageInstruction.doseAndRate.doseQuantity.value",
        "identity": "EP"
      } ],
      "definition": "劑量"
    }, {
      "id": "EPModel.prescriptionContent.doseUnits",
      "max": "*",
      "min": 0,
      "path": "EPModel.prescriptionContent.doseUnits",
      "type": [ {
        "code": "string",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/string" ]
      } ],
      "short": "劑量單位",
      "mapping": [ {
        "map": "劑量單位:MedicationRequest.dosageInstruction.doseAndRate.doseQuantity.unit",
        "identity": "EP"
      } ],
      "definition": "劑量單位,如:顆、CC等"
    }, {
      "id": "EPModel.prescriptionContent.frequency",
      "max": "1",
      "min": 1,
      "path": "EPModel.prescriptionContent.frequency",
      "type": [ {
        "code": "positiveInt",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/positiveInt" ]
      } ],
      "short": "頻率",
      "mapping": [ {
        "map": "頻率:MedicationRequest.dosageInstruction.timing.repeat.frequency",
        "identity": "EP"
      } ],
      "definition": "頻率"
    }, {
      "id": "EPModel.prescriptionContent.usagetime",
      "max": "1",
      "min": 0,
      "path": "EPModel.prescriptionContent.usagetime",
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/CodeableConcept" ]
      } ],
      "short": "使用時間",
      "mapping": [ {
        "map": "使用時間:MedicationRequest.dosageInstruction.timing.code",
        "identity": "EP"
      } ],
      "definition": "使用時間,如飯前後"
    }, {
      "id": "EPModel.prescriptionContent.routeofAdministration",
      "max": "1",
      "min": 1,
      "path": "EPModel.prescriptionContent.routeofAdministration",
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/CodeableConcept" ]
      } ],
      "short": "給藥途徑",
      "mapping": [ {
        "map": "給藥途徑:MedicationRequest.dosageInstruction.route",
        "identity": "EP"
      } ],
      "definition": "給藥途徑"
    }, {
      "id": "EPModel.prescriptionContent.medicationDays",
      "max": "1",
      "min": 1,
      "path": "EPModel.prescriptionContent.medicationDays",
      "type": [ {
        "code": "Duration",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Duration" ]
      } ],
      "short": "給藥日數",
      "mapping": [ {
        "map": "給藥日數:MedicationRequest.dispenseRequest.expectedSupplyDuration",
        "identity": "EP"
      } ],
      "definition": "給藥日數"
    }, {
      "id": "EPModel.prescriptionContent.totalAmount",
      "max": "1",
      "min": 1,
      "path": "EPModel.prescriptionContent.totalAmount",
      "type": [ {
        "code": "decimal",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/decimal" ]
      } ],
      "short": "給藥總量",
      "mapping": [ {
        "map": "給藥總量:MedicationRequest.dispenseRequest.quantity.value",
        "identity": "EP"
      } ],
      "definition": "給藥總量"
    }, {
      "id": "EPModel.prescriptionContent.totalUnits",
      "max": "1",
      "min": 1,
      "path": "EPModel.prescriptionContent.totalUnits",
      "type": [ {
        "code": "string",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/string" ]
      } ],
      "short": "給藥總量單位",
      "mapping": [ {
        "map": "給藥總量單位:MedicationRequest.dispenseRequest.quantity.unit",
        "identity": "EP"
      } ],
      "definition": "給藥總量單位,如:顆、CC、瓶等"
    }, {
      "id": "EPModel.prescriptionContent.selfnote",
      "max": "1",
      "min": 0,
      "path": "EPModel.prescriptionContent.selfnote",
      "type": [ {
        "code": "Annotation",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Annotation" ]
      } ],
      "short": "自費註記",
      "mapping": [ {
        "map": "自費註記:MedicationRequest.note",
        "identity": "EP"
      } ],
      "definition": "自費註記"
    }, {
      "id": "EPModel.prescriptionContent.directions",
      "max": "1",
      "min": 0,
      "path": "EPModel.prescriptionContent.directions",
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/CodeableConcept" ]
      } ],
      "short": "用藥指示",
      "mapping": [ {
        "map": "用藥指示:MedicationRequest.dosageInstruction.method",
        "identity": "EP"
      } ],
      "definition": "用藥指示"
    } ]
  },
  "contact": [ {
    "telecom": [ {
      "value": "https://www.mohw.gov.tw/mp-1.html",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element"
}