ep-model
type: StructureDefinition
node role: treeRoot
id:
  v: ep-model
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition ep-model Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> EMPDModel 0..* Element 電子處方箋邏輯模型 Elements defined in Ancestors:@id, <a href="http://hl7.org/fhir/R4/datatypes.html#Element" title="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.">extension #xD; hospital 1..1 BackboneElement 醫事機構基本資料 #xD; hospitalId 1..1 Identifier 醫療機構代碼 #xD; hospitalName 1..1 string 醫療機構名稱 #xD; address 1..1 Address 醫療機構地址 #xD; telecom 1..1 ContactPoint 醫療機構電話 #xD; patientInformation 1..1 BackboneElement 病人基本資料 #xD; idNumber 1..1 Identifier 身分證號 #xD; chartNo 0..1 Identifier 病歷號碼 #xD; name 1..1 HumanName 姓名 #xD; gender 1..1 code 性別 #xD; birthDate 1..1 date 出生日期 #xD; age 1..1 Age 就診年齡 #xD; identityType 1..1 CodeableConcept 就醫身分別 #xD; weight 0..1 Quantity 體重 #xD; outpatient 1..1 BackboneElement 門診基本資料 #xD; opdDate 1..1 dateTime 門診日期 #xD; department 1..1 CodeableConcept 科別 #xD; medicalIdentifier 1..1 Identifier 就醫識別碼 #xD; note 0..1 Annotation 部分負擔代碼 #xD; medicaltreatmentNumber 0..1 Identifier 健保卡就醫序號 #xD; class 0..1 Coding 案件分類 #xD; type 0..1 CodeableConcept 給付類別 #xD; practitionerInformation 1..1 BackboneElement 醫事人員基本資料 #xD; physicianName 1..1 HumanName 醫師姓名 #xD; licenseNumber 0..1 Identifier 管制藥品使用執照號碼 #xD; telecom 0..1 ContactPoint 醫師聯絡電話 #xD; certificateNo 0..1 Identifier 醫事人員證書字號 #xD; diagnose 1..* BackboneElement 診斷 #xD; icdCode 1..1 code 國際疾病分類代碼ICD Code(International Classification of Diseases) #xD; note 0..1 Annotation 醫療評估內容註記 #xD; prescriptionNo 1..1 Identifier 處方箋單號 #xD; typeofPrescription 1..1 CodeableConcept 處方箋種類註記 #xD; combinedPrescriptionNote 1..1…
url:
  v: https://nhicore.nhi.gov.tw/empd/StructureDefinition/ep-model
version:
  v: 0.2.0
name:
  v: EMPDModel
title:
  v: 電子處方箋-邏輯模型
status:
  v: active
date:
  v: 2024-04-20
publisher:
  v: NHI
contact:
  name:
    v: NHI
  telecom:
    system:
      v: url
    value:
      v: https://www.nhi.gov.tw/en/mp-2.html
description:
  v: 用於描述電子處方箋邏輯模型
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: EMPD
  uri:
    v: https://nhicore.nhi.gov.tw/empd
  name:
    v: EMPDModel
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
  name:
    v: RIM Mapping
kind:
  v: logical
abstract:
  v: false
type:
  v: https://nhicore.nhi.gov.tw/empd/StructureDefinition/EMPDModel
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Element
  link: http://hl7.org/fhir/StructureDefinition/Element
derivation:
  v: specialization
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
    value: string
      v: 4.0.1
  element:
    id:
      v: EMPDModel
    path:
      v: EMPDModel
    short:
      v: 電子處方箋邏輯模型
    definition:
      v: 用於描述電子處方箋邏輯模型
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Element
      min:
        v: 0
      max:
        v: *
    condition:
      v: ele-1
    constraint:
      key:
        v: ele-1
      severity:
        v: error
      human:
        v: All FHIR elements must have a @value or children
      expression:
        v: hasValue() or (children().count() > id.count())
      xpath:
        v: @value|f:*|h:div
      source:
        v: http://hl7.org/fhir/StructureDefinition/Element
        link: http://hl7.org/fhir/StructureDefinition/Element
    is modifier:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: n/a
  element:
    id:
      v: EMPDModel.id
    path:
      v: EMPDModel.id
    representation:
      v: xmlAttr
    short:
      v: Unique id for inter-element referencing
    definition:
      v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: Element.id
      min:
        v: 0
      max:
        v: 1
    type:
      extension:
        value: url
      code:
        v: http://hl7.org/fhirpath/System.String
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: n/a
  element:
    id:
      v: EMPDModel.extension
    path:
      v: EMPDModel.extension
    slicing:
      description:
        v: Extensions are always sliced by (at least) url
      rules:
        v: open
    short:
      v: Additional content defined by implementations
    definition:
      v: 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.
    comment:
      v: 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.
    alias:
      v: extensions
    alias:
      v: user content
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Element.extension
      min:
        v: 0
      max:
        v: *
    type:
      code:
        v: Extension
    constraint:
      key:
        v: ele-1
      severity:
        v: error
      human:
        v: All FHIR elements must have a @value or children
      expression:
        v: hasValue() or (children().count() > id.count())
      xpath:
        v: @value|f:*|h:div
      source:
        v: http://hl7.org/fhir/StructureDefinition/Element
        link: http://hl7.org/fhir/StructureDefinition/Element
    constraint:
      key:
        v: ext-1
      severity:
        v: error
      human:
        v: Must have either extensions or value[x], not both
      expression:
        v: extension.exists() != value.exists()
      xpath:
        v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])

url
v: string

v: value

v: url

v: false

v: false

identity:
  v: rim
map:
  v: n/a

id:
  v: EMPDModel.hospital
path:
  v: EMPDModel.hospital
short:
  v: 醫事機構基本資料
definition:
  v: 醫事機構基本資料
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.hospital
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: EMPDModel.hospital.id
path:
  v: EMPDModel.hospital.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: EMPDModel.hospital.extension
path:
  v: EMPDModel.hospital.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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.
comment:
  v: 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.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: EMPDModel.hospital.modifierExtension
path:
  v: EMPDModel.hospital.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: 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).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: EMPDModel.hospital.hospitalId
path:
  v: EMPDModel.hospital.hospitalId
short:
  v: 醫療機構代碼
definition:
  v: 醫療機構代碼
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.hospital.hospitalId
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Identifier
mapping:
  identity:
    v: EMPD
  map:
    v: 醫療機構代碼:Organization.Identifier

id:
  v: EMPDModel.hospital.hospitalName
path:
  v: EMPDModel.hospital.hospitalName
short:
  v: 醫療機構名稱
definition:
  v: 醫療機構名稱
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.hospital.hospitalName
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
mapping:
  identity:
    v: EMPD
  map:
    v: 醫療機構名稱:Organization.name

id:
  v: EMPDModel.hospital.address
path:
  v: EMPDModel.hospital.address
short:
  v: 醫療機構地址
definition:
  v: 醫療機構地址
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.hospital.address
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Address
mapping:
  identity:
    v: EMPD
  map:
    v: 醫療機構地址:Organization.address

id:
  v: EMPDModel.hospital.telecom
path:
  v: EMPDModel.hospital.telecom
short:
  v: 醫療機構電話
definition:
  v: 醫療機構電話
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.hospital.telecom
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: ContactPoint
mapping:
  identity:
    v: EMPD
  map:
    v: 醫療機構電話:Organization.telecom

id:
  v: EMPDModel.patientInformation
path:
  v: EMPDModel.patientInformation
short:
  v: 病人基本資料
definition:
  v: 病人基本資料
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.patientInformation
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: EMPDModel.patientInformation.id
path:
  v: EMPDModel.patientInformation.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: EMPDModel.patientInformation.extension
path:
  v: EMPDModel.patientInformation.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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.
comment:
  v: 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.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: EMPDModel.patientInformation.modifierExtension
path:
  v: EMPDModel.patientInformation.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: 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).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: EMPDModel.patientInformation.idNumber
path:
  v: EMPDModel.patientInformation.idNumber
short:
  v: 身分證號
definition:
  v: 身分證號/護照號碼/居留證號
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.patientInformation.idNumber
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Identifier
mapping:
  identity:
    v: EMPD
  map:
    v: 身分證號:Patient.identifier

id:
  v: EMPDModel.patientInformation.chartNo
path:
  v: EMPDModel.patientInformation.chartNo
short:
  v: 病歷號碼
definition:
  v: 病歷號碼
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EMPDModel.patientInformation.chartNo
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
mapping:
  identity:
    v: EMPD
  map:
    v: 病歷號碼:Patient.identifier

id:
  v: EMPDModel.patientInformation.name
path:
  v: EMPDModel.patientInformation.name
short:
  v: 姓名
definition:
  v: 姓名
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.patientInformation.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: HumanName
mapping:
  identity:
    v: EMPD
  map:
    v: 姓名:Patient.name

id:
  v: EMPDModel.patientInformation.gender
path:
  v: EMPDModel.patientInformation.gender
short:
  v: 性別
definition:
  v: 性別
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.patientInformation.gender
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
mapping:
  identity:
    v: EMPD
  map:
    v: 性別:Patient.gender

id:
  v: EMPDModel.patientInformation.birthDate
path:
  v: EMPDModel.patientInformation.birthDate
short:
  v: 出生日期
definition:
  v: 出生日期，格式為西元YYYYMMDD
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.patientInformation.birthDate
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: date
mapping:
  identity:
    v: EMPD
  map:
    v: 出生日期:Patient.birthDate

id:
  v: EMPDModel.patientInformation.age
path:
  v: EMPDModel.patientInformation.age
short:
  v: 就診年齡
definition:
  v: 就診年齡
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.patientInformation.age
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Age
mapping:
  identity:
    v: EMPD
  map:
    v: 就診年齡:Patient.extension.valueAge

id:
  v: EMPDModel.patientInformation.identityType
path:
  v: EMPDModel.patientInformation.identityType
short:
  v: 就醫身分別
definition:
  v: 就醫身分別，健保、非健保
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.patientInformation.identityType
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: EMPD
  map:
    v: 就醫身分別:Coverage

id:
  v: EMPDModel.patientInformation.weight
path:
  v: EMPDModel.patientInformation.weight
short:
  v: 體重
definition:
  v: 體重。若調劑藥物劑量須配合體重而有所調整，此欄位為必填
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EMPDModel.patientInformation.weight
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
mapping:
  identity:
    v: EMPD
  map:
    v: 體重:Observation.valueQuantity

id:
  v: EMPDModel.outpatient
path:
  v: EMPDModel.outpatient
short:
  v: 門診基本資料
definition:
  v: 門診基本資料
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.outpatient
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: EMPDModel.outpatient.id
path:
  v: EMPDModel.outpatient.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: EMPDModel.outpatient.extension
path:
  v: EMPDModel.outpatient.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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.
comment:
  v: 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.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: EMPDModel.outpatient.modifierExtension
path:
  v: EMPDModel.outpatient.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: 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).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: EMPDModel.outpatient.opdDate
path:
  v: EMPDModel.outpatient.opdDate
short:
  v: 門診日期
definition:
  v: 門診日期，等同開立處方日期，格式為西元YYYYMMDD
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.outpatient.opdDate
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
mapping:
  identity:
    v: EMPD
  map:
    v: 門診日期:Encounter.period.start

id:
  v: EMPDModel.outpatient.department
path:
  v: EMPDModel.outpatient.department
short:
  v: 科別
definition:
  v: 科別
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.outpatient.department
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: EMPD
  map:
    v: 科別:Encounter.serviceType

id:
  v: EMPDModel.outpatient.medicalIdentifier
path:
  v: EMPDModel.outpatient.medicalIdentifier
short:
  v: 就醫識別碼
definition:
  v: 就醫識別碼
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.outpatient.medicalIdentifier
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Identifier
mapping:
  identity:
    v: EMPD
  map:
    v: 就醫識別碼:Encounter.identifier

id:
  v: EMPDModel.outpatient.note
path:
  v: EMPDModel.outpatient.note
short:
  v: 部分負擔代碼
definition:
  v: 部分負擔代碼
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EMPDModel.outpatient.note
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Annotation
mapping:
  identity:
    v: EMPD
  map:
    v: 部分負擔代碼:Condition.note

id:
  v: EMPDModel.outpatient.medicaltreatmentNumber
path:
  v: EMPDModel.outpatient.medicaltreatmentNumber
short:
  v: 健保卡就醫序號
definition:
  v: 健保卡就醫序號
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EMPDModel.outpatient.medicaltreatmentNumber
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
mapping:
  identity:
    v: EMPD
  map:
    v: 健保卡就醫序號:Encounter.identifier

id:
  v: EMPDModel.outpatient.class
path:
  v: EMPDModel.outpatient.class
short:
  v: 案件分類
definition:
  v: 案件分類。 健保案件分類，如01:西醫一般案件 02:西醫急診 03:西醫門診手術 04:西醫慢性病 05:洗腎 06:結核病 08:慢性病連續處方調劑 09:西醫其他專案 11:牙醫一般案件 12:牙醫急診 13:牙醫門診手術等。 自費案件可免填。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EMPDModel.outpatient.class
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
mapping:
  identity:
    v: EMPD
  map:
    v: 案件分類:Encounter.class

id:
  v: EMPDModel.outpatient.type
path:
  v: EMPDModel.outpatient.type
short:
  v: 給付類別
definition:
  v: 給付類別。此欄位涉及藥局向民眾收取部分負擔金額判斷，且藥局申報給付類別需依照原處方所列給付類別代碼申報。 依健保卡上傳資料格式 2.0 填寫(非必填) 1:職業傷害 2:職業病 3:普通傷害 4:普通疾病 8:天然災害 9:呼吸照護 D:起雲劑 Y:八仙樂園粉塵暴燃事件 Z:高雄市氣爆事件
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EMPDModel.outpatient.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: EMPD
  map:
    v: 給付類別:Coverage.type

id:
  v: EMPDModel.practitionerInformation
path:
  v: EMPDModel.practitionerInformation
short:
  v: 醫事人員基本資料
definition:
  v: 醫事人員基本資料
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.practitionerInformation
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: EMPDModel.practitionerInformation.id
path:
  v: EMPDModel.practitionerInformation.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: EMPDModel.practitionerInformation.extension
path:
  v: EMPDModel.practitionerInformation.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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.
comment:
  v: 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.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: EMPDModel.practitionerInformation.modifierExtension
path:
  v: EMPDModel.practitionerInformation.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: 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).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: EMPDModel.practitionerInformation.physicianName
path:
  v: EMPDModel.practitionerInformation.physicianName
short:
  v: 醫師姓名
definition:
  v: 醫師姓名
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.practitionerInformation.physicianName
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: HumanName
mapping:
  identity:
    v: EMPD
  map:
    v: 醫師姓名:Practitioner.name

id:
  v: EMPDModel.practitionerInformation.licenseNumber
path:
  v: EMPDModel.practitionerInformation.licenseNumber
short:
  v: 管制藥品使用執照號碼
definition:
  v: 管制藥品使用執照號碼。開立第一級、第二級及第三級管制藥品專用處方箋，此欄位為必填。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EMPDModel.practitionerInformation.licenseNumber
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
mapping:
  identity:
    v: EMPD
  map:
    v: 管制藥品使用執照號碼:Practitioner.identifier.value

id:
  v: EMPDModel.practitionerInformation.telecom
path:
  v: EMPDModel.practitionerInformation.telecom
short:
  v: 醫師聯絡電話
definition:
  v: 醫師聯絡電話。開立第一級、第二級及第三級管制藥品專用處方箋，此欄位為必填。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EMPDModel.practitionerInformation.telecom
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: ContactPoint
mapping:
  identity:
    v: EMPD
  map:
    v: 醫師聯絡電話:Practitioner.telecom.value

id:
  v: EMPDModel.practitionerInformation.certificateNo
path:
  v: EMPDModel.practitionerInformation.certificateNo
short:
  v: 醫事人員證書字號
definition:
  v: 醫事人員證書字號
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EMPDModel.practitionerInformation.certificateNo
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
mapping:
  identity:
    v: EMPD
  map:
    v: 醫事人員證書字號:Practitioner.qualification.identifier.value

id:
  v: EMPDModel.diagnose
path:
  v: EMPDModel.diagnose
short:
  v: 診斷
definition:
  v: 診斷
min:
  v: 1
max:
  v: *
base:
  path:
    v: EMPDModel.diagnose
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: EMPDModel.diagnose.id
path:
  v: EMPDModel.diagnose.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: EMPDModel.diagnose.extension
path:
  v: EMPDModel.diagnose.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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.
comment:
  v: 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.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: EMPDModel.diagnose.modifierExtension
path:
  v: EMPDModel.diagnose.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: 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).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: EMPDModel.diagnose.icdCode
path:
  v: EMPDModel.diagnose.icdCode
short:
  v: 國際疾病分類代碼ICD Code(International Classification of Diseases)
definition:
  v: 國際疾病分類代碼ICD Code(International Classification of Diseases)，應含主診斷或次診斷之ICD代碼
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.diagnose.icdCode
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
mapping:
  identity:
    v: EMPD
  map:
    v: 國際疾病分類代碼:Condition.code.coding.code

id:
  v: EMPDModel.diagnose.note
path:
  v: EMPDModel.diagnose.note
short:
  v: 醫療評估內容註記
definition:
  v: 醫療評估之內容註記
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EMPDModel.diagnose.note
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Annotation
mapping:
  identity:
    v: EMPD
  map:
    v: 醫療評估之內容註記:Condition.note

id:
  v: EMPDModel.prescriptionNo
path:
  v: EMPDModel.prescriptionNo
short:
  v: 處方箋單號
definition:
  v: 處方箋單號
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.prescriptionNo
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Identifier
mapping:
  identity:
    v: EMPD
  map:
    v: 處方箋單號:MedicationRequest.identifier

id:
  v: EMPDModel.typeofPrescription
path:
  v: EMPDModel.typeofPrescription
short:
  v: 處方箋種類註記
definition:
  v: 處方箋種類註記 A:一般處方箋:處方用藥，一次給予7日(含)以下之用藥量 B:慢性病處方箋 C:慢性病連續處方箋 D:管制藥品專用處方箋(一般) E:管制藥品專用處方箋(慢箋) F管制藥品專用處方箋(慢連箋)
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.typeofPrescription
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: EMPD
  map:
    v: 處方箋種類註記:MedicationRequest.category

id:
  v: EMPDModel.combinedPrescriptionNote
path:
  v: EMPDModel.combinedPrescriptionNote
short:
  v: 須被合併之處方箋註記
definition:
  v: 須被合併之處方箋註記。 合併請填是，預設值為「否」。說明：同時開立管制藥品及一般藥品時，須開立二張處方箋，並在這二張處方箋此欄位上註記「是」。
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.combinedPrescriptionNote
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Annotation
mapping:
  identity:
    v: EMPD
  map:
    v: 須被合併之處方箋註記:MedicationRequest.note

id:
  v: EMPDModel.prescriptionDatetime
path:
  v: EMPDModel.prescriptionDatetime
short:
  v: 處方箋有效日期
definition:
  v: 處方箋有效日期
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.prescriptionDatetime
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: EMPDModel.prescriptionDatetime.id
path:
  v: EMPDModel.prescriptionDatetime.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: EMPDModel.prescriptionDatetime.extension
path:
  v: EMPDModel.prescriptionDatetime.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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.
comment:
  v: 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.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: EMPDModel.prescriptionDatetime.modifierExtension
path:
  v: EMPDModel.prescriptionDatetime.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: 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).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: EMPDModel.prescriptionDatetime.datetime
path:
  v: EMPDModel.prescriptionDatetime.datetime
short:
  v: 處方箋有效日期
definition:
  v: 處方箋有效日期，包含第二次之後的建議領藥日期；格式為西元YYYYMMDD
min:
  v: 1
max:
  v: *
base:
  path:
    v: EMPDModel.prescriptionDatetime.datetime
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: dateTime
mapping:
  identity:
    v: EMPD
  map:
    v: 處方箋有效日期:Composition.date

id:
  v: EMPDModel.prescriptionDatetime.note
path:
  v: EMPDModel.prescriptionDatetime.note
short:
  v: 處方箋註銷註記
definition:
  v: 處方箋註銷註記，註銷請填Y，並至處方箋有效日期更新為處方箋註銷日期說明： 用於就醫當次未調劑處方或第二次(含)以後未調劑慢連箋處方之註銷
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EMPDModel.prescriptionDatetime.note
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Annotation
mapping:
  identity:
    v: EMPD
  map:
    v: 處方箋註銷註記:MedicationRequest.note

id:
  v: EMPDModel.totalMedicationsDays
path:
  v: EMPDModel.totalMedicationsDays
short:
  v: 給藥總日份
definition:
  v: 給藥總日份
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.totalMedicationsDays
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: positiveInt
mapping:
  identity:
    v: EMPD
  map:
    v: 給藥總日份:MedicationRequest.extension

id:
  v: EMPDModel.refillTimes
path:
  v: EMPDModel.refillTimes
short:
  v: 連續處方可調劑次數
definition:
  v: 連續處方可調劑次數
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.refillTimes
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: unsignedInt
mapping:
  identity:
    v: EMPD
  map:
    v: 連續處方可調劑次數:MedicationRequest.dispenseRequest.numberOfRepeatsAllowed

id:
  v: EMPDModel.prescriptionContent
path:
  v: EMPDModel.prescriptionContent
short:
  v: 處方內容
definition:
  v: 處方內容
min:
  v: 1
max:
  v: *
base:
  path:
    v: EMPDModel.prescriptionContent
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: EMPDModel.prescriptionContent.id
path:
  v: EMPDModel.prescriptionContent.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: EMPDModel.prescriptionContent.extension
path:
  v: EMPDModel.prescriptionContent.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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.
comment:
  v: 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.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: EMPDModel.prescriptionContent.modifierExtension
path:
  v: EMPDModel.prescriptionContent.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: 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).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: EMPDModel.prescriptionContent.orderType
path:
  v: EMPDModel.prescriptionContent.orderType
short:
  v: 醫令類別
definition:
  v: 藉由「醫令類別」區分是否為藥品或特殊材料。
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.prescriptionContent.orderType
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: EMPD
  map:
    v: 醫令類別:MedicationRequest.category

id:
  v: EMPDModel.prescriptionContent.item
path:
  v: EMPDModel.prescriptionContent.item
short:
  v: 項次
definition:
  v: 項次。使民眾及藥局確認藥品品項數。
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.prescriptionContent.item
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Identifier
mapping:
  identity:
    v: EMPD
  map:
    v: 項次:MedicationRequest.identifier

id:
  v: EMPDModel.prescriptionContent.code
path:
  v: EMPDModel.prescriptionContent.code
short:
  v: 健保代碼
definition:
  v: 健保代碼
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.prescriptionContent.code
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: EMPD
  map:
    v: 健保代碼:Medication.code

id:
  v: EMPDModel.prescriptionContent.brandName
path:
  v: EMPDModel.prescriptionContent.brandName
short:
  v: 藥品商品名稱
definition:
  v: 藥品商品名稱
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EMPDModel.prescriptionContent.brandName
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
mapping:
  identity:
    v: EMPD
  map:
    v: 藥品商品名稱Medication.code.coding.display，使用學名則填入於Medication.code.text

id:
  v: EMPDModel.prescriptionContent.genericName
path:
  v: EMPDModel.prescriptionContent.genericName
short:
  v: 學名
definition:
  v: 學名
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.prescriptionContent.genericName
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
mapping:
  identity:
    v: EMPD
  map:
    v: 學名:Medication.code.text或Medication.code.coding.display

id:
  v: EMPDModel.prescriptionContent.substitution
path:
  v: EMPDModel.prescriptionContent.substitution
short:
  v: 不得以其他廠牌藥品替代之理由
definition:
  v: 不得以其他廠牌藥品替代之理由。填寫說明：有特殊情況時才填寫。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EMPDModel.prescriptionContent.substitution
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: EMPD
  map:
    v: 不得以其他廠牌藥品替代之理由:MedicationRequest.substitution

id:
  v: EMPDModel.prescriptionContent.drugunitContent
path:
  v: EMPDModel.prescriptionContent.drugunitContent
short:
  v: 藥品單位含量
definition:
  v: 藥品單位含量
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.prescriptionContent.drugunitContent
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Ratio
mapping:
  identity:
    v: EMPD
  map:
    v: 藥品單位含量:Medication.ingredient.strength

id:
  v: EMPDModel.prescriptionContent.dosageForm
path:
  v: EMPDModel.prescriptionContent.dosageForm
short:
  v: 劑型
definition:
  v: 劑型，如藥水、藥丸等
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.prescriptionContent.dosageForm
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: EMPD
  map:
    v: 劑型:Medication.form

id:
  v: EMPDModel.prescriptionContent.dose
path:
  v: EMPDModel.prescriptionContent.dose
short:
  v: 劑量
definition:
  v: 劑量
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.prescriptionContent.dose
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: decimal
mapping:
  identity:
    v: EMPD
  map:
    v: 劑量:MedicationRequest.dosageInstruction.doseAndRate.doseQuantity.value

id:
  v: EMPDModel.prescriptionContent.doseUnits
path:
  v: EMPDModel.prescriptionContent.doseUnits
short:
  v: 劑量單位
definition:
  v: 劑量單位，如：顆、CC等
min:
  v: 0
max:
  v: *
base:
  path:
    v: EMPDModel.prescriptionContent.doseUnits
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: string
mapping:
  identity:
    v: EMPD
  map:
    v: 劑量單位:MedicationRequest.dosageInstruction.doseAndRate.doseQuantity.unit

id:
  v: EMPDModel.prescriptionContent.frequency
path:
  v: EMPDModel.prescriptionContent.frequency
short:
  v: 頻率
definition:
  v: 頻率
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.prescriptionContent.frequency
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: positiveInt
mapping:
  identity:
    v: EMPD
  map:
    v: 頻率:MedicationRequest.dosageInstruction.timing.repeat.frequency

id:
  v: EMPDModel.prescriptionContent.usagetime
path:
  v: EMPDModel.prescriptionContent.usagetime
short:
  v: 使用時間
definition:
  v: 使用時間，如飯前後
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EMPDModel.prescriptionContent.usagetime
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: EMPD
  map:
    v: 使用時間:MedicationRequest.dosageInstruction.timing.code

id:
  v: EMPDModel.prescriptionContent.routeofAdministration
path:
  v: EMPDModel.prescriptionContent.routeofAdministration
short:
  v: 給藥途徑
definition:
  v: 給藥途徑
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.prescriptionContent.routeofAdministration
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: EMPD
  map:
    v: 給藥途徑:MedicationRequest.dosageInstruction.route

id:
  v: EMPDModel.prescriptionContent.medicationDays
path:
  v: EMPDModel.prescriptionContent.medicationDays
short:
  v: 給藥日數
definition:
  v: 給藥日數
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.prescriptionContent.medicationDays
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Duration
mapping:
  identity:
    v: EMPD
  map:
    v: 給藥日數:MedicationRequest.dispenseRequest.expectedSupplyDuration

id:
  v: EMPDModel.prescriptionContent.totalAmount
path:
  v: EMPDModel.prescriptionContent.totalAmount
short:
  v: 給藥總量
definition:
  v: 給藥總量
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.prescriptionContent.totalAmount
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: decimal
mapping:
  identity:
    v: EMPD
  map:
    v: 給藥總量:MedicationRequest.dispenseRequest.quantity.value

id:
  v: EMPDModel.prescriptionContent.totalUnits
path:
  v: EMPDModel.prescriptionContent.totalUnits
short:
  v: 給藥總量單位
definition:
  v: 給藥總量單位，如：顆、CC、瓶等
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EMPDModel.prescriptionContent.totalUnits
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
mapping:
  identity:
    v: EMPD
  map:
    v: 給藥總量單位:MedicationRequest.dispenseRequest.quantity.unit

id:
  v: EMPDModel.prescriptionContent.selfnote
path:
  v: EMPDModel.prescriptionContent.selfnote
short:
  v: 自費註記
definition:
  v: 自費註記
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EMPDModel.prescriptionContent.selfnote
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Annotation
mapping:
  identity:
    v: EMPD
  map:
    v: 自費註記:MedicationRequest.note

id:
  v: EMPDModel.prescriptionContent.directions
path:
  v: EMPDModel.prescriptionContent.directions
short:
  v: 用藥指示
definition:
  v: 用藥指示
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EMPDModel.prescriptionContent.directions
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: EMPD
  map:
    v: 用藥指示:MedicationRequest.dosageInstruction.method

element:
  id:
    v: EMPDModel
  path:
    v: EMPDModel
  short:
    v: 電子處方箋邏輯模型
  definition:
    v: 用於描述電子處方箋邏輯模型
element:
  id:
    v: EMPDModel.hospital
  path:
    v: EMPDModel.hospital
  short:
    v: 醫事機構基本資料
  definition:
    v: 醫事機構基本資料
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: BackboneElement
element:
  id:
    v: EMPDModel.hospital.hospitalId
  path:
    v: EMPDModel.hospital.hospitalId
  short:
    v: 醫療機構代碼
  definition:
    v: 醫療機構代碼
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Identifier
  mapping:
    identity:
      v: EMPD
    map:
      v: 醫療機構代碼:Organization.Identifier
element:
  id:
    v: EMPDModel.hospital.hospitalName
  path:
    v: EMPDModel.hospital.hospitalName
  short:
    v: 醫療機構名稱
  definition:
    v: 醫療機構名稱
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: string
  mapping:
    identity:
      v: EMPD
    map:
      v: 醫療機構名稱:Organization.name
element:
  id:
    v: EMPDModel.hospital.address
  path:
    v: EMPDModel.hospital.address
  short:
    v: 醫療機構地址
  definition:
    v: 醫療機構地址
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Address
  mapping:
    identity:
      v: EMPD
    map:
      v: 醫療機構地址:Organization.address
element:
  id:
    v: EMPDModel.hospital.telecom
  path:
    v: EMPDModel.hospital.telecom
  short:
    v: 醫療機構電話
  definition:
    v: 醫療機構電話
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: ContactPoint
  mapping:
    identity:
      v: EMPD
    map:
      v: 醫療機構電話:Organization.telecom
element:
  id:
    v: EMPDModel.patientInformation
  path:
    v: EMPDModel.patientInformation
  short:
    v: 病人基本資料
  definition:
    v: 病人基本資料
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: BackboneElement
element:
  id:
    v: EMPDModel.patientInformation.idNumber
  path:
    v: EMPDModel.patientInformation.idNumber
  short:
    v: 身分證號
  definition:
    v: 身分證號/護照號碼/居留證號
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Identifier
  mapping:
    identity:
      v: EMPD
    map:
      v: 身分證號:Patient.identifier
element:
  id:
    v: EMPDModel.patientInformation.chartNo
  path:
    v: EMPDModel.patientInformation.chartNo
  short:
    v: 病歷號碼
  definition:
    v: 病歷號碼
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Identifier
  mapping:
    identity:
      v: EMPD
    map:
      v: 病歷號碼:Patient.identifier
element:
  id:
    v: EMPDModel.patientInformation.name
  path:
    v: EMPDModel.patientInformation.name
  short:
    v: 姓名
  definition:
    v: 姓名
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: HumanName
  mapping:
    identity:
      v: EMPD
    map:
      v: 姓名:Patient.name
element:
  id:
    v: EMPDModel.patientInformation.gender
  path:
    v: EMPDModel.patientInformation.gender
  short:
    v: 性別
  definition:
    v: 性別
  min:
    v: 1
  max:
    v: 1

code:
  v: code

identity:
  v: EMPD
map:
  v: 性別:Patient.gender

id:
  v: EMPDModel.patientInformation.birthDate
path:
  v: EMPDModel.patientInformation.birthDate
short:
  v: 出生日期
definition:
  v: 出生日期，格式為西元YYYYMMDD
min:
  v: 1
max:
  v: 1
type:
  code:
    v: date
mapping:
  identity:
    v: EMPD
  map:
    v: 出生日期:Patient.birthDate

id:
  v: EMPDModel.patientInformation.age
path:
  v: EMPDModel.patientInformation.age
short:
  v: 就診年齡
definition:
  v: 就診年齡
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Age
mapping:
  identity:
    v: EMPD
  map:
    v: 就診年齡:Patient.extension.valueAge

id:
  v: EMPDModel.patientInformation.identityType
path:
  v: EMPDModel.patientInformation.identityType
short:
  v: 就醫身分別
definition:
  v: 就醫身分別，健保、非健保
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: EMPD
  map:
    v: 就醫身分別:Coverage

id:
  v: EMPDModel.patientInformation.weight
path:
  v: EMPDModel.patientInformation.weight
short:
  v: 體重
definition:
  v: 體重。若調劑藥物劑量須配合體重而有所調整，此欄位為必填
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Quantity
mapping:
  identity:
    v: EMPD
  map:
    v: 體重:Observation.valueQuantity

id:
  v: EMPDModel.outpatient
path:
  v: EMPDModel.outpatient
short:
  v: 門診基本資料
definition:
  v: 門診基本資料
min:
  v: 1
max:
  v: 1
type:
  code:
    v: BackboneElement

id:
  v: EMPDModel.outpatient.opdDate
path:
  v: EMPDModel.outpatient.opdDate
short:
  v: 門診日期
definition:
  v: 門診日期，等同開立處方日期，格式為西元YYYYMMDD
min:
  v: 1
max:
  v: 1
type:
  code:
    v: dateTime
mapping:
  identity:
    v: EMPD
  map:
    v: 門診日期:Encounter.period.start

id:
  v: EMPDModel.outpatient.department
path:
  v: EMPDModel.outpatient.department
short:
  v: 科別
definition:
  v: 科別
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: EMPD
  map:
    v: 科別:Encounter.serviceType

id:
  v: EMPDModel.outpatient.medicalIdentifier
path:
  v: EMPDModel.outpatient.medicalIdentifier
short:
  v: 就醫識別碼
definition:
  v: 就醫識別碼
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Identifier
mapping:
  identity:
    v: EMPD
  map:
    v: 就醫識別碼:Encounter.identifier

id:
  v: EMPDModel.outpatient.note
path:
  v: EMPDModel.outpatient.note
short:
  v: 部分負擔代碼
definition:
  v: 部分負擔代碼
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Annotation
mapping:
  identity:
    v: EMPD
  map:
    v: 部分負擔代碼:Condition.note

id:
  v: EMPDModel.outpatient.medicaltreatmentNumber
path:
  v: EMPDModel.outpatient.medicaltreatmentNumber
short:
  v: 健保卡就醫序號
definition:
  v: 健保卡就醫序號
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Identifier
mapping:
  identity:
    v: EMPD
  map:
    v: 健保卡就醫序號:Encounter.identifier

id:
  v: EMPDModel.outpatient.class
path:
  v: EMPDModel.outpatient.class
short:
  v: 案件分類
definition:
  v: 案件分類。 健保案件分類，如01:西醫一般案件 02:西醫急診 03:西醫門診手術 04:西醫慢性病 05:洗腎 06:結核病 08:慢性病連續處方調劑 09:西醫其他專案 11:牙醫一般案件 12:牙醫急診 13:牙醫門診手術等。 自費案件可免填。
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Coding
mapping:
  identity:
    v: EMPD
  map:
    v: 案件分類:Encounter.class

id:
  v: EMPDModel.outpatient.type
path:
  v: EMPDModel.outpatient.type
short:
  v: 給付類別
definition:
  v: 給付類別。此欄位涉及藥局向民眾收取部分負擔金額判斷，且藥局申報給付類別需依照原處方所列給付類別代碼申報。 依健保卡上傳資料格式 2.0 填寫(非必填) 1:職業傷害 2:職業病 3:普通傷害 4:普通疾病 8:天然災害 9:呼吸照護 D:起雲劑 Y:八仙樂園粉塵暴燃事件 Z:高雄市氣爆事件
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: EMPD
  map:
    v: 給付類別:Coverage.type

id:
  v: EMPDModel.practitionerInformation
path:
  v: EMPDModel.practitionerInformation
short:
  v: 醫事人員基本資料
definition:
  v: 醫事人員基本資料
min:
  v: 1
max:
  v: 1
type:
  code:
    v: BackboneElement

id:
  v: EMPDModel.practitionerInformation.physicianName
path:
  v: EMPDModel.practitionerInformation.physicianName
short:
  v: 醫師姓名
definition:
  v: 醫師姓名
min:
  v: 1
max:
  v: 1
type:
  code:
    v: HumanName
mapping:
  identity:
    v: EMPD
  map:
    v: 醫師姓名:Practitioner.name

id:
  v: EMPDModel.practitionerInformation.licenseNumber
path:
  v: EMPDModel.practitionerInformation.licenseNumber
short:
  v: 管制藥品使用執照號碼
definition:
  v: 管制藥品使用執照號碼。開立第一級、第二級及第三級管制藥品專用處方箋，此欄位為必填。
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Identifier
mapping:
  identity:
    v: EMPD
  map:
    v: 管制藥品使用執照號碼:Practitioner.identifier.value

id:
  v: EMPDModel.practitionerInformation.telecom
path:
  v: EMPDModel.practitionerInformation.telecom
short:
  v: 醫師聯絡電話
definition:
  v: 醫師聯絡電話。開立第一級、第二級及第三級管制藥品專用處方箋，此欄位為必填。
min:
  v: 0
max:
  v: 1
type:
  code:
    v: ContactPoint
mapping:
  identity:
    v: EMPD
  map:
    v: 醫師聯絡電話:Practitioner.telecom.value

id:
  v: EMPDModel.practitionerInformation.certificateNo
path:
  v: EMPDModel.practitionerInformation.certificateNo
short:
  v: 醫事人員證書字號
definition:
  v: 醫事人員證書字號
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Identifier
mapping:
  identity:
    v: EMPD
  map:
    v: 醫事人員證書字號:Practitioner.qualification.identifier.value

id:
  v: EMPDModel.diagnose
path:
  v: EMPDModel.diagnose
short:
  v: 診斷
definition:
  v: 診斷
min:
  v: 1
max:
  v: *
type:
  code:
    v: BackboneElement

id:
  v: EMPDModel.diagnose.icdCode
path:
  v: EMPDModel.diagnose.icdCode
short:
  v: 國際疾病分類代碼ICD Code(International Classification of Diseases)
definition:
  v: 國際疾病分類代碼ICD Code(International Classification of Diseases)，應含主診斷或次診斷之ICD代碼
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
mapping:
  identity:
    v: EMPD
  map:
    v: 國際疾病分類代碼:Condition.code.coding.code

id:
  v: EMPDModel.diagnose.note
path:
  v: EMPDModel.diagnose.note
short:
  v: 醫療評估內容註記
definition:
  v: 醫療評估之內容註記
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Annotation
mapping:
  identity:
    v: EMPD
  map:
    v: 醫療評估之內容註記:Condition.note

id:
  v: EMPDModel.prescriptionNo
path:
  v: EMPDModel.prescriptionNo
short:
  v: 處方箋單號
definition:
  v: 處方箋單號
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Identifier
mapping:
  identity:
    v: EMPD
  map:
    v: 處方箋單號:MedicationRequest.identifier

id:
  v: EMPDModel.typeofPrescription
path:
  v: EMPDModel.typeofPrescription
short:
  v: 處方箋種類註記
definition:
  v: 處方箋種類註記 A:一般處方箋:處方用藥，一次給予7日(含)以下之用藥量 B:慢性病處方箋 C:慢性病連續處方箋 D:管制藥品專用處方箋(一般) E:管制藥品專用處方箋(慢箋) F管制藥品專用處方箋(慢連箋)
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: EMPD
  map:
    v: 處方箋種類註記:MedicationRequest.category

id:
  v: EMPDModel.combinedPrescriptionNote
path:
  v: EMPDModel.combinedPrescriptionNote
short:
  v: 須被合併之處方箋註記
definition:
  v: 須被合併之處方箋註記。 合併請填是，預設值為「否」。說明：同時開立管制藥品及一般藥品時，須開立二張處方箋，並在這二張處方箋此欄位上註記「是」。
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Annotation
mapping:
  identity:
    v: EMPD
  map:
    v: 須被合併之處方箋註記:MedicationRequest.note

id:
  v: EMPDModel.prescriptionDatetime
path:
  v: EMPDModel.prescriptionDatetime
short:
  v: 處方箋有效日期
definition:
  v: 處方箋有效日期
min:
  v: 1
max:
  v: 1
type:
  code:
    v: BackboneElement

id:
  v: EMPDModel.prescriptionDatetime.datetime
path:
  v: EMPDModel.prescriptionDatetime.datetime
short:
  v: 處方箋有效日期
definition:
  v: 處方箋有效日期，包含第二次之後的建議領藥日期；格式為西元YYYYMMDD
min:
  v: 1
max:
  v: *
type:
  code:
    v: dateTime
mapping:
  identity:
    v: EMPD
  map:
    v: 處方箋有效日期:Composition.date

id:
  v: EMPDModel.prescriptionDatetime.note
path:
  v: EMPDModel.prescriptionDatetime.note
short:
  v: 處方箋註銷註記
definition:
  v: 處方箋註銷註記，註銷請填Y，並至處方箋有效日期更新為處方箋註銷日期說明： 用於就醫當次未調劑處方或第二次(含)以後未調劑慢連箋處方之註銷
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Annotation
mapping:
  identity:
    v: EMPD
  map:
    v: 處方箋註銷註記:MedicationRequest.note

id:
  v: EMPDModel.totalMedicationsDays
path:
  v: EMPDModel.totalMedicationsDays
short:
  v: 給藥總日份
definition:
  v: 給藥總日份
min:
  v: 1
max:
  v: 1
type:
  code:
    v: positiveInt
mapping:
  identity:
    v: EMPD
  map:
    v: 給藥總日份:MedicationRequest.extension

id:
  v: EMPDModel.refillTimes
path:
  v: EMPDModel.refillTimes
short:
  v: 連續處方可調劑次數
definition:
  v: 連續處方可調劑次數
min:
  v: 1
max:
  v: 1
type:
  code:
    v: unsignedInt
mapping:
  identity:
    v: EMPD
  map:
    v: 連續處方可調劑次數:MedicationRequest.dispenseRequest.numberOfRepeatsAllowed

id:
  v: EMPDModel.prescriptionContent
path:
  v: EMPDModel.prescriptionContent
short:
  v: 處方內容
definition:
  v: 處方內容
min:
  v: 1
max:
  v: *
type:
  code:
    v: BackboneElement

id:
  v: EMPDModel.prescriptionContent.orderType
path:
  v: EMPDModel.prescriptionContent.orderType
short:
  v: 醫令類別
definition:
  v: 藉由「醫令類別」區分是否為藥品或特殊材料。
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: EMPD
  map:
    v: 醫令類別:MedicationRequest.category

id:
  v: EMPDModel.prescriptionContent.item
path:
  v: EMPDModel.prescriptionContent.item
short:
  v: 項次
definition:
  v: 項次。使民眾及藥局確認藥品品項數。
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Identifier
mapping:
  identity:
    v: EMPD
  map:
    v: 項次:MedicationRequest.identifier

id:
  v: EMPDModel.prescriptionContent.code
path:
  v: EMPDModel.prescriptionContent.code
short:
  v: 健保代碼
definition:
  v: 健保代碼
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: EMPD
  map:
    v: 健保代碼:Medication.code

id:
  v: EMPDModel.prescriptionContent.brandName
path:
  v: EMPDModel.prescriptionContent.brandName
short:
  v: 藥品商品名稱
definition:
  v: 藥品商品名稱
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
mapping:
  identity:
    v: EMPD
  map:
    v: 藥品商品名稱Medication.code.coding.display，使用學名則填入於Medication.code.text

id:
  v: EMPDModel.prescriptionContent.genericName
path:
  v: EMPDModel.prescriptionContent.genericName
short:
  v: 學名
definition:
  v: 學名
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
mapping:
  identity:
    v: EMPD
  map:
    v: 學名:Medication.code.text或Medication.code.coding.display

id:
  v: EMPDModel.prescriptionContent.substitution
path:
  v: EMPDModel.prescriptionContent.substitution
short:
  v: 不得以其他廠牌藥品替代之理由
definition:
  v: 不得以其他廠牌藥品替代之理由。填寫說明：有特殊情況時才填寫。
min:
  v: 0
max:
  v: 1
type:
  code:
    v: BackboneElement
mapping:
  identity:
    v: EMPD
  map:
    v: 不得以其他廠牌藥品替代之理由:MedicationRequest.substitution

id:
  v: EMPDModel.prescriptionContent.drugunitContent
path:
  v: EMPDModel.prescriptionContent.drugunitContent
short:
  v: 藥品單位含量
definition:
  v: 藥品單位含量
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Ratio
mapping:
  identity:
    v: EMPD
  map:
    v: 藥品單位含量:Medication.ingredient.strength

id:
  v: EMPDModel.prescriptionContent.dosageForm
path:
  v: EMPDModel.prescriptionContent.dosageForm
short:
  v: 劑型
definition:
  v: 劑型，如藥水、藥丸等
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: EMPD
  map:
    v: 劑型:Medication.form

id:
  v: EMPDModel.prescriptionContent.dose
path:
  v: EMPDModel.prescriptionContent.dose
short:
  v: 劑量
definition:
  v: 劑量
min:
  v: 1
max:
  v: 1
type:
  code:
    v: decimal
mapping:
  identity:
    v: EMPD
  map:
    v: 劑量:MedicationRequest.dosageInstruction.doseAndRate.doseQuantity.value

id:
  v: EMPDModel.prescriptionContent.doseUnits
path:
  v: EMPDModel.prescriptionContent.doseUnits
short:
  v: 劑量單位
definition:
  v: 劑量單位，如：顆、CC等
min:
  v: 0
max:
  v: *
type:
  code:
    v: string
mapping:
  identity:
    v: EMPD
  map:
    v: 劑量單位:MedicationRequest.dosageInstruction.doseAndRate.doseQuantity.unit

id:
  v: EMPDModel.prescriptionContent.frequency
path:
  v: EMPDModel.prescriptionContent.frequency
short:
  v: 頻率
definition:
  v: 頻率
min:
  v: 1
max:
  v: 1
type:
  code:
    v: positiveInt
mapping:
  identity:
    v: EMPD
  map:
    v: 頻率:MedicationRequest.dosageInstruction.timing.repeat.frequency

id:
  v: EMPDModel.prescriptionContent.usagetime
path:
  v: EMPDModel.prescriptionContent.usagetime
short:
  v: 使用時間
definition:
  v: 使用時間，如飯前後
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: EMPD
  map:
    v: 使用時間:MedicationRequest.dosageInstruction.timing.code

id:
  v: EMPDModel.prescriptionContent.routeofAdministration
path:
  v: EMPDModel.prescriptionContent.routeofAdministration
short:
  v: 給藥途徑
definition:
  v: 給藥途徑
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: EMPD
  map:
    v: 給藥途徑:MedicationRequest.dosageInstruction.route

id:
  v: EMPDModel.prescriptionContent.medicationDays
path:
  v: EMPDModel.prescriptionContent.medicationDays
short:
  v: 給藥日數
definition:
  v: 給藥日數
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Duration
mapping:
  identity:
    v: EMPD
  map:
    v: 給藥日數:MedicationRequest.dispenseRequest.expectedSupplyDuration

id:
  v: EMPDModel.prescriptionContent.totalAmount
path:
  v: EMPDModel.prescriptionContent.totalAmount
short:
  v: 給藥總量
definition:
  v: 給藥總量
min:
  v: 1
max:
  v: 1
type:
  code:
    v: decimal
mapping:
  identity:
    v: EMPD
  map:
    v: 給藥總量:MedicationRequest.dispenseRequest.quantity.value

id:
  v: EMPDModel.prescriptionContent.totalUnits
path:
  v: EMPDModel.prescriptionContent.totalUnits
short:
  v: 給藥總量單位
definition:
  v: 給藥總量單位，如：顆、CC、瓶等
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
mapping:
  identity:
    v: EMPD
  map:
    v: 給藥總量單位:MedicationRequest.dispenseRequest.quantity.unit

id:
  v: EMPDModel.prescriptionContent.selfnote
path:
  v: EMPDModel.prescriptionContent.selfnote
short:
  v: 自費註記
definition:
  v: 自費註記
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Annotation
mapping:
  identity:
    v: EMPD
  map:
    v: 自費註記:MedicationRequest.note

id:
  v: EMPDModel.prescriptionContent.directions
path:
  v: EMPDModel.prescriptionContent.directions
short:
  v: 用藥指示
definition:
  v: 用藥指示
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: EMPD
  map:
    v: 用藥指示:MedicationRequest.dosageInstruction.method