MedicationRequest-twcore
type: StructureDefinition
node role: treeRoot
id:
  v: MedicationRequest-twcore
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition MedicationRequest-twcore Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> MedicationRequest 0..* MedicationRequest 為病人或實體集合（例如：特定的一群人）開立的藥品請求 #xD; id 0..1 id 不重複的ID用以識別儲存在特定FHIR Server中的MedicationRequest紀錄，通常又稱為邏輯性ID。 #xD; meta 0..1 Meta 此MedicationRequest Resource的metadata #xD; implicitRules 0..1 uri 創建此內容所依據的一組規則 #xD; language 0..1 code 用以表述MedicationRequest Resource內容的語言。 Binding: CommonLanguages (preferred): 人類語言；鼓勵使用CommonLanguages代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。 Additional Bindings Purpose AllLanguages Max Binding Example Value: zh-TW #xD; text 0..1 Narrative MedicationRequest Resource之內容摘要以供人閱讀 #xD; identifier S 0..* Identifier 此藥品請求的外部識別碼 #xD; status S 1..1 code active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown Binding: medicationrequest Status (required): 應填入所綁定值集中的其中一個代碼 #xD; statusReason 0..1 CodeableConceptTW 當前狀態的原因 Binding: medicationRequest Status Reason Codes (example): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。 #xD; intent S 1..1 code proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option Binding: medicationRequest Intent (required): 應填入所綁定值集中的其中一個代碼 #xD; category S 0..* CodeableConceptTW 用藥型別 Binding: medicationRequest Category Codes (example): 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。 #xD; priority 0..1 code routine ｜ urgent ｜ asap ｜ stat Binding: RequestPriority (required): 應填入RequestPriority值集中的其中一個代碼 #xD; doNotPerform 0..1 boolean 如果藥品請求是禁止活動，則為真。 #xD; reported[x] 0..1 被報告的而不是主要的紀錄 #xD; reportedBoolean boolean #xD; reportedReference Reference(TW Core Patient | TW Core Practitioner | TW Core PractitionerRole | TW Core RelatedPerson | TW Core Organization) #xD; Slices for medication[x] S 1..1 服用的藥品。 Slice: Unordered, Open by type:$this Binding: SNOMEDCTMedicationCodes (example): 此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目…
url:
  v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/MedicationRequest-twcore
  l: MedicationRequest-twcore
version:
  v: 1.0.0
name:
  v: TWCoreMedicationRequest
title:
  v: TW Core MedicationRequest
status:
  v: active
date:
  v: 2026-05-22T02:39:29+00:00
contact:
  name:
    v: 衛生福利部
  telecom:
    system:
      v: url
    value:
      v: https://www.mohw.gov.tw/
  telecom:
    system:
      v: email
description:
  v: 此臺灣核心-藥品請求（TW Core MedicationRequest） Profile說明本IG如何進一步定義FHIR的MedicationRequest Resource以呈現藥品請求的詳細資料。
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: workflow
  uri:
    v: http://hl7.org/fhir/workflow
    l: workflow
  name:
    v: Workflow Pattern
mapping:
  identity:
    v: script10.6
  uri:
    v: http://ncpdp.org/SCRIPT10_6
    l: SCRIPT10 6
  name:
    v: Mapping to NCPDP SCRIPT 10.6
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
    l: v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
    l: fivews
  name:
    v: FiveWs Pattern Mapping
mapping:
  identity:
    v: v2
  uri:
    v: http://hl7.org/v2
    l: v2
  name:
    v: HL7 v2 Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: MedicationRequest
  l: MedicationRequest
base definition:
  v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
  l: MedicationRequest
derivation:
  v: constraint
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
      l: snapshot-base-version
    value: String
      v: 4.0.1
  element:
    id:
      v: MedicationRequest
    path:
      v: MedicationRequest
    short:
      v: 為病人或實體集合（例如：特定的一群人）開立的藥品請求
    definition:
      v: 關於藥品供應和對病人用藥指導的醫令或請求。此resource被稱為 「MedicationRequest」，而不是 「MedicationPrescription 」或「MedicationOrder」，以便與在住院病人和門診病人的環境中通用，包括照護計畫等，並與工作流程模式相協調。
    alias:
      v: Prescription
    alias:
      v: Order
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: MedicationRequest
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: dom-2
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      expression:
        v: contained.contained.empty()
      xpath:
        v: not(parent::f:contained and f:contained)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-3
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
      expression:
        v: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
      xpath:
        v: not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-4
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      expression:
        v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-5
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a security label
      expression:
        v: contained.meta.security.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:security))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      extension:
        value: Boolean
      extension:
        value: Markdown
      key:
        v: dom-6
      severity:
        v: warning
      human:
        v: A resource should have narrative for robust management
      expression:
        v: text.`div`.exists()
      xpath:
        v: exists(f:text/h:div)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: Entity. Role, or Act

Boolean
v: true

Markdown
v: When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time.

identity:
  v: workflow
map:
  v: Request

identity:
  v: script10.6
map:
  v: Message/Body/NewRx

identity:
  v: rim
map:
  v: CombinedMedicationRequest

id:
  v: MedicationRequest.id
path:
  v: MedicationRequest.id
short:
  v: 不重複的ID用以識別儲存在特定FHIR Server中的MedicationRequest紀錄，通常又稱為邏輯性ID。
definition:
  v: resource的邏輯ID，在resource的URL中使用。一旦指定，這個值永遠不會改變。
comment:
  v: 一個resource使用新增操作（create operation）提交給伺服器時，此resource沒有id，它的id在resource被創建後由伺器分配/指定。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: true

id:
  v: MedicationRequest.meta
path:
  v: MedicationRequest.meta
short:
  v: 此MedicationRequest Resource的metadata
definition:
  v: 關於resource的metadata。這是由基礎建設維護的內容。內容的更改可能並不總是與resource的版本更改相關聯。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.meta
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Meta
    l: Meta
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
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: MedicationRequest.implicitRules
path:
  v: MedicationRequest.implicitRules
short:
  v: 創建此內容所依據的一組規則
definition:
  v: 構建resource時遵循的一系列規則的參照，在處理內容時必須理解這些規則。通常這是對IG所定義之特殊規則及其他profiles的參照。
comment:
  v: 宣告這套規則限制了內容只能被有限的交易夥伴所理解。這從本質上限制了資料的長期有用性。然而，現有的健康生態體系高度分裂，還沒有準備好以普遍可計算的方式定義、收集和交換資料。只要有可能，實作者和/或規範編寫者應該避免使用這個資料項目。通常在使用時，此URL是對IG的參照，此IG將這些特殊規則與其他profiles、value sets等一起定義為其敘述的一部分。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.implicitRules
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
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
    l: Element
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation
is summary:
  v: true

id:
  v: MedicationRequest.language
path:
  v: MedicationRequest.language
short:
  v: 用以表述MedicationRequest Resource內容的語言。
definition:
  v: 編寫此resource的語言
comment:
  v: 提供語言是為了支援索引和可存取性（通常，文字表述轉語音等服務使用此語言標籤）。html lanuage tag適用於此敘述。resource上的語言標籤可用於指定從resource中的資料所產成的其他表述之語言。不是所有的內容都必須使用此語言。不應該假定Resource.language自動適用於敘述。如果指定語言，它也應該被指定在html中的div資料項目（關於xml:lang和html lang屬性之間的關係，見HTML5中的規則）。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
example:
  label:
    v: Value
  value: String
    v: zh-TW
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
      l: elementdefinition-maxValueSet
    value: Canonical
      v: http://hl7.org/fhir/ValueSet/all-languages
      l: all-languages
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Language
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
      l: elementdefinition-isCommonBinding
    value: Boolean
      v: true
  strength:
    v: preferred
  description:
    v: 人類語言；鼓勵使用CommonLanguages代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/languages
    l: languages

id:
  v: MedicationRequest.text
path:
  v: MedicationRequest.text
short:
  v: MedicationRequest Resource之內容摘要以供人閱讀
definition:
  v: 人可讀的敘述，包含resource的摘要，可用於向人表述resource的內容。敘述不需要對所有的結構化資料進行編碼，但需要包含足夠的細節使人在閱讀敘述時理解「臨床安全性」。resource定義有哪些內容應該在敘述中表示，以確保臨床安全。
comment:
  v: 內嵌（contained）的resource沒有敘述，非內嵌（contained）的resource則 **建議應該（SHOULD）** 有敘述。有時resource可能只有文字表述，很少或沒有額外的結構化資料（只要滿足所有minOccurs=1的資料項目）。這可能出現在舊系統的資料，當資訊以 「文字表述區塊（text blob） 」的形式被取得，或者文字表述是原始輸入或說明，而編碼資訊稍後再添加。
alias:
  v: narrative
alias:
  v: html
alias:
  v: xhtml
alias:
  v: display
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
    l: Narrative
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: MedicationRequest.contained
path:
  v: MedicationRequest.contained
short:
  v: Contained, inline Resources
definition:
  v: These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
comment:
  v: This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.
alias:
  v: inline resources
alias:
  v: anonymous resources
alias:
  v: contained resources
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.contained
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Resource
    l: Resource
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: MedicationRequest.extension
path:
  v: MedicationRequest.extension
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 resource. 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: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: 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
    l: 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
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: MedicationRequest.modifierExtension
path:
  v: MedicationRequest.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it 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 is allowed to 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
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: 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
    l: 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
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: MedicationRequest.identifier
path:
  v: MedicationRequest.identifier
short:
  v: 此藥品請求的外部識別碼
definition:
  v: 與此藥品請求相關的識別碼，這些識別碼是由業務流程定義的，並且/或者在對resource本身的直接URL參照不合適的情況下用來參照它。它們是由執行者或其他系統指定給此resource的業務用識別碼，並隨著resource的更新和從伺服器到伺服器的傳播而保持不變。
comment:
  v: 這是一個業務用識別碼，而不是一個resource識別碼。
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationRequest.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
    l: Identifier
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Request.identifier
mapping:
  identity:
    v: script10.6
  map:
    v: Message/Header/PrescriberOrderNumber
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier
mapping:
  identity:
    v: v2
  map:
    v: ORC-2-Placer Order Number / ORC-3-Filler Order Number
mapping:
  identity:
    v: rim
  map:
    v: .id

id:
  v: MedicationRequest.status
path:
  v: MedicationRequest.status
short:
  v: active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown
definition:
  v: 一個指定醫令當前狀態的代碼。一般來說，它是有效或完成的狀態。
comment:
  v: 這個資料項目被標記為修飾用，因為此狀態亦包含標記resource當前為無效的代碼。
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MedicationRequest.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
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
    l: Element
must support:
  v: true
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationRequestStatus
  strength:
    v: required
  description:
    v: 應填入所綁定值集中的其中一個代碼
  value set:
    v: http://hl7.org/fhir/ValueSet/medicationrequest-status|4.0.1
    l: http://hl7.org/fhir/ValueSet/medicationrequest-status
mapping:
  identity:
    v: workflow
  map:
    v: Request.status
mapping:
  identity:
    v: script10.6
  map:
    v: no mapping
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status
mapping:
  identity:
    v: rim
  map:
    v: .statusCode

id:
  v: MedicationRequest.statusReason
path:
  v: MedicationRequest.statusReason
short:
  v: 當前狀態的原因
definition:
  v: 捕捉MedicationRequest當前狀態的原因
comment:
  v: 這通常只用於 「例外」狀態，例如：「暫停」或 「取消」。MedicationRequest的原因是在reasonCode中描述，而不是在這裡。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.statusReason
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationRequestStatusReason
  strength:
    v: example
  description:
    v: 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
  value set:
    v: http://hl7.org/fhir/ValueSet/medicationrequest-status-reason
    l: medicationrequest-status-reason
mapping:
  identity:
    v: workflow
  map:
    v: Request.statusReason
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=SUBJ].source[classCode=CACT, moodCode=EVN].reasonCOde

id:
  v: MedicationRequest.intent
path:
  v: MedicationRequest.intent
short:
  v: proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
definition:
  v: 請求是提案、計畫、還是原始醫令？
comment:
  v: 預期服務請求者的型別將在MedicationRequest的不同階段受到限制。例如：提案可由病人（Patient）、相關人士（relatedPerson）、健康照護服務提供者（Practitioner）或設備（Device）建立。照護計畫可由健康照護服務提供者、病人、相關人士和設備建立。原始醫令只能由健康照護服務提供者建立。 實例醫令（an instance-order）是請求或醫令的實例，可用於填充給藥紀錄。 這個資料項目被標記為修飾用，因為其意圖改變resource實際適用的時間和方式。
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MedicationRequest.intent
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
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
    l: Element
must support:
  v: true
is modifier:
  v: true
is modifier reason:
  v: This element changes the interpretation of all descriptive attributes. For example "the time the request is recommended to occur" vs. "the time the request is authorized to occur" or "who is recommended to perform the request" vs. "who is authorized to perform the request
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationRequestIntent
  strength:
    v: required
  description:
    v: 應填入所綁定值集中的其中一個代碼
  value set:
    v: http://hl7.org/fhir/ValueSet/medicationrequest-intent|4.0.1
    l: http://hl7.org/fhir/ValueSet/medicationrequest-intent
mapping:
  identity:
    v: workflow
  map:
    v: Request.intent
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class
mapping:
  identity:
    v: rim
  map:
    v: .moodCode (nuances beyond PRP/PLAN/RQO would need to be elsewhere)

id:
  v: MedicationRequest.category
path:
  v: MedicationRequest.category
short:
  v: 用藥型別
definition:
  v: 表示藥品請求的型別（例如：預計用藥或給藥的地方（即住院病人或門診病人））。
comment:
  v: 此類別可用於包括預期的藥品使用地點或其他型別的請求
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationRequest.category
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationRequestCategory
  strength:
    v: example
  description:
    v: 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
  value set:
    v: http://hl7.org/fhir/ValueSet/medicationrequest-category
    l: medicationrequest-category
mapping:
  identity:
    v: script10.6
  map:
    v: Message/Body/NewRx/MedicationPrescribed/Directions or Message/Body/NewRx/MedicationPrescribed/StructuredSIG
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code="type of medication usage"].value

id:
  v: MedicationRequest.priority
path:
  v: MedicationRequest.priority
short:
  v: routine ｜ urgent ｜ asap ｜ stat
definition:
  v: 表示相對於其他請求而言，此藥品請求應如何快速得到處理。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.priority
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationRequestPriority
  strength:
    v: required
  description:
    v: 應填入RequestPriority值集中的其中一個代碼
  value set:
    v: http://hl7.org/fhir/ValueSet/request-priority|4.0.1
    l: http://hl7.org/fhir/ValueSet/request-priority
mapping:
  identity:
    v: workflow
  map:
    v: Request.priority
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.grade
mapping:
  identity:
    v: rim
  map:
    v: .priorityCode

id:
  v: MedicationRequest.doNotPerform
path:
  v: MedicationRequest.doNotPerform
short:
  v: 如果藥品請求是禁止活動，則為真。
definition:
  v: 如果為真，表示健康照護服務提供者要求不發生藥品請求。
comment:
  v: 如果沒有具體說明不執行，則該藥品請求是一個正向的請求，例如：「執行」。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.doNotPerform
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
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
    l: Element
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because this element negates the request to occur (ie, this is a request for the medication not to be ordered or prescribed, etc)
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: SubstanceAdministration.actionNegationInd

id:
  v: MedicationRequest.reported[x]
path:
  v: MedicationRequest.reported[x]
short:
  v: 被報告的而不是主要的紀錄
definition:
  v: 表明此記錄是否為次級的 「報告 」紀錄，而不是作為原始的主要真實來源紀錄，它也可用以表明報告的來源。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.reported[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore
    l: Patient-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore
    l: Practitioner-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore
    l: PractitionerRole-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore
    l: RelatedPerson-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore
    l: Organization-twcore
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=INF].role

id:
  v: MedicationRequest.medication[x]
path:
  v: MedicationRequest.medication[x]
slicing:
  discriminator:
    type:
      v: type
    path:
      v: $this
  ordered:
    v: false
  rules:
    v: closed
short:
  v: 服用的藥品。
definition:
  v: 指明被請求的藥品，這是一個指向代表藥品的resource的連接，可以是藥品的細節，也可以是一個帶有代碼的屬性，從已知的藥品列表中指明此藥品。
comment:
  v: 如果只具體說明一個代碼，那麼它需要是一個特定產品的代碼。如果需要更多資訊，那麼建議使用Medication resource。例如：如果您需要劑型或批號，或者如果藥品是複方或臨場調製（extemporaneously prepared）的，那麼您必須參考Medication resource。
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MedicationRequest.medication[x]
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Medication-twcore
    l: Medication-twcore
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationCode
  strength:
    v: example
  description:
    v: 此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。
  value set:
    v: http://hl7.org/fhir/ValueSet/medication-codes
    l: medication-codes
mapping:
  identity:
    v: workflow
  map:
    v: Request.code
mapping:
  identity:
    v: script10.6
  map:
    v: Message/Body/NewRx/MedicationPrescribed Medication.code.coding.code = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCode Medication.code.coding.system = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCodeQualifier Medication.code.coding.display = Message/Body/NewRx/MedicationPrescribed/DrugDescription
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]
mapping:
  identity:
    v: v2
  map:
    v: RXE-2-Give Code / RXO-1-Requested Give Code / RXC-2-Component Code
mapping:
  identity:
    v: rim
  map:
    v: consumable.administrableMedication

id:
  v: MedicationRequest.medication[x]:medicationReference
path:
  v: MedicationRequest.medication[x]
slice name:
  v: medicationReference
short:
  v: Medication to be taken
definition:
  v: Identifies the medication being requested. This is a link to a resource that represents the medication which may be the details of the medication or simply an attribute carrying a code that identifies the medication from a known list of medications.
comment:
  v: If only a code is specified, then it needs to be a code for a specific product. If more information is required, then the use of the Medication resource is recommended. For example, if you require form or lot number or if the medication is compounded or extemporaneously prepared, then you must reference the Medication resource.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.medication[x]
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Medication-twcore
    l: Medication-twcore
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Request.code
mapping:
  identity:
    v: script10.6
  map:
    v: Message/Body/NewRx/MedicationPrescribed Medication.code.coding.code = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCode Medication.code.coding.system = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCodeQualifier Medication.code.coding.display = Message/Body/NewRx/MedicationPrescribed/DrugDescription
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]
mapping:
  identity:
    v: v2
  map:
    v: RXE-2-Give Code / RXO-1-Requested Give Code / RXC-2-Component Code
mapping:
  identity:
    v: rim
  map:
    v: consumable.administrableMedication

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept
path:
  v: MedicationRequest.medication[x]
slice name:
  v: medicationCodeableConcept
short:
  v: 服用的藥品。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。
definition:
  v: 指明被開立的藥品，這是一個指向代表藥品的resource的連接，可以是藥品的細節，也可以是一個帶有代碼的屬性，從已知的藥品列表中指明此藥品。
comment:
  v: 如果只具體說明一個代碼，那麼它需要是一個特定產品的代碼。如果需要更多資訊，那麼建議使用Medication resource。例如：如果您需要劑型或批號，或者如果藥品是複方或臨場調製（extemporaneously prepared）的，那麼您必須參考Medication resource。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.medication[x]
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationCode
  strength:
    v: example
  value set:
    v: http://hl7.org/fhir/ValueSet/medication-codes
    l: medication-codes
mapping:
  identity:
    v: workflow
  map:
    v: Request.code
mapping:
  identity:
    v: script10.6
  map:
    v: Message/Body/NewRx/MedicationPrescribed Medication.code.coding.code = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCode Medication.code.coding.system = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCodeQualifier Medication.code.coding.display = Message/Body/NewRx/MedicationPrescribed/DrugDescription
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]
mapping:
  identity:
    v: v2
  map:
    v: RXE-2-Give Code / RXO-1-Requested Give Code / RXC-2-Component Code
mapping:
  identity:
    v: rim
  map:
    v: consumable.administrableMedication

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.id
path:
  v: MedicationRequest.medication[x].id
representation:
  v: xmlAttr
short:
  v: 唯一可識別ID，以供資料項目間相互參照。
definition:
  v: resource中資料項目的唯一ID（用於內部參照）。這可以是任何不含空格的字串。
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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.extension
path:
  v: MedicationRequest.medication[x].extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: 擴充的資料項目
definition:
  v: 擴充的資料項目
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: 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
    l: 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
    l: Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding
path:
  v: MedicationRequest.medication[x].coding
slicing:
  discriminator:
    type:
      v: pattern
    path:
      v: $this
  rules:
    v: open
short:
  v: 由專門術語系統（terminology system）定義的代碼
definition:
  v: 由專門術語系統（terminology system）所定義之代碼的參照
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，例如：SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。
requirements:
  v: 允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。
min:
  v: 0
max:
  v: *
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw
    l: Coding-tw
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.1-8, C*E.10-22
mapping:
  identity:
    v: rim
  map:
    v: union(., ./translation)
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:fda-medication-tw
path:
  v: MedicationRequest.medication[x].coding
slice name:
  v: fda-medication-tw
short:
  v: 此為臺灣食品藥物管理署(TFDA)維護之藥品代碼，涵蓋範圍相對完整，可免費使用，可優先選用此代碼。
definition:
  v: 由專門術語系統（terminology system）所定義之代碼的參照。
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。
requirements:
  v: 允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw
    l: Coding-tw
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: required
  description:
    v: 應填入所綁定值集中的其中一個代碼。
  value set:
    v: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-fda-tw
    l: medication-fda-tw
mapping:
  identity:
    v: v2
  map:
    v: C*E.1-8, C*E.10-22
mapping:
  identity:
    v: rim
  map:
    v: union(., ./translation)
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:nhi-medication-tw
path:
  v: MedicationRequest.medication[x].coding
slice name:
  v: nhi-medication-tw
short:
  v: 此為中央健康保險署(NHI)維護之藥品代碼，主要針對申報使用，更新頻率相對頻繁，可免費使用，可依情境選用此代碼。
definition:
  v: 由專門術語系統（terminology system）所定義之代碼的參照。
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。
requirements:
  v: 允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw
    l: Coding-tw
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: required
  description:
    v: 應填入所綁定值集中的其中一個代碼。
  value set:
    v: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-nhi-tw
    l: medication-nhi-tw
mapping:
  identity:
    v: v2
  map:
    v: C*E.1-8, C*E.10-22
mapping:
  identity:
    v: rim
  map:
    v: union(., ./translation)
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:nhi-medication-ch-herb-tw
path:
  v: MedicationRequest.medication[x].coding
slice name:
  v: nhi-medication-ch-herb-tw
short:
  v: 此為中央健康保險署(NHI)維護之中藥藥品代碼，主要針對申報使用，更新頻率相對頻繁，可免費使用，可依情境選用此代碼。
definition:
  v: 由專門術語系統（terminology system）所定義之代碼的參照。
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。
requirements:
  v: 允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw
    l: Coding-tw
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: required
  description:
    v: 應填入所綁定值集中的其中一個代碼。
  value set:
    v: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/nhi-medication-ch-herb-tw
    l: nhi-medication-ch-herb-tw
mapping:
  identity:
    v: v2
  map:
    v: C*E.1-8, C*E.10-22
mapping:
  identity:
    v: rim
  map:
    v: union(., ./translation)
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:rxnorm-medication-us-core
path:
  v: MedicationRequest.medication[x].coding
slice name:
  v: rxnorm-medication-us-core
short:
  v: RxNorm為美國Unified Medical Language System®中的藥品代碼，取得UMLS®授權即可免費使用，可依情境選用此代碼。
definition:
  v: 由專門術語系統（terminology system）所定義之代碼的參照。
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。
requirements:
  v: 允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw
    l: Coding-tw
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: required
  description:
    v: 應填入所綁定值集中的其中一個代碼。
  value set:
    v: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-rxnorm-tw
    l: medication-rxnorm-tw
mapping:
  identity:
    v: v2
  map:
    v: C*E.1-8, C*E.10-22
mapping:
  identity:
    v: rim
  map:
    v: union(., ./translation)
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:atc-medication-code
path:
  v: MedicationRequest.medication[x].coding
slice name:
  v: atc-medication-code
short:
  v: ATC代碼的版權為世界衛生組織（WHO）Collaborating Centre for Drug Statistics Methodology，可免費使用，可依情境選用此代碼。
definition:
  v: 由專門術語系統（terminology system）所定義之代碼的參照。
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。
requirements:
  v: 允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw
    l: Coding-tw
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: required
  description:
    v: 應填入所綁定值集中的其中一個代碼。
  value set:
    v: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medcation-atc-tw
    l: medcation-atc-tw
mapping:
  identity:
    v: v2
  map:
    v: C*E.1-8, C*E.10-22
mapping:
  identity:
    v: rim
  map:
    v: union(., ./translation)
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:snomedct-medication-codes
path:
  v: MedicationRequest.medication[x].coding
slice name:
  v: snomedct-medication-codes
short:
  v: 此為SNOMED CT代碼，若機構已有購買相關授權，亦可使用。
definition:
  v: 由專門術語系統（terminology system）所定義之代碼的參照。
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。
requirements:
  v: 允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw
    l: Coding-tw
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: required
  description:
    v: 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
  value set:
    v: http://hl7.org/fhir/ValueSet/medication-codes
    l: medication-codes
mapping:
  identity:
    v: v2
  map:
    v: C*E.1-8, C*E.10-22
mapping:
  identity:
    v: rim
  map:
    v: union(., ./translation)
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.text
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: MedicationRequest.medication[x].text
short:
  v: 概念的文字表示法
definition:
  v: 輸入資料的使用者所見／所選／所說的人類可讀文字表述，和（或）其代表使用者的預期含義。
comment:
  v: 很多時候，此文字表述與其中一個代碼的顯示名稱相同。
requirements:
  v: 專門術語中的代碼並不總是能捕捉人類使用的細微差別的正確意義，或者根本就沒有合適的代碼；這些情況下，文字表述被用來捕捉來源的全部意義。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableConcept.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.9. But note many systems use C*E.2 for this
mapping:
  identity:
    v: rim
  map:
    v: ./originalText[mediaType/code="text/plain"]/data
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText

id:
  v: MedicationRequest.subject
path:
  v: MedicationRequest.subject
short:
  v: 為誰或哪個實體集合（例如：特定的一群人）所開立的藥品請求
definition:
  v: 連結至一個或一組即將給予藥品的人
comment:
  v: 藥品請求的對像是必填的。對於不提供實際對象的次級使用案例，仍然必須指定一個匿名對象。
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MedicationRequest.subject
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore
    l: Patient-twcore
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Group
    l: Group
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Request.subject
mapping:
  identity:
    v: script10.6
  map:
    v: Message/Body/NewRx/Patient (need detail to link to specific patient … Patient.Identification in SCRIPT)
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject[x]
mapping:
  identity:
    v: v2
  map:
    v: PID-3-Patient ID List
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=AUT].role
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject

id:
  v: MedicationRequest.encounter
path:
  v: MedicationRequest.encounter
short:
  v: 連結至一個或一組即將給予藥品的人
definition:
  v: 建立此[x]的就醫（Encounter），或與此藥品請求紀錄密切相關的就醫。
comment:
  v: 這通常是事件發生的就醫（Encounter），但有些活動可能是在就醫完成之前或之後發生，但仍與就醫的情境相關。如果需要與照護事件相聯繫，它們將用一個擴充資料項目來處理。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.encounter
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Encounter-twcore
    l: Encounter-twcore
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Request.context
mapping:
  identity:
    v: script10.6
  map:
    v: no mapping
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.context
mapping:
  identity:
    v: v2
  map:
    v: PV1-19-Visit Number
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code="type of encounter or episode"]

id:
  v: MedicationRequest.supportingInformation
path:
  v: MedicationRequest.supportingInformation
short:
  v: 任何與藥品請求相關的補充資訊
definition:
  v: 任何與藥品請求相關的補充資訊（例如：病人身高及體重）
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationRequest.supportingInformation
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Resource
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Request.supportingInfo
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.context
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=PERT].target[A_SupportingClinicalStatement CMET minimal with many different choices of classCodes(ORG, ENC, PROC, SPLY, SBADM, OBS) and each of the act class codes draws from one or more of the following moodCodes (EVN, DEF, INT PRMS, RQO, PRP, APT, ARQ, GOL)]

id:
  v: MedicationRequest.authoredOn
path:
  v: MedicationRequest.authoredOn
short:
  v: 藥品請求請求最初何時被撰寫？
definition:
  v: 處方最初書寫或撰寫的日期（或許也有時間）。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.authoredOn
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Request.authoredOn
mapping:
  identity:
    v: script10.6
  map:
    v: Message/Body/NewRx/MedicationPrescribed/WrittenDate
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.recorded
mapping:
  identity:
    v: v2
  map:
    v: RXE-32-Original Order Date/Time / ORC-9-Date/Time of Transaction
mapping:
  identity:
    v: rim
  map:
    v: author.time

id:
  v: MedicationRequest.requester
path:
  v: MedicationRequest.requester
short:
  v: 誰／什麼提出藥品請求請求？
definition:
  v: 發起藥品請求並對其有效負責的個人、組織或設備。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.requester
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore
    l: Practitioner-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore
    l: PractitionerRole-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore
    l: Organization-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore
    l: Patient-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore
    l: RelatedPerson-twcore
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device
    l: Device
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Request.requester
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.author
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=AUT].role

id:
  v: MedicationRequest.performer
path:
  v: MedicationRequest.performer
short:
  v: 預期的給藥執行者
definition:
  v: 具體說明的藥物治療執行者（例如：給藥的執行者）。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.performer
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore
    l: Practitioner-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore
    l: PractitionerRole-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore
    l: Organization-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore
    l: Patient-twcore
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device
    l: Device
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore
    l: RelatedPerson-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CareTeam-twcore
    l: CareTeam-twcore
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Request.performer
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.actor
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]

id:
  v: MedicationRequest.performerType
path:
  v: MedicationRequest.performerType
short:
  v: 所需的給藥執行者種類
definition:
  v: 表明給藥的執行者的型別
comment:
  v: 如果具體說明中未表明執行者，則表明執行者必須是具體的型別。如果具體說明有執行者，那麼如果指定的執行無法獲得則需說明指定執行者的要求條件。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.performerType
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: extensible
  description:
    v: 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/performer-role
    l: performer-role
mapping:
  identity:
    v: workflow
  map:
    v: Request.performerType
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=PRF].role[scoper.determinerCode=KIND].code

id:
  v: MedicationRequest.recorder
path:
  v: MedicationRequest.recorder
short:
  v: 輸入藥品請求請求的人
definition:
  v: 代表另一個人輸入醫令的人，例如：在口頭或電話指示下的情況。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.recorder
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore
    l: Practitioner-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore
    l: PractitionerRole-twcore
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.who
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=TRANS].role[classCode=ASSIGNED].code (HealthcareProviderType)

id:
  v: MedicationRequest.reasonCode
path:
  v: MedicationRequest.reasonCode
short:
  v: 開立醫令或不開立醫令的原因或指示
definition:
  v: 開立或不開立藥品醫令的原因或指示
comment:
  v: 這可能是一個診斷代碼。如果存在完整的病情、問題或診斷（condition）紀錄或需要附加的細節，請使用 reasonReference。
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationRequest.reasonCode
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  strength:
    v: extensible
  description:
    v: 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-code
    l: condition-code
mapping:
  identity:
    v: workflow
  map:
    v: Request.reasonCode
mapping:
  identity:
    v: script10.6
  map:
    v: Message/Body/NewRx/MedicationPrescribed/Diagnosis/Primary/Value
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: v2
  map:
    v: ORC-16-Order Control Code Reason /RXE-27-Give Indication/RXO-20-Indication / RXD-21-Indication / RXG-22-Indication / RXA-19-Indication
mapping:
  identity:
    v: rim
  map:
    v: reason.observation.reasonCode

id:
  v: MedicationRequest.reasonReference
path:
  v: MedicationRequest.reasonReference
short:
  v: 開立處方的原因，例如：病情、問題或診斷（condition）或者檢驗檢查（observation）
definition:
  v: 開立藥品醫令的原因，例如：病情、問題或診斷（condition）或者檢驗檢查（observation）。
comment:
  v: 藥品醫令開立的原因參照，例如：病情、問題或診斷（condition）或者檢驗檢查（observation）。如果只能有一個代碼存在，則使用reasonCode。
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationRequest.reasonReference
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Condition-twcore
    l: Condition-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Observation-laboratoryResult-twcore
    l: Observation-laboratoryResult-twcore
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Request.reasonReference
mapping:
  identity:
    v: script10.6
  map:
    v: no mapping
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: rim
  map:
    v: reason.observation[code=ASSERTION].value

id:
  v: MedicationRequest.instantiatesCanonical
path:
  v: MedicationRequest.instantiatesCanonical
short:
  v: 實例化FHIR計畫書（protocol）或定義
definition:
  v: 指向此藥品請求全部或部分遵守的計畫書（protocol）、指南（guideline）、醫令集（orderset）或其他定義的URL。
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationRequest.instantiatesCanonical
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: canonical
    l: canonical
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Request.instantiates
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=DEFN].target

id:
  v: MedicationRequest.instantiatesUri
path:
  v: MedicationRequest.instantiatesUri
short:
  v: 實例化外部計畫書（protocol）或定義
definition:
  v: 指向此藥品請求全部或部分的外部維護之計畫書（protocol）、指南（guideline）、醫令集（orderset）或其他定義的URL。
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationRequest.instantiatesUri
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: uri
    l: uri
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=DEFN].target

id:
  v: MedicationRequest.basedOn
path:
  v: MedicationRequest.basedOn
short:
  v: 此MedicationRquest是基於什麼而履行？
definition:
  v: 透過藥品請求，一項計畫或請求已全部或部分被履行
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationRequest.basedOn
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CarePlan-twcore
    l: CarePlan-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/MedicationRequest-twcore
    l: MedicationRequest-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/ServiceRequest-twcore
    l: ServiceRequest-twcore
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation
    l: ImmunizationRecommendation
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Request.basedOn
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=FLFS].target[classCode=SBADM or PROC or PCPR or OBS, moodCode=RQO orPLAN or PRP]

id:
  v: MedicationRequest.groupIdentifier
path:
  v: MedicationRequest.groupIdentifier
short:
  v: 此為綜合請求的一部分
definition:
  v: 由單一作者或多或少同時授權之所有服務請求的共用識別碼，代表一個藥品請求的群組識別碼
requirements:
  v: 請求之間的連接可以透過「基於」(basedOn) 關係實現（即一個請求是為了完成另一個請求），或者是它們有一個共同的申請單 (requisition)。那些屬於同一申請單的請求，在改變它們的狀態或在最初創建後進行維護的過程中，通常被視為各自獨立的。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.groupIdentifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Request.groupIdentifier
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship(typeCode=COMP].target[classCode=SBADM, moodCode=INT].id

id:
  v: MedicationRequest.courseOfTherapyType
path:
  v: MedicationRequest.courseOfTherapyType
short:
  v: 給藥的整體模式
definition:
  v: 給病人的給藥整體模型描述
comment:
  v: 這個屬性不應與藥物治療計畫（protocol）混淆
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.courseOfTherapyType
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationRequestCourseOfTherapy
  strength:
    v: example
  description:
    v: 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
  value set:
    v: http://hl7.org/fhir/ValueSet/medicationrequest-course-of-therapy
    l: medicationrequest-course-of-therapy
mapping:
  identity:
    v: rim
  map:
    v: Act.code where classCode = LIST and moodCode = EVN

id:
  v: MedicationRequest.insurance
path:
  v: MedicationRequest.insurance
short:
  v: 相關的保險承保範圍
definition:
  v: 提供此請求服務可能需要的保險計畫、擴大承保範圍、預先授權和／或預先決定。
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationRequest.insurance
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Coverage|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Coverage
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ClaimResponse|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/ClaimResponse
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Request.insurance
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=COVBY].target

id:
  v: MedicationRequest.note
path:
  v: MedicationRequest.note
short:
  v: 關於處方的資訊
definition:
  v: 關於處方的附加資訊，不能由其他屬性來傳達。
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationRequest.note
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Annotation
    l: Annotation
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Request.note
mapping:
  identity:
    v: script10.6
  map:
    v: Message/Body/NewRx/MedicationPrescribed/Note
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code="annotation"].value

id:
  v: MedicationRequest.dosageInstruction
path:
  v: MedicationRequest.dosageInstruction
short:
  v: 應該如何用藥
definition:
  v: 表明病人的用藥方式
comment:
  v: 在一些例子中，藥品請求可包括口服劑量或靜脈注射或肌肉注射劑量的選擇。例如：「昂丹司瓊（Ondansetron）8毫克口服或靜脈注射，每天兩次，治療噁心」或 「康帕辛® （Compazine®）【丙氯拉嗪（prochlorperazine）】5-10毫克口服（PO）或25毫克經直腸給藥（PR） 每天早、晚（飯後）1次（bid） 需要時使用（prn）噁心或嘔吐 」。在這些情況下，這兩個醫令的建立可歸為一組藥品醫令，基於病人在需要用藥時的情況決定使用哪種劑量和給藥途徑。
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationRequest.dosageInstruction
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Dosage
    l: Dosage
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Request.occurrence[x]
mapping:
  identity:
    v: rim
  map:
    v: see dosageInstruction mapping

id:
  v: MedicationRequest.dosageInstruction.id
path:
  v: MedicationRequest.dosageInstruction.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MedicationRequest.dosageInstruction.extension
path:
  v: MedicationRequest.dosageInstruction.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
    l: 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
    l: 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
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MedicationRequest.dosageInstruction.modifierExtension
path:
  v: MedicationRequest.dosageInstruction.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
    l: 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
    l: 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
    l: 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: MedicationRequest.dosageInstruction.sequence
path:
  v: MedicationRequest.dosageInstruction.sequence
short:
  v: 劑量指示的順序
definition:
  v: 表明使用或解釋劑量指示的順序
requirements:
  v: 如果多個劑量的序號是相同的，那麼就意味著這些指示將被視為同時進行。如果序號不同，那麼這些劑量將是依續使用。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.sequence
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: integer
    l: integer
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: TQ1-1
mapping:
  identity:
    v: rim
  map:
    v: .text

id:
  v: MedicationRequest.dosageInstruction.text
path:
  v: MedicationRequest.dosageInstruction.text
short:
  v: 純文字表述的劑量指示，例如：SIG。
definition:
  v: 純文字表述的劑量指示，例如：SIG。
requirements:
  v: 純文字表述劑量指示可用於說明太複雜而無法編碼的案例。此屬性的內容不包括藥品的名稱或描述。當有已編碼的指示，純文字表述說明可能仍然存在，以顯示給服用藥品或給藥的人。文字指示預計將始終被填入。如果dosage.timing屬性也被填入，那麼dosage.text應該反映與timing相同的資訊。關於給藥或準備藥品的附加資訊應作為文字包括在內。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: RXO-6; RXE-21
mapping:
  identity:
    v: rim
  map:
    v: .text

id:
  v: MedicationRequest.dosageInstruction.additionalInstruction
path:
  v: MedicationRequest.dosageInstruction.additionalInstruction
short:
  v: 對病人的補充指示或警告－例如：「隨餐服用」，「可能引起嗜睡」
definition:
  v: 向病人提供關於如何服藥的補充指示（例如 「隨餐服用」或「在進食前半小時服用」）或給病人的藥品警告（例如「可能導致嗜睡 」或「避免皮膚暴露於陽光直射或人工強光燈（日曬用）下」）。
comment:
  v: 應在dosage.text中填入關於用藥或準備藥品的資訊（例如： 「盡可能快地透過腹膜內口輸液」或 「在用 x 藥後立即服用」）。
requirements:
  v: 附加指示是要編碼的，但在沒有編碼的情況下，此資料項目可以包括文字。例如，「用大量的水吞咽」，這可能編碼也可能不編碼。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Dosage.additionalInstruction
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: extensible
  description:
    v: 一個編碼的概念，確定額外的指示，如「與水一起服用」或「避免操作重型機器」；可參考所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/additional-instruction-codes
    l: additional-instruction-codes
mapping:
  identity:
    v: v2
  map:
    v: RXO-7
mapping:
  identity:
    v: rim
  map:
    v: .text

id:
  v: MedicationRequest.dosageInstruction.patientInstruction
path:
  v: MedicationRequest.dosageInstruction.patientInstruction
short:
  v: 以病人或消費者為導向的指示
definition:
  v: 用病人或消費者能理解的術語提供指示
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.patientInstruction
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: RXO-7
mapping:
  identity:
    v: rim
  map:
    v: .text

id:
  v: MedicationRequest.dosageInstruction.timing
path:
  v: MedicationRequest.dosageInstruction.timing
short:
  v: 應該何時給藥；時間的寫法請參照Timimg datatype。
definition:
  v: 應該何時給藥
comment:
  v: 這個屬性可能並不總是被填入，而Dosage.text預計會被填入。如果兩者都被填入，那麼Dosage.text應反映Dosage.timing的內容。
requirements:
  v: 病人用藥的時間安排。這種data type允許許多不同的表達方式。例如：「每8小時一次」；「一天三次」；「從2011年12月23日開始的10天裡，早餐前半小時」；「2013年10月15日、2013年10月17日和2013年11月1日」。有時，當率值（rate）為總容量／期間，其「期間」意指（例如：500mL／2小時）之持續期間為2小時。但當率值非意指「持續期間」時（例如：250mL／小時），則需要timing.repeat.duration來表達輸液的時間區間。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.timing
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Timing
    l: Timing
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: MedicationRequest.dosageInstruction.timing.id
path:
  v: MedicationRequest.dosageInstruction.timing.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MedicationRequest.dosageInstruction.timing.extension
path:
  v: MedicationRequest.dosageInstruction.timing.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
    l: 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
    l: 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
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MedicationRequest.dosageInstruction.timing.modifierExtension
path:
  v: MedicationRequest.dosageInstruction.timing.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
    l: 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
    l: 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
    l: 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: MedicationRequest.dosageInstruction.timing.event
path:
  v: MedicationRequest.dosageInstruction.timing.event
short:
  v: 事件發生的時間
definition:
  v: 指明事件發生的特定時間
requirements:
  v: 例如：在一份用藥記錄中，你需要把一個一般的規範變成一個精確的規範。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Timing.event
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: dateTime
    l: dateTime
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: QLIST<TS>

id:
  v: MedicationRequest.dosageInstruction.timing.repeat
path:
  v: MedicationRequest.dosageInstruction.timing.repeat
short:
  v: 事件定期重複發生的時間
definition:
  v: 一組描述事件何時被安排的規則
requirements:
  v: 定期重複的時間安排
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Timing.repeat
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Element
    l: Element
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
    l: Element
constraint:
  key:
    v: tim-1
  severity:
    v: error
  human:
    v: if there's a duration, there needs to be duration units
  expression:
    v: duration.empty() or durationUnit.exists()
  xpath:
    v: not(exists(f:duration)) or exists(f:durationUnit)
  source:
    v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
    l: MedicationRequest
constraint:
  key:
    v: tim-2
  severity:
    v: error
  human:
    v: if there's a period, there needs to be period units
  expression:
    v: period.empty() or periodUnit.exists()
  xpath:
    v: not(exists(f:period)) or exists(f:periodUnit)
  source:
    v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
    l: MedicationRequest
constraint:
  key:
    v: tim-4
  severity:
    v: error
  human:
    v: duration SHALL be a non-negative value
  expression:
    v: duration.exists() implies duration >= 0
  xpath:
    v: f:duration/@value >= 0 or not(f:duration/@value)
  source:
    v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
    l: MedicationRequest
constraint:
  key:
    v: tim-5
  severity:
    v: error
  human:
    v: period SHALL be a non-negative value
  expression:
    v: period.exists() implies period >= 0
  xpath:
    v: f:period/@value >= 0 or not(f:period/@value)
  source:
    v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
    l: MedicationRequest
constraint:
  key:
    v: tim-6
  severity:
    v: error
  human:
    v: If there's a periodMax, there must be a period
  expression:
    v: periodMax.empty() or period.exists()
  xpath:
    v: not(exists(f:periodMax)) or exists(f:period)
  source:
    v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
    l: MedicationRequest
constraint:
  key:
    v: tim-7
  severity:
    v: error
  human:
    v: If there's a durationMax, there must be a duration
  expression:
    v: durationMax.empty() or duration.exists()
  xpath:
    v: not(exists(f:durationMax)) or exists(f:duration)
  source:
    v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
    l: MedicationRequest
constraint:
  key:
    v: tim-8
  severity:
    v: error
  human:
    v: If there's a countMax, there must be a count
  expression:
    v: countMax.empty() or count.exists()
  xpath:
    v: not(exists(f:countMax)) or exists(f:count)
  source:
    v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
    l: MedicationRequest
constraint:
  key:
    v: tim-9
  severity:
    v: error
  human:
    v: If there's an offset, there must be a when (and not C, CM, CD, CV)
  expression:
    v: offset.empty() or (when.exists() and ((when in ('C' | 'CM' | 'CD' | 'CV')).not()))
  xpath:
    v: not(exists(f:offset)) or exists(f:when)
  source:
    v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
    l: MedicationRequest
constraint:
  key:
    v: tim-10
  severity:
    v: error
  human:
    v: If there's a timeOfDay, there cannot be a when, or vice versa
  expression:
    v: timeOfDay.empty() or when.empty()
  xpath:
    v: not(exists(f:timeOfDay)) or not(exists(f:when))
  source:
    v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
    l: MedicationRequest
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: Implies PIVL or EIVL

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.id
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.extension
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.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
    l: 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
    l: 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
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.bounds[x]
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.bounds[x]
short:
  v: 時間或期間長度／長度範圍，或（開始和／或結束）限制
definition:
  v: 時間長度或可能的時間長度範圍，或開始和／或結束時間。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Timing.repeat.bounds[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Duration
    l: Duration
type:
  code:
    v: Range
    l: Range
type:
  code:
    v: Period
    l: Period
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: IVL(TS) used in a QSI

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.count
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.count
short:
  v: 重複的次數
definition:
  v: 在整個持續期間內，期望重複的總次數。如果countMax這個資料項目存在，此count資料項目表示允許次數範圍的下限。
comment:
  v: 如果你同時擁有bounds和count這兩個資料項目，那麼這應該被理解為在bounds期間，發生count的次數。
requirements:
  v: 重複次數可透過設定結束時間或總發生次數作限制
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Timing.repeat.count
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: positiveInt
    l: positiveInt
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: PIVL.count

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.countMax
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.countMax
short:
  v: 重複的最大次數
definition:
  v: 如果countMax存在，表示count是一個範圍，如此可在［count］和［countMax］之間的重複次數執行動作。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Timing.repeat.countMax
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: positiveInt
    l: positiveInt
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: PIVL.count

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.duration
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.duration
short:
  v: 此事件持續多久時間
definition:
  v: 這件事發生的時候會持續多久時間。如果durationMax這個資料項目存在，則此duration資料項目表示持續時間的允許範圍之下限。
comment:
  v: 對於一些事件，持續時間是事件定義的一部分（例如：靜脈輸液，持續時間隱含於特定輸液量及速度）。對於其他事件，它是時間規範的一部分（例如：運動持續時間）。
requirements:
  v: 有些活動不是立即發生，需要維持一段時間。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Timing.repeat.duration
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: decimal
    l: decimal
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: PIVL.phase

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.durationMax
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.durationMax
short:
  v: 此事件持續多久時間 （最長時間／最大值）
definition:
  v: 如果durationMax這個資料項目存在，表示duration資料項目是一個範圍的下限 — 所以要在［duration］和［durationMax］之間執行此活動。
comment:
  v: 對於一些事件，持續時間是事件定義的一部分（例如：靜脈輸液，持續時間隱含於特定輸液量及速度）。對於其他事件，它是時間規範的一部分（例如：運動持續時間）。
requirements:
  v: 有些活動不是立即發生，需要維持一段時間。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Timing.repeat.durationMax
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: decimal
    l: decimal
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: PIVL.phase

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.durationUnit
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.durationUnit
short:
  v: s ｜ min ｜ h ｜ d ｜ wk ｜ mo ｜ a - 單位時間 （unit of time，UCUM）
definition:
  v: 持續時間的單位，以UCUM為單位。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Timing.repeat.durationUnit
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: UnitsOfTime
  strength:
    v: required
  description:
    v: 時間的單位（單位來自UCUM）；應填入UnitsOfTime值集中的其中一個代碼
  value set:
    v: http://hl7.org/fhir/ValueSet/units-of-time|4.0.1
    l: http://hl7.org/fhir/ValueSet/units-of-time
mapping:
  identity:
    v: rim
  map:
    v: PIVL.phase.unit

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.frequency
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.frequency
short:
  v: 此事件於每一期間的發生頻率
definition:
  v: 在特定期間內重複動作的次數。如果frequencyMax存在，此frequency資料項目表示頻率的允許範圍的下限。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Timing.repeat.frequency
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: positiveInt
    l: positiveInt
meaning when missing:
  v: If no frequency is stated, the assumption is that the event occurs once per period, but systems SHOULD always be specific about this
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: PIVL.phase

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.frequencyMax
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.frequencyMax
short:
  v: 此事件於每一期間的最大發生頻率
definition:
  v: 如果frequencyMax存在，frequency資料項目表示頻率範圍的下限 – 所以要在［frequency］和［frequencyMax］之間重複執行此活動。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Timing.repeat.frequencyMax
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: positiveInt
    l: positiveInt
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: PIVL.phase

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.period
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.period
short:
  v: 此事件於特定時間區間所發生的頻率
definition:
  v: 表示重複發生的時間區間；例如：為了表示「每天3次」，3次是頻率（frequency），1天是週期（period）。如果存在periodMax資料項目，此period資料項目表示時間區間長度的允許範圍的下限。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Timing.repeat.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: decimal
    l: decimal
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: PIVL.phase

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.periodMax
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.periodMax
short:
  v: 時間區間的上限（3-4小時）
definition:
  v: 如果periodMax存在，表示時間區間是一個從［period］到［periodMax］的範圍，允許表達像是「每3至5天一次」的概念。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Timing.repeat.periodMax
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: decimal
    l: decimal
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: PIVL.phase

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.periodUnit
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.periodUnit
short:
  v: s ｜ min ｜ h ｜ d ｜ wk ｜ mo ｜ a - 單位時間 （unit of time，UCUM）
definition:
  v: 持續時間的單位，以UCUM為單位。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Timing.repeat.periodUnit
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: UnitsOfTime
  strength:
    v: required
  description:
    v: 時間的單位（單位來自UCUM）；應填入UnitsOfTime值集中的其中一個代碼
  value set:
    v: http://hl7.org/fhir/ValueSet/units-of-time|4.0.1
    l: http://hl7.org/fhir/ValueSet/units-of-time
mapping:
  identity:
    v: rim
  map:
    v: PIVL.phase.unit

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.dayOfWeek
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.dayOfWeek
short:
  v: mon ｜ tue ｜ wed ｜ thu ｜ fri ｜ sat ｜ sun
definition:
  v: 如果提供的資訊為一星期中的一天或多天，那麼此活動只發生在這特定的幾天。
comment:
  v: 如果沒有指定天數，則假定該活動每天都會發生，否則就會指定。資料項目frequency和period不能與dayOfWeek同時使用。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Timing.repeat.dayOfWeek
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: code
    l: code
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: DayOfWeek
  strength:
    v: required
  description:
    v: 應填入DaysOfWeek值集中的其中一個代碼
  value set:
    v: http://hl7.org/fhir/ValueSet/days-of-week|4.0.1
    l: http://hl7.org/fhir/ValueSet/days-of-week
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.timeOfDay
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.timeOfDay
short:
  v: 一天中的活動時間
definition:
  v: 具體說明一天中活動進行的時間
comment:
  v: 當指定了一天中的時間時，就會推斷出該活動每天都會在指定的時間發生（由dayofWeek篩選）。資料項目when、frequency和period不能和timeOfDay一起使用。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Timing.repeat.timeOfDay
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: time
    l: time
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.when
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.when
short:
  v: 事件發生的時間區間之代碼
definition:
  v: 一天中的一個大致時段，可能與日常生活中的某一事件有關，表明該活動應在何時發生。
comment:
  v: 當一個以上的事件被列出，則此事件被綁定至合併的數個特定事件。
requirements:
  v: 時間經常由特定事件的發生所決定，例如：起床、吃飯和睡覺。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Timing.repeat.when
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: code
    l: code
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: EventTiming
  strength:
    v: required
  description:
    v: 與時程表有關的真實世界事件；應填入EventTiming值集中的其中一個代碼
  value set:
    v: http://hl7.org/fhir/ValueSet/event-timing|4.0.1
    l: http://hl7.org/fhir/ValueSet/event-timing
mapping:
  identity:
    v: rim
  map:
    v: EIVL.event

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.offset
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.offset
short:
  v: 事件的分鐘數（之前或之後）
definition:
  v: 距離特定事件發生的分鐘數。如果事件代碼沒有表明該分鐘是在事件之前還是之後，則假定該offset是指特定事件發生後的分鐘數。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Timing.repeat.offset
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: unsignedInt
    l: unsignedInt
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: EIVL.offset

id:
  v: MedicationRequest.dosageInstruction.timing.code
path:
  v: MedicationRequest.dosageInstruction.timing.code
short:
  v: BID ｜ TID ｜ QID ｜ AM ｜ PM ｜ QD ｜ QOD ｜ + 此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。
definition:
  v: 活動發生時機之代碼（或只是code.text中的文字）。像是BID的一些代碼到處都有，但許多機構定義它們自己的額外代碼。如果提供了一個代碼，此代碼被理解為是結構化時間資料中規定的任何內容的完整陳述，代碼或資料都可用於解釋時機（Timing），但.repeat.bounds適用於代碼（且不包含在代碼中）的例外。
comment:
  v: BID等被定義為「在機構特定的時間」。例如：一個機構可以選擇BID是 「總是在早上7點和下午6點」。如果這種選項是不合適的，就不應該使用代碼BID。反之，應使用一個獨特的機構特定代碼來代替HL7定義的BID代碼和／或使用一個結構化表示法（在這種情況下，具體說明兩個事件時間）。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Timing.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: extensible
  description:
    v: 已知／確定的時間模式之代碼；鼓勵使用TimingAbbreviation值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
  value set:
    v: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-frequency-hl7-tw
    l: medication-frequency-hl7-tw
mapping:
  identity:
    v: rim
  map:
    v: QSC.code

id:
  v: MedicationRequest.dosageInstruction.timing.code.id
path:
  v: MedicationRequest.dosageInstruction.timing.code.id
representation:
  v: xmlAttr
short:
  v: 唯一可識別ID，以供資料項目間相互參照。
definition:
  v: resource中資料項目的唯一ID（用於內部參照）。這可以是任何不含空格的字串。
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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MedicationRequest.dosageInstruction.timing.code.extension
path:
  v: MedicationRequest.dosageInstruction.timing.code.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: 擴充的資料項目
definition:
  v: 擴充的資料項目
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: 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
    l: 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
    l: Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: MedicationRequest.dosageInstruction.timing.code.coding
path:
  v: MedicationRequest.dosageInstruction.timing.code.coding
short:
  v: 由專門術語系統（terminology system）定義的代碼
definition:
  v: 由專門術語系統（terminology system）所定義之代碼的參照
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，例如：SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。
requirements:
  v: 允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。
min:
  v: 0
max:
  v: *
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw
    l: Coding-tw
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.1-8, C*E.10-22
mapping:
  identity:
    v: rim
  map:
    v: union(., ./translation)
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

id:
  v: MedicationRequest.dosageInstruction.timing.code.text
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: MedicationRequest.dosageInstruction.timing.code.text
short:
  v: 概念的文字標記法
definition:
  v: 輸入資料的使用者所見／所選／所說的人類可讀文字表述，和（或）其代表使用者的預期含義。
comment:
  v: 很多時候，此文字表述與其中一個代碼的顯示名稱相同。
requirements:
  v: 專門術語中的代碼並不總是能捕捉人類使用的細微差別的正確意義，或者根本就沒有合適的代碼；這些情況下，文字表述被用來捕捉來源的全部意義。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableConcept.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.9. But note many systems use C*E.2 for this
mapping:
  identity:
    v: rim
  map:
    v: ./originalText[mediaType/code="text/plain"]/data
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText

id:
  v: MedicationRequest.dosageInstruction.asNeeded[x]
path:
  v: MedicationRequest.dosageInstruction.asNeeded[x]
short:
  v: 「根據（對x的）需要」服用 Binding：一個編碼概念，指明在服用或用藥之前應滿足或評估的先決條件。例如：「疼痛」、「性行為前30分鐘」、「發作時」等；可參考SNOMEDCTMedicationAsNeededReasonCodes值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
definition:
  v: 表明此藥品是否只在需要時在特定的用法（Boolean選項）服用，或者表明服用此藥品（CodeableConcept）的前提條件。
comment:
  v: 可以透過設定Boolean = True來表達不用填寫理由的「根據需要」。在這種情況下，CodeableConcept不會被填入任何值。或者你可以透過包括CodeableConcept來表達 「根據需要」的理由。在這種情況下，Boolean值被假定為True。如果您將Boolean值設置為「False」，那麼該劑量是根據時間表給予的，而不是 「prn」或 「根據需要」。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.asNeeded[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: extensible
  description:
    v: 一個編碼概念，指明在服用或用藥之前應滿足或評估的先決條件。例如：「疼痛」、「性行為前30分鐘」、「發作時」等；應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/medication-as-needed-reason
    l: medication-as-needed-reason
mapping:
  identity:
    v: v2
  map:
    v: TQ1-9
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=PRCN].target[classCode=OBS, moodCode=EVN, code="as needed"].value=boolean or codable concept

id:
  v: MedicationRequest.dosageInstruction.site
path:
  v: MedicationRequest.dosageInstruction.site
short:
  v: 用藥之身體部位
definition:
  v: 用藥的身體部位
comment:
  v: 如果使用案例需要BodySite resource的屬性（例如：分別識別和追蹤），那麼就使用標準extension bodySite。可以是一個摘要代碼，也可以是對一個非常精確的位置定義的參照，或者兩者都是。
requirements:
  v: 對藥品首次進入之人體解剖部位的編碼說明
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.site
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: extensible
  description:
    v: 一個編碼概念，描述藥品進入或在身體上的位置；可參考所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/approach-site-codes
    l: approach-site-codes
mapping:
  identity:
    v: v2
  map:
    v: RXR-2
mapping:
  identity:
    v: rim
  map:
    v: .approachSiteCode

id:
  v: MedicationRequest.dosageInstruction.route
path:
  v: MedicationRequest.dosageInstruction.route
short:
  v: 藥品應如何進入體內
definition:
  v: 藥品應如何進入體內
requirements:
  v: 具體說明治療劑進入或到達病人體內的途徑或生理途徑之代碼
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.route
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: RouteOfAdministration
  strength:
    v: example
  description:
    v: 一個編碼概念，描述治療劑進入或在受試者體內的用藥途徑或生理途徑；此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。
  value set:
    v: http://hl7.org/fhir/ValueSet/route-codes
    l: route-codes
mapping:
  identity:
    v: v2
  map:
    v: RXR-1
mapping:
  identity:
    v: rim
  map:
    v: .routeCode

id:
  v: MedicationRequest.dosageInstruction.route.id
path:
  v: MedicationRequest.dosageInstruction.route.id
representation:
  v: xmlAttr
short:
  v: 唯一可識別ID，以供資料項目間相互參照。
definition:
  v: resource中資料項目的唯一ID（用於內部參照）。這可以是任何不含空格的字串。
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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MedicationRequest.dosageInstruction.route.extension
path:
  v: MedicationRequest.dosageInstruction.route.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: 擴充的資料項目
definition:
  v: 擴充的資料項目
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: 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
    l: 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
    l: Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: MedicationRequest.dosageInstruction.route.coding
path:
  v: MedicationRequest.dosageInstruction.route.coding
short:
  v: 由專門術語系統（terminology system）定義的代碼。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。
definition:
  v: 由專門術語系統（terminology system）所定義之代碼的參照
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，例如：SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。
requirements:
  v: 允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。
min:
  v: 0
max:
  v: *
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw
    l: Coding-tw
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: extensible
  value set:
    v: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-path-sct-tw
    l: medication-path-sct-tw
mapping:
  identity:
    v: v2
  map:
    v: C*E.1-8, C*E.10-22
mapping:
  identity:
    v: rim
  map:
    v: union(., ./translation)
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

id:
  v: MedicationRequest.dosageInstruction.route.text
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: MedicationRequest.dosageInstruction.route.text
short:
  v: 概念的文字標記法
definition:
  v: 輸入資料的使用者所見／所選／所說的人類可讀文字表述，和（或）其代表使用者的預期含義。
comment:
  v: 很多時候，此文字表述與其中一個代碼的顯示名稱相同。
requirements:
  v: 專門術語中的代碼並不總是能捕捉人類使用的細微差別的正確意義，或者根本就沒有合適的代碼；這些情況下，文字表述被用來捕捉來源的全部意義。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableConcept.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.9. But note many systems use C*E.2 for this
mapping:
  identity:
    v: rim
  map:
    v: ./originalText[mediaType/code="text/plain"]/data
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText

id:
  v: MedicationRequest.dosageInstruction.method
path:
  v: MedicationRequest.dosageInstruction.method
short:
  v: 用藥的技術
definition:
  v: 用藥的技術
comment:
  v: 使用的專門術語通常先組合配對（pre-coordinate）用藥途徑和／或劑型。
requirements:
  v: 表示藥品進入或進入身體的方法的一個編碼值。最常用的方法為注射。例如：慢推、深靜脈。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.method
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: extensible
  description:
    v: 一個編碼概念，描述用藥的技術；可參考所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/administration-method-codes
    l: administration-method-codes
mapping:
  identity:
    v: v2
  map:
    v: RXR-4
mapping:
  identity:
    v: rim
  map:
    v: .doseQuantity

id:
  v: MedicationRequest.dosageInstruction.doseAndRate
path:
  v: MedicationRequest.dosageInstruction.doseAndRate
short:
  v: 用藥量
definition:
  v: 用藥量
min:
  v: 0
max:
  v: *
base:
  path:
    v: Dosage.doseAndRate
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Element
    l: Element
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: TQ1-2

id:
  v: MedicationRequest.dosageInstruction.doseAndRate.id
path:
  v: MedicationRequest.dosageInstruction.doseAndRate.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MedicationRequest.dosageInstruction.doseAndRate.extension
path:
  v: MedicationRequest.dosageInstruction.doseAndRate.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
    l: 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
    l: 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
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MedicationRequest.dosageInstruction.doseAndRate.type
path:
  v: MedicationRequest.dosageInstruction.doseAndRate.type
short:
  v: 特定劑量或比率種類
definition:
  v: 特定劑量或比率種類，例如：依處方或計算而來。
requirements:
  v: 如果此type資料項目沒有被填入，則假定為「依處方（ordered）」。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.doseAndRate.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: DoseAndRateType
  strength:
    v: example
  description:
    v: 可參考DoseAndRateType值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
  value set:
    v: http://hl7.org/fhir/ValueSet/dose-rate-type
    l: dose-rate-type
mapping:
  identity:
    v: v2
  map:
    v: RXO-21; RXE-23

id:
  v: MedicationRequest.dosageInstruction.doseAndRate.dose[x]
path:
  v: MedicationRequest.dosageInstruction.doseAndRate.dose[x]
short:
  v: 每一劑量的藥量
definition:
  v: 每一劑量的藥量
comment:
  v: 請注意這是指特定藥品量，而不是指每種有效成分量。每種成分量都可以在Medication resource中進行溝通。例如：如果想表達一錠375毫克的藥錠，劑量是一錠，你可以使用Medication resource來記錄此藥錠是由375毫克的藥物XYZ組成。或者，如果劑量是375毫克，那麼你可能只需要使用Medication resource來表明這是藥錠。如果是靜脈注射，例如：多巴胺，你想表明400毫克多巴胺被混合在500毫升的靜脈注射液中，那麼這些都將在Medication resource中呈現。如果用藥不打算是即時的（速率是存在的，或者時間是有期限的），這可具體說明以傳達在時間表所指示的時段之總用藥量，例如：500毫升的劑量應該在4小時內完成。
requirements:
  v: 在一次用藥事件中給予的治療用或其他的物質量
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.doseAndRate.dose[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Range
    l: Range
type:
  code:
    v: Quantity
    l: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: RXO-2, RXE-3
mapping:
  identity:
    v: rim
  map:
    v: .doseQuantity

id:
  v: MedicationRequest.dosageInstruction.doseAndRate.rate[x]
path:
  v: MedicationRequest.dosageInstruction.doseAndRate.rate[x]
short:
  v: 每時間單位內的用藥量
definition:
  v: 每時間單位內的用藥量
comment:
  v: 可同時提供rate和doseQuantity，以提供關於如何用藥和供應藥品的全部細節。如果速率打算隨著時間的推移而改變，根據當地的規則／法規，每次改變都應作為帶有更新速率的新版MedicationRequest來捕捉，或者用帶有新速率的新的MedicationRequest來捕捉。可以使用rateRatio和rateQuantity來指定一段時間內的比率（例如：100毫升／小時）。rateQuantity的方式要求系統有能力解析包含毫升／小時的UCUM語法，而不是將時間指定為分母的特定比率。如果指定了一個2小時500毫升的率值，使用rateRatio可能比使用rateQuantity指定250毫克／小時在語義上更正確。
requirements:
  v: 指明藥品引入病人體內的速度。通常是指輸液的速度，例如：每1小時100毫升或100毫升／小時。也可表示為每單位時間的速度，例如：每2小時500毫升，其他例子如200微克／分鐘或200微克／1分鐘；1升／8小時。有時，當表示為總容量／持續時間時，速率可以隱喻持續時間（例如：500毫升／2小時隱喻持續時間為2小時）。然而，當速率未隱喻持續時間時（例如：250毫升／小時），則需要timing.repeat.duration來表達輸液的時間區間。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.doseAndRate.rate[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Ratio
    l: Ratio
type:
  code:
    v: Range
    l: Range
type:
  code:
    v: Quantity
    l: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: RXE22, RXE23, RXE-24
mapping:
  identity:
    v: rim
  map:
    v: .rateQuantity

id:
  v: MedicationRequest.dosageInstruction.maxDosePerPeriod
path:
  v: MedicationRequest.dosageInstruction.maxDosePerPeriod
short:
  v: 每時間單位內用藥的上限
definition:
  v: 每時間單位內用藥的上限
comment:
  v: 這是為了在有上限的情況下作為劑量的輔助說明。例如：「每4小時2錠，一天最多8錠」。
requirements:
  v: 在一段時間區間用於某一對象的治療用物質之最大總量。例如：24小時內1,000毫克。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.maxDosePerPeriod
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Ratio
    l: Ratio
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: RXO-23, RXE-19
mapping:
  identity:
    v: rim
  map:
    v: .maxDoseQuantity

id:
  v: MedicationRequest.dosageInstruction.maxDosePerAdministration
path:
  v: MedicationRequest.dosageInstruction.maxDosePerAdministration
short:
  v: 每次用藥的上限
definition:
  v: 每次用藥的上限
comment:
  v: 這是為了在有上限的情況下作為劑量的輔助說明。例如：與體表面積有關的劑量有一個上限，如在5至10分鐘內靜脈注射1.5毫克／平方米（最多2毫克），其doseQuantity為1.5毫克／平方米，maxDosePerAdministration為2毫克。
requirements:
  v: 每次用於某一對象治療用物質的最大總量
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.maxDosePerAdministration
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
    l: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: not supported

id:
  v: MedicationRequest.dosageInstruction.maxDosePerLifetime
path:
  v: MedicationRequest.dosageInstruction.maxDosePerLifetime
short:
  v: 病人一生中用藥的上限
definition:
  v: 病人一生中用藥的上限
requirements:
  v: 用於某一對象的治療用物質於其一生的最大總數量
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.maxDosePerLifetime
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
    l: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: not supported

id:
  v: MedicationRequest.dispenseRequest
path:
  v: MedicationRequest.dispenseRequest
short:
  v: 藥品供應授權
definition:
  v: 這表示在藥品請求（亦稱作藥品處方或藥品醫令）中，關於調劑或提供藥品部分的特定詳情。注意：這些資訊不總是與醫令一同發送的。在某些機構（如醫院），可能會有機構或系統上的支援，允許藥局完成調劑的詳細資訊。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.dispenseRequest
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: 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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: script10.6
  map:
    v: Message/Body/NewRx/MedicationPrescribed/ExpirationDate
mapping:
  identity:
    v: rim
  map:
    v: component.supplyEvent

id:
  v: MedicationRequest.dispenseRequest.id
path:
  v: MedicationRequest.dispenseRequest.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MedicationRequest.dispenseRequest.extension
path:
  v: MedicationRequest.dispenseRequest.extension
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
    l: 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
    l: 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
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MedicationRequest.dispenseRequest.modifierExtension
path:
  v: MedicationRequest.dispenseRequest.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
    l: 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
    l: 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
    l: 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: MedicationRequest.dispenseRequest.initialFill
path:
  v: MedicationRequest.dispenseRequest.initialFill
short:
  v: 首次依照處方配藥的細節
definition:
  v: 表明第一次配藥的數量或時間
comment:
  v: 如果填入此資料項目，必須包括數量或期間。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.dispenseRequest.initialFill
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: SubstanceAdministration -> ActRelationship[sequenceNumber = '1'] -> Supply

id:
  v: MedicationRequest.dispenseRequest.initialFill.id
path:
  v: MedicationRequest.dispenseRequest.initialFill.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MedicationRequest.dispenseRequest.initialFill.extension
path:
  v: MedicationRequest.dispenseRequest.initialFill.extension
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
    l: 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
    l: 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
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MedicationRequest.dispenseRequest.initialFill.modifierExtension
path:
  v: MedicationRequest.dispenseRequest.initialFill.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
    l: 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
    l: 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
    l: 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: MedicationRequest.dispenseRequest.initialFill.quantity
path:
  v: MedicationRequest.dispenseRequest.initialFill.quantity
short:
  v: 首次配藥的數量
definition:
  v: 首次配藥量
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.dispenseRequest.initialFill.quantity
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
    l: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Supply.quantity[moodCode=RQO]

id:
  v: MedicationRequest.dispenseRequest.initialFill.duration
path:
  v: MedicationRequest.dispenseRequest.initialFill.duration
short:
  v: 首次配藥的持續時間
definition:
  v: 預計首次配藥的時間持續長度
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.dispenseRequest.initialFill.duration
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Duration
    l: Duration
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Supply.effectivetime[moodCode=RQO]

id:
  v: MedicationRequest.dispenseRequest.dispenseInterval
path:
  v: MedicationRequest.dispenseRequest.dispenseInterval
short:
  v: 前後兩次配藥的最短時間間隔
definition:
  v: 前後兩次配藥必須間隔的最短時間
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.dispenseRequest.dispenseInterval
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Duration
    l: Duration
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Supply.effectivetime[moodCode=RQO]

id:
  v: MedicationRequest.dispenseRequest.validityPeriod
path:
  v: MedicationRequest.dispenseRequest.validityPeriod
short:
  v: 處方可用以配藥的有效期限
definition:
  v: 表明處方的有效期（處方的過期日期）
comment:
  v: 它反映了處方開立者對處方的有效性的看法。在此期限之外，不得根據處方進行配藥。配藥視窗的下限標誌處方可以首次配藥的開始日期。如果沒有指定上限，那麼處方是無期限的，或者將默認為基於法規的過期日期。
requirements:
  v: 表明處方何時有效，何時處方無法再被拿來配藥。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.dispenseRequest.validityPeriod
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
    l: Period
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: script10.6
  map:
    v: Message/Body/NewRx/MedicationPrescribed/Refills
mapping:
  identity:
    v: rim
  map:
    v: effectiveTime

id:
  v: MedicationRequest.dispenseRequest.numberOfRepeatsAllowed
path:
  v: MedicationRequest.dispenseRequest.numberOfRepeatsAllowed
short:
  v: 可重複領藥的次數
definition:
  v: 一個整數，表示除了最初的配藥外，病人可以取得處方藥的次數【又稱連續處方／補藥（refills）或重複】。使用注意事項：這個整數不包括原始醫令的配藥，意即如果一個醫令顯示配藥30錠加上「3次重複」，那麼此醫令總共可以配藥4次，病人總共可以得到120片。開立處方者可明確說，在初次配藥後允許零次補藥。
comment:
  v: 如果顯示的是「授權的開藥次數」，則在這個數字上加1。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.dispenseRequest.numberOfRepeatsAllowed
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: unsignedInt
    l: unsignedInt
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: script10.6
  map:
    v: Message/Body/NewRx/MedicationPrescribed/Quantity
mapping:
  identity:
    v: v2
  map:
    v: RXE-12-Number of Refills
mapping:
  identity:
    v: rim
  map:
    v: repeatNumber

id:
  v: MedicationRequest.dispenseRequest.quantity
path:
  v: MedicationRequest.dispenseRequest.quantity
short:
  v: 每次配藥的藥品（數）量
definition:
  v: 一次裝藥所需的（數）量
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.dispenseRequest.quantity
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
    l: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: script10.6
  map:
    v: Message/Body/NewRx/MedicationPrescribed/DaysSupply
mapping:
  identity:
    v: v2
  map:
    v: RXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense Units.name of coding system
mapping:
  identity:
    v: rim
  map:
    v: quantity

id:
  v: MedicationRequest.dispenseRequest.expectedSupplyDuration
path:
  v: MedicationRequest.dispenseRequest.expectedSupplyDuration
short:
  v: 每次配藥可持續的天數
definition:
  v: 指明預期使用供應產品的時間區間，或預期配藥可持續的時間長度。
comment:
  v: 在某些情況下，這個屬性可以用來代替數量，透過預期持續的時間長度來確定供應的數量，而不是發放的實際數量，例如：90天的用藥供應（基於一個醫令的劑量）。在可能的情況下，指定數量總是更好的，因為這往往是更精確的。預期供應時間長度將總是一個估計值，可能受到外部因素的影響。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.dispenseRequest.expectedSupplyDuration
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Duration
    l: Duration
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: script10.6
  map:
    v: Message/Body/NewRx/MedicationPrescribed/Substitutions
mapping:
  identity:
    v: rim
  map:
    v: expectedUseTime

id:
  v: MedicationRequest.dispenseRequest.performer
path:
  v: MedicationRequest.dispenseRequest.performer
short:
  v: 預定的配藥人員
definition:
  v: 表明開立處方者指定的預定配藥機構（Organization）。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.dispenseRequest.performer
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore
    l: Organization-twcore
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.who
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=COMP].target[classCode=SPLY, moodCode=RQO] .participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]

id:
  v: MedicationRequest.substitution
path:
  v: MedicationRequest.substitution
short:
  v: 對替代藥品的任何限制
definition:
  v: 表示替代藥品是否可以或應該成為配藥的一部分。在某些情況下，替代藥品必須發生，在其他情況下，替代藥品必須不發生。此區塊解釋開立處方者的意圖。如果沒有指定，可以進行替換。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.substitution
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: script10.6
  map:
    v: specific values within Message/Body/NewRx/MedicationPrescribed/Substitutions
mapping:
  identity:
    v: rim
  map:
    v: subjectOf.substitutionPersmission

id:
  v: MedicationRequest.substitution.id
path:
  v: MedicationRequest.substitution.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MedicationRequest.substitution.extension
path:
  v: MedicationRequest.substitution.extension
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
    l: 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
    l: 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
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MedicationRequest.substitution.modifierExtension
path:
  v: MedicationRequest.substitution.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
    l: 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
    l: 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
    l: 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: MedicationRequest.substitution.allowed[x]
path:
  v: MedicationRequest.substitution.allowed[x]
short:
  v: 是否允許替換
definition:
  v: 如果處方開立者允許與處方不同的藥物配藥，則為真。
comment:
  v: 這個資料項目被標記為修飾用，因為無論是否允許替換，它都不能被忽略。
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MedicationRequest.substitution.allowed[x]
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationRequestSubstitution
  strength:
    v: example
  description:
    v: 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode
    l: v3-ActSubstanceAdminSubstitutionCode
mapping:
  identity:
    v: script10.6
  map:
    v: specific values within Message/Body/NewRx/MedicationPrescribed/Substitutions
mapping:
  identity:
    v: v2
  map:
    v: RXO-9-Allow Substitutions / RXE-9-Substitution Status
mapping:
  identity:
    v: rim
  map:
    v: code

id:
  v: MedicationRequest.substitution.reason
path:
  v: MedicationRequest.substitution.reason
short:
  v: 為什麼要（不）進行替換
definition:
  v: 表示替換的原因，或為什麼必須或不必須進行替換。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.substitution.reason
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationIntendedSubstitutionReason
  strength:
    v: example
  description:
    v: 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason
    l: v3-SubstanceAdminSubstitutionReason
mapping:
  identity:
    v: script10.6
  map:
    v: not mapped
mapping:
  identity:
    v: v2
  map:
    v: RXE-9 Substition status
mapping:
  identity:
    v: rim
  map:
    v: reasonCode

id:
  v: MedicationRequest.priorPrescription
path:
  v: MedicationRequest.priorPrescription
short:
  v: 正被替換的醫令／處方
definition:
  v: 連結至與代表早期醫令相關的醫令或處方的resource
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.priorPrescription
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/MedicationRequest-twcore
    l: MedicationRequest-twcore
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Request.replaces
mapping:
  identity:
    v: script10.6
  map:
    v: not mapped
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=?RPLC or ?SUCC]/target[classCode=SBADM,moodCode=RQO]

id:
  v: MedicationRequest.detectedIssue
path:
  v: MedicationRequest.detectedIssue
short:
  v: 活動的臨床問題
definition:
  v: 表明一個或多個針對病人的較積極的或提議的臨床活動之間的實際或潛在的臨床問題；例如：藥物交互作用、重複治療、劑量警訊等。
comment:
  v: 此資料項目可包括由決策支援系統或臨床醫生發現的問題，及可能包括解決問題所採取步驟的資訊。
alias:
  v: Contraindication
alias:
  v: Drug Utilization Review (DUR)
alias:
  v: Alert
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationRequest.detectedIssue
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DetectedIssue|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/DetectedIssue
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=SUBJ]/source[classCode=ALRT,moodCode=EVN].value

id:
  v: MedicationRequest.eventHistory
path:
  v: MedicationRequest.eventHistory
short:
  v: 生命週期中感興趣的事件清單
definition:
  v: 連結至Provenance resource的過去版本，或履行請求或事件resource的Provenance紀錄，其指明可能與查看當前版本resource的使用者相關的關鍵狀態之轉換或更新。
comment:
  v: 這可能不包括請求的所有版本的出處–只包括那些被認為「相關」或重要的版本。這 **必須沒有（SHALL NOT）** 包括與此resource的當前版本相關的出處。（如果此出處被認為是一個「相關」的變化，它將需要作為後續更新的一部分。在此之前，可使用_revinclude直接查詢指向此版本的出處。 所有出處（Provenances）都應有這個藥品請求請求的一些歷史版本作為對象。）
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationRequest.eventHistory
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Provenance-twcore
    l: Provenance-twcore
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Request.relevantHistory
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]

element:
  id:
    v: MedicationRequest
  path:
    v: MedicationRequest
  short:
    v: 為病人或實體集合（例如：特定的一群人）開立的藥品請求
  definition:
    v: 關於藥品供應和對病人用藥指導的醫令或請求。此resource被稱為 「MedicationRequest」，而不是 「MedicationPrescription 」或「MedicationOrder」，以便與在住院病人和門診病人的環境中通用，包括照護計畫等，並與工作流程模式相協調。
element:
  id:
    v: MedicationRequest.id
  path:
    v: MedicationRequest.id
  short:
    v: 不重複的ID用以識別儲存在特定FHIR Server中的MedicationRequest紀錄，通常又稱為邏輯性ID。
  definition:
    v: resource的邏輯ID，在resource的URL中使用。一旦指定，這個值永遠不會改變。
  comment:
    v: 一個resource使用新增操作（create operation）提交給伺服器時，此resource沒有id，它的id在resource被創建後由伺器分配/指定。
element:
  id:
    v: MedicationRequest.meta
  path:
    v: MedicationRequest.meta
  short:
    v: 此MedicationRequest Resource的metadata
  definition:
    v: 關於resource的metadata。這是由基礎建設維護的內容。內容的更改可能並不總是與resource的版本更改相關聯。
element:
  id:
    v: MedicationRequest.implicitRules
  path:
    v: MedicationRequest.implicitRules
  short:
    v: 創建此內容所依據的一組規則
  definition:
    v: 構建resource時遵循的一系列規則的參照，在處理內容時必須理解這些規則。通常這是對IG所定義之特殊規則及其他profiles的參照。
  comment:
    v: 宣告這套規則限制了內容只能被有限的交易夥伴所理解。這從本質上限制了資料的長期有用性。然而，現有的健康生態體系高度分裂，還沒有準備好以普遍可計算的方式定義、收集和交換資料。只要有可能，實作者和/或規範編寫者應該避免使用這個資料項目。通常在使用時，此URL是對IG的參照，此IG將這些特殊規則與其他profiles、value sets等一起定義為其敘述的一部分。
element:
  id:
    v: MedicationRequest.language
  path:
    v: MedicationRequest.language
  short:
    v: 用以表述MedicationRequest Resource內容的語言。
  definition:
    v: 編寫此resource的語言
  comment:
    v: 提供語言是為了支援索引和可存取性（通常，文字表述轉語音等服務使用此語言標籤）。html lanuage tag適用於此敘述。resource上的語言標籤可用於指定從resource中的資料所產成的其他表述之語言。不是所有的內容都必須使用此語言。不應該假定Resource.language自動適用於敘述。如果指定語言，它也應該被指定在html中的div資料項目（關於xml:lang和html lang屬性之間的關係，見HTML5中的規則）。
  example:
    label:
      v: Value
    value: String
      v: zh-TW
  binding:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
        l: elementdefinition-maxValueSet
      value: Canonical
        v: http://hl7.org/fhir/ValueSet/all-languages
        l: all-languages
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
        l: elementdefinition-bindingName
      value: String
        v: Language
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
        l: elementdefinition-isCommonBinding
      value: Boolean
        v: true
    strength:
      v: preferred
    description:
      v: 人類語言；鼓勵使用CommonLanguages代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。
    value set:
      v: http://hl7.org/fhir/ValueSet/languages
      l: languages
element:
  id:
    v: MedicationRequest.text
  path:
    v: MedicationRequest.text
  short:
    v: MedicationRequest Resource之內容摘要以供人閱讀
  definition:
    v: 人可讀的敘述，包含resource的摘要，可用於向人表述resource的內容。敘述不需要對所有的結構化資料進行編碼，但需要包含足夠的細節使人在閱讀敘述時理解「臨床安全性」。resource定義有哪些內容應該在敘述中表示，以確保臨床安全。
  comment:
    v: 內嵌（contained）的resource沒有敘述，非內嵌（contained）的resource則 **建議應該（SHOULD）** 有敘述。有時resource可能只有文字表述，很少或沒有額外的結構化資料（只要滿足所有minOccurs=1的資料項目）。這可能出現在舊系統的資料，當資訊以 「文字表述區塊（text blob） 」的形式被取得，或者文字表述是原始輸入或說明，而編碼資訊稍後再添加。
element:
  id:
    v: MedicationRequest.identifier
  path:
    v: MedicationRequest.identifier
  short:
    v: 此藥品請求的外部識別碼
  definition:
    v: 與此藥品請求相關的識別碼，這些識別碼是由業務流程定義的，並且/或者在對resource本身的直接URL參照不合適的情況下用來參照它。它們是由執行者或其他系統指定給此resource的業務用識別碼，並隨著resource的更新和從伺服器到伺服器的傳播而保持不變。
  comment:
    v: 這是一個業務用識別碼，而不是一個resource識別碼。
  must support:
    v: true
element:
  id:
    v: MedicationRequest.status
  path:
    v: MedicationRequest.status
  definition:
    v: 一個指定醫令當前狀態的代碼。一般來說，它是有效或完成的狀態。
  comment:
    v: 這個資料項目被標記為修飾用，因為此狀態亦包含標記resource當前為無效的代碼。
  must support:
    v: true
  binding:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
        l: elementdefinition-bindingName
      value: String
        v: MedicationRequestStatus
    strength:
      v: required
    description:
      v: 應填入所綁定值集中的其中一個代碼
    value set:
      v: http://hl7.org/fhir/ValueSet/medicationrequest-status|4.0.1
      l: http://hl7.org/fhir/ValueSet/medicationrequest-status
element:
  id:
    v: MedicationRequest.statusReason
  path:
    v: MedicationRequest.statusReason
  short:
    v: 當前狀態的原因
  definition:
    v: 捕捉MedicationRequest當前狀態的原因
  comment:
    v: 這通常只用於 「例外」狀態，例如：「暫停」或 「取消」。MedicationRequest的原因是在reasonCode中描述，而不是在這裡。
  type:
    code:
      v: CodeableConcept
      l: CodeableConcept
    profile:
      v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
      l: CodeableConcept-tw
  binding:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
        l: elementdefinition-bindingName
      value: String
        v: MedicationRequestStatusReason
    strength:
      v: example
    description:
      v: 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
    value set:
      v: http://hl7.org/fhir/ValueSet/medicationrequest-status-reason
      l: medicationrequest-status-reason
element:
  id:
    v: MedicationRequest.intent
  path:
    v: MedicationRequest.intent
  definition:
    v: 請求是提案、計畫、還是原始醫令？
  comment:
    v: 預期服務請求者的型別將在MedicationRequest的不同階段受到限制。例如：提案可由病人（Patient）、相關人士（relatedPerson）、健康照護服務提供者（Practitioner）或設備（Device）建立。照護計畫可由健康照護服務提供者、病人、相關人士和設備建立。原始醫令只能由健康照護服務提供者建立。 實例醫令（an instance-order）是請求或醫令的實例，可用於填充給藥紀錄。 這個資料項目被標記為修飾用，因為其意圖改變resource實際適用的時間和方式。
  must support:
    v: true
  binding:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
        l: elementdefinition-bindingName
      value: String
        v: MedicationRequestIntent
    strength:
      v: required
    description:
      v: 應填入所綁定值集中的其中一個代碼
    value set:
      v: http://hl7.org/fhir/ValueSet/medicationrequest-intent|4.0.1
      l: http://hl7.org/fhir/ValueSet/medicationrequest-intent
element:
  id:
    v: MedicationRequest.category
  path:
    v: MedicationRequest.category
  short:
    v: 用藥型別
  definition:
    v: 表示藥品請求的型別（例如：預計用藥或給藥的地方（即住院病人或門診病人））。
  comment:
    v: 此類別可用於包括預期的藥品使用地點或其他型別的請求
  type:
    code:
      v: CodeableConcept
      l: CodeableConcept

v: true

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    l: elementdefinition-bindingName
  value: String
    v: MedicationRequestCategory
strength:
  v: example
description:
  v: 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
value set:
  v: http://hl7.org/fhir/ValueSet/medicationrequest-category
  l: medicationrequest-category

id:
  v: MedicationRequest.priority
path:
  v: MedicationRequest.priority
short:
  v: routine ｜ urgent ｜ asap ｜ stat
definition:
  v: 表示相對於其他請求而言，此藥品請求應如何快速得到處理。
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationRequestPriority
  strength:
    v: required
  description:
    v: 應填入RequestPriority值集中的其中一個代碼
  value set:
    v: http://hl7.org/fhir/ValueSet/request-priority|4.0.1
    l: http://hl7.org/fhir/ValueSet/request-priority

id:
  v: MedicationRequest.doNotPerform
path:
  v: MedicationRequest.doNotPerform
short:
  v: 如果藥品請求是禁止活動，則為真。
definition:
  v: 如果為真，表示健康照護服務提供者要求不發生藥品請求。
comment:
  v: 如果沒有具體說明不執行，則該藥品請求是一個正向的請求，例如：「執行」。

id:
  v: MedicationRequest.reported[x]
path:
  v: MedicationRequest.reported[x]
short:
  v: 被報告的而不是主要的紀錄
definition:
  v: 表明此記錄是否為次級的 「報告 」紀錄，而不是作為原始的主要真實來源紀錄，它也可用以表明報告的來源。
type:
  code:
    v: boolean
    l: boolean
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore
    l: Patient-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore
    l: Practitioner-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore
    l: PractitionerRole-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore
    l: RelatedPerson-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore
    l: Organization-twcore

id:
  v: MedicationRequest.medication[x]
path:
  v: MedicationRequest.medication[x]
slicing:
  discriminator:
    type:
      v: type
    path:
      v: $this
  ordered:
    v: false
  rules:
    v: open
short:
  v: 服用的藥品。
definition:
  v: 指明被請求的藥品，這是一個指向代表藥品的resource的連接，可以是藥品的細節，也可以是一個帶有代碼的屬性，從已知的藥品列表中指明此藥品。
comment:
  v: 如果只具體說明一個代碼，那麼它需要是一個特定產品的代碼。如果需要更多資訊，那麼建議使用Medication resource。例如：如果您需要劑型或批號，或者如果藥品是複方或臨場調製（extemporaneously prepared）的，那麼您必須參考Medication resource。
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Medication-twcore
    l: Medication-twcore
must support:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationCode
  strength:
    v: example
  description:
    v: 此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。
  value set:
    v: http://hl7.org/fhir/ValueSet/medication-codes
    l: medication-codes

id:
  v: MedicationRequest.medication[x]:medicationReference
path:
  v: MedicationRequest.medication[x]
slice name:
  v: medicationReference
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Medication-twcore
    l: Medication-twcore
must support:
  v: true

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept
path:
  v: MedicationRequest.medication[x]
slice name:
  v: medicationCodeableConcept
short:
  v: 服用的藥品。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。
definition:
  v: 指明被開立的藥品，這是一個指向代表藥品的resource的連接，可以是藥品的細節，也可以是一個帶有代碼的屬性，從已知的藥品列表中指明此藥品。
comment:
  v: 如果只具體說明一個代碼，那麼它需要是一個特定產品的代碼。如果需要更多資訊，那麼建議使用Medication resource。例如：如果您需要劑型或批號，或者如果藥品是複方或臨場調製（extemporaneously prepared）的，那麼您必須參考Medication resource。
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
must support:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationCode
  strength:
    v: example
  value set:
    v: http://hl7.org/fhir/ValueSet/medication-codes
    l: medication-codes

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding
path:
  v: MedicationRequest.medication[x].coding
slicing:
  discriminator:
    type:
      v: pattern
    path:
      v: $this
  rules:
    v: open
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，例如：SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:fda-medication-tw
path:
  v: MedicationRequest.medication[x].coding
slice name:
  v: fda-medication-tw
short:
  v: 此為臺灣食品藥物管理署(TFDA)維護之藥品代碼，涵蓋範圍相對完整，可免費使用，可優先選用此代碼。
definition:
  v: 由專門術語系統（terminology system）所定義之代碼的參照。
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。
min:
  v: 0
max:
  v: 1
must support:
  v: true
binding:
  strength:
    v: required
  description:
    v: 應填入所綁定值集中的其中一個代碼。
  value set:
    v: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-fda-tw
    l: medication-fda-tw

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:nhi-medication-tw
path:
  v: MedicationRequest.medication[x].coding
slice name:
  v: nhi-medication-tw
short:
  v: 此為中央健康保險署(NHI)維護之藥品代碼，主要針對申報使用，更新頻率相對頻繁，可免費使用，可依情境選用此代碼。
definition:
  v: 由專門術語系統（terminology system）所定義之代碼的參照。
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。
min:
  v: 0
max:
  v: 1
must support:
  v: true
binding:
  strength:
    v: required
  description:
    v: 應填入所綁定值集中的其中一個代碼。
  value set:
    v: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-nhi-tw
    l: medication-nhi-tw

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:nhi-medication-ch-herb-tw
path:
  v: MedicationRequest.medication[x].coding
slice name:
  v: nhi-medication-ch-herb-tw
short:
  v: 此為中央健康保險署(NHI)維護之中藥藥品代碼，主要針對申報使用，更新頻率相對頻繁，可免費使用，可依情境選用此代碼。
definition:
  v: 由專門術語系統（terminology system）所定義之代碼的參照。
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。
min:
  v: 0
max:
  v: 1
binding:
  strength:
    v: required
  description:
    v: 應填入所綁定值集中的其中一個代碼。
  value set:
    v: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/nhi-medication-ch-herb-tw
    l: nhi-medication-ch-herb-tw

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:rxnorm-medication-us-core
path:
  v: MedicationRequest.medication[x].coding
slice name:
  v: rxnorm-medication-us-core
short:
  v: RxNorm為美國Unified Medical Language System®中的藥品代碼，取得UMLS®授權即可免費使用，可依情境選用此代碼。
definition:
  v: 由專門術語系統（terminology system）所定義之代碼的參照。
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。
min:
  v: 0
max:
  v: 1
must support:
  v: true
binding:
  strength:
    v: required
  description:
    v: 應填入所綁定值集中的其中一個代碼。
  value set:
    v: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-rxnorm-tw
    l: medication-rxnorm-tw

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:atc-medication-code
path:
  v: MedicationRequest.medication[x].coding
slice name:
  v: atc-medication-code
short:
  v: ATC代碼的版權為世界衛生組織（WHO）Collaborating Centre for Drug Statistics Methodology，可免費使用，可依情境選用此代碼。
definition:
  v: 由專門術語系統（terminology system）所定義之代碼的參照。
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。
min:
  v: 0
max:
  v: 1
must support:
  v: true
binding:
  strength:
    v: required
  description:
    v: 應填入所綁定值集中的其中一個代碼。
  value set:
    v: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medcation-atc-tw
    l: medcation-atc-tw

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:snomedct-medication-codes
path:
  v: MedicationRequest.medication[x].coding
slice name:
  v: snomedct-medication-codes
short:
  v: 此為SNOMED CT代碼，若機構已有購買相關授權，亦可使用。
definition:
  v: 由專門術語系統（terminology system）所定義之代碼的參照。
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。
min:
  v: 0
max:
  v: 1
must support:
  v: true
binding:
  strength:
    v: required
  description:
    v: 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
  value set:
    v: http://hl7.org/fhir/ValueSet/medication-codes
    l: medication-codes

id:
  v: MedicationRequest.subject
path:
  v: MedicationRequest.subject
short:
  v: 為誰或哪個實體集合（例如：特定的一群人）所開立的藥品請求
definition:
  v: 連結至一個或一組即將給予藥品的人
comment:
  v: 藥品請求的對像是必填的。對於不提供實際對象的次級使用案例，仍然必須指定一個匿名對象。
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore
    l: Patient-twcore
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Group
    l: Group
must support:
  v: true

id:
  v: MedicationRequest.encounter
path:
  v: MedicationRequest.encounter
short:
  v: 連結至一個或一組即將給予藥品的人
definition:
  v: 建立此[x]的就醫（Encounter），或與此藥品請求紀錄密切相關的就醫。
comment:
  v: 這通常是事件發生的就醫（Encounter），但有些活動可能是在就醫完成之前或之後發生，但仍與就醫的情境相關。如果需要與照護事件相聯繫，它們將用一個擴充資料項目來處理。
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Encounter-twcore
    l: Encounter-twcore
must support:
  v: true

id:
  v: MedicationRequest.supportingInformation
path:
  v: MedicationRequest.supportingInformation
short:
  v: 任何與藥品請求相關的補充資訊
definition:
  v: 任何與藥品請求相關的補充資訊（例如：病人身高及體重）

id:
  v: MedicationRequest.authoredOn
path:
  v: MedicationRequest.authoredOn
short:
  v: 藥品請求請求最初何時被撰寫？
definition:
  v: 處方最初書寫或撰寫的日期（或許也有時間）。
must support:
  v: true

id:
  v: MedicationRequest.requester
path:
  v: MedicationRequest.requester
short:
  v: 誰／什麼提出藥品請求請求？
definition:
  v: 發起藥品請求並對其有效負責的個人、組織或設備。
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore
    l: Practitioner-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore
    l: PractitionerRole-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore
    l: Organization-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore
    l: Patient-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore
    l: RelatedPerson-twcore
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device
    l: Device
must support:
  v: true

id:
  v: MedicationRequest.performer
path:
  v: MedicationRequest.performer
short:
  v: 預期的給藥執行者
definition:
  v: 具體說明的藥物治療執行者（例如：給藥的執行者）。
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore
    l: Practitioner-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore
    l: PractitionerRole-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore
    l: Organization-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore
    l: Patient-twcore
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device
    l: Device
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore
    l: RelatedPerson-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CareTeam-twcore
    l: CareTeam-twcore

id:
  v: MedicationRequest.performerType
path:
  v: MedicationRequest.performerType
short:
  v: 所需的給藥執行者種類
definition:
  v: 表明給藥的執行者的型別
comment:
  v: 如果具體說明中未表明執行者，則表明執行者必須是具體的型別。如果具體說明有執行者，那麼如果指定的執行無法獲得則需說明指定執行者的要求條件。
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
binding:
  strength:
    v: extensible
  description:
    v: 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/performer-role
    l: performer-role

id:
  v: MedicationRequest.recorder
path:
  v: MedicationRequest.recorder
short:
  v: 輸入藥品請求請求的人
definition:
  v: 代表另一個人輸入醫令的人，例如：在口頭或電話指示下的情況。
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore
    l: Practitioner-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore
    l: PractitionerRole-twcore

id:
  v: MedicationRequest.reasonCode
path:
  v: MedicationRequest.reasonCode
short:
  v: 開立醫令或不開立醫令的原因或指示
definition:
  v: 開立或不開立藥品醫令的原因或指示
comment:
  v: 這可能是一個診斷代碼。如果存在完整的病情、問題或診斷（condition）紀錄或需要附加的細節，請使用 reasonReference。
binding:
  strength:
    v: extensible
  description:
    v: 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-code
    l: condition-code

id:
  v: MedicationRequest.reasonReference
path:
  v: MedicationRequest.reasonReference
short:
  v: 開立處方的原因，例如：病情、問題或診斷（condition）或者檢驗檢查（observation）
definition:
  v: 開立藥品醫令的原因，例如：病情、問題或診斷（condition）或者檢驗檢查（observation）。
comment:
  v: 藥品醫令開立的原因參照，例如：病情、問題或診斷（condition）或者檢驗檢查（observation）。如果只能有一個代碼存在，則使用reasonCode。
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Condition-twcore
    l: Condition-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Observation-laboratoryResult-twcore
    l: Observation-laboratoryResult-twcore
must support:
  v: true

id:
  v: MedicationRequest.instantiatesCanonical
path:
  v: MedicationRequest.instantiatesCanonical
short:
  v: 實例化FHIR計畫書（protocol）或定義
definition:
  v: 指向此藥品請求全部或部分遵守的計畫書（protocol）、指南（guideline）、醫令集（orderset）或其他定義的URL。

id:
  v: MedicationRequest.instantiatesUri
path:
  v: MedicationRequest.instantiatesUri
short:
  v: 實例化外部計畫書（protocol）或定義
definition:
  v: 指向此藥品請求全部或部分的外部維護之計畫書（protocol）、指南（guideline）、醫令集（orderset）或其他定義的URL。

id:
  v: MedicationRequest.basedOn
path:
  v: MedicationRequest.basedOn
short:
  v: 此MedicationRquest是基於什麼而履行？
definition:
  v: 透過藥品請求，一項計畫或請求已全部或部分被履行
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CarePlan-twcore
    l: CarePlan-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/MedicationRequest-twcore
    l: MedicationRequest-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/ServiceRequest-twcore
    l: ServiceRequest-twcore
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation
    l: ImmunizationRecommendation

id:
  v: MedicationRequest.groupIdentifier
path:
  v: MedicationRequest.groupIdentifier
short:
  v: 此為綜合請求的一部分
definition:
  v: 由單一作者或多或少同時授權之所有服務請求的共用識別碼，代表一個藥品請求的群組識別碼
requirements:
  v: 請求之間的連接可以透過「基於」(basedOn) 關係實現（即一個請求是為了完成另一個請求），或者是它們有一個共同的申請單 (requisition)。那些屬於同一申請單的請求，在改變它們的狀態或在最初創建後進行維護的過程中，通常被視為各自獨立的。

id:
  v: MedicationRequest.courseOfTherapyType
path:
  v: MedicationRequest.courseOfTherapyType
short:
  v: 給藥的整體模式
definition:
  v: 給病人的給藥整體模型描述
comment:
  v: 這個屬性不應與藥物治療計畫（protocol）混淆
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationRequestCourseOfTherapy
  strength:
    v: example
  description:
    v: 可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
  value set:
    v: http://hl7.org/fhir/ValueSet/medicationrequest-course-of-therapy
    l: medicationrequest-course-of-therapy

id:
  v: MedicationRequest.insurance
path:
  v: MedicationRequest.insurance
short:
  v: 相關的保險承保範圍
definition:
  v: 提供此請求服務可能需要的保險計畫、擴大承保範圍、預先授權和／或預先決定。

id:
  v: MedicationRequest.note
path:
  v: MedicationRequest.note
short:
  v: 關於處方的資訊
definition:
  v: 關於處方的附加資訊，不能由其他屬性來傳達。
must support:
  v: true

id:
  v: MedicationRequest.dosageInstruction
path:
  v: MedicationRequest.dosageInstruction
short:
  v: 應該如何用藥
definition:
  v: 表明病人的用藥方式
comment:
  v: 在一些例子中，藥品請求可包括口服劑量或靜脈注射或肌肉注射劑量的選擇。例如：「昂丹司瓊（Ondansetron）8毫克口服或靜脈注射，每天兩次，治療噁心」或 「康帕辛® （Compazine®）【丙氯拉嗪（prochlorperazine）】5-10毫克口服（PO）或25毫克經直腸給藥（PR） 每天早、晚（飯後）1次（bid） 需要時使用（prn）噁心或嘔吐 」。在這些情況下，這兩個醫令的建立可歸為一組藥品醫令，基於病人在需要用藥時的情況決定使用哪種劑量和給藥途徑。
must support:
  v: true

id:
  v: MedicationRequest.dosageInstruction.sequence
path:
  v: MedicationRequest.dosageInstruction.sequence
short:
  v: 劑量指示的順序
definition:
  v: 表明使用或解釋劑量指示的順序
requirements:
  v: 如果多個劑量的序號是相同的，那麼就意味著這些指示將被視為同時進行。如果序號不同，那麼這些劑量將是依續使用。

id:
  v: MedicationRequest.dosageInstruction.text
path:
  v: MedicationRequest.dosageInstruction.text
short:
  v: 純文字表述的劑量指示，例如：SIG。
definition:
  v: 純文字表述的劑量指示，例如：SIG。
requirements:
  v: 純文字表述劑量指示可用於說明太複雜而無法編碼的案例。此屬性的內容不包括藥品的名稱或描述。當有已編碼的指示，純文字表述說明可能仍然存在，以顯示給服用藥品或給藥的人。文字指示預計將始終被填入。如果dosage.timing屬性也被填入，那麼dosage.text應該反映與timing相同的資訊。關於給藥或準備藥品的附加資訊應作為文字包括在內。
must support:
  v: true

id:
  v: MedicationRequest.dosageInstruction.additionalInstruction
path:
  v: MedicationRequest.dosageInstruction.additionalInstruction
short:
  v: 對病人的補充指示或警告－例如：「隨餐服用」，「可能引起嗜睡」
definition:
  v: 向病人提供關於如何服藥的補充指示（例如 「隨餐服用」或「在進食前半小時服用」）或給病人的藥品警告（例如「可能導致嗜睡 」或「避免皮膚暴露於陽光直射或人工強光燈（日曬用）下」）。
comment:
  v: 應在dosage.text中填入關於用藥或準備藥品的資訊（例如： 「盡可能快地透過腹膜內口輸液」或 「在用 x 藥後立即服用」）。
requirements:
  v: 附加指示是要編碼的，但在沒有編碼的情況下，此資料項目可以包括文字。例如，「用大量的水吞咽」，這可能編碼也可能不編碼。
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
binding:
  strength:
    v: extensible
  description:
    v: 一個編碼的概念，確定額外的指示，如「與水一起服用」或「避免操作重型機器」；可參考所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/additional-instruction-codes
    l: additional-instruction-codes

id:
  v: MedicationRequest.dosageInstruction.patientInstruction
path:
  v: MedicationRequest.dosageInstruction.patientInstruction
short:
  v: 以病人或消費者為導向的指示
definition:
  v: 用病人或消費者能理解的術語提供指示

id:
  v: MedicationRequest.dosageInstruction.timing
path:
  v: MedicationRequest.dosageInstruction.timing
short:
  v: 應該何時給藥；時間的寫法請參照Timimg datatype。
definition:
  v: 應該何時給藥
comment:
  v: 這個屬性可能並不總是被填入，而Dosage.text預計會被填入。如果兩者都被填入，那麼Dosage.text應反映Dosage.timing的內容。
requirements:
  v: 病人用藥的時間安排。這種data type允許許多不同的表達方式。例如：「每8小時一次」；「一天三次」；「從2011年12月23日開始的10天裡，早餐前半小時」；「2013年10月15日、2013年10月17日和2013年11月1日」。有時，當率值（rate）為總容量／期間，其「期間」意指（例如：500mL／2小時）之持續期間為2小時。但當率值非意指「持續期間」時（例如：250mL／小時），則需要timing.repeat.duration來表達輸液的時間區間。
must support:
  v: true

id:
  v: MedicationRequest.dosageInstruction.timing.event
path:
  v: MedicationRequest.dosageInstruction.timing.event
short:
  v: 事件發生的時間
definition:
  v: 指明事件發生的特定時間
requirements:
  v: 例如：在一份用藥記錄中，你需要把一個一般的規範變成一個精確的規範。

id:
  v: MedicationRequest.dosageInstruction.timing.repeat
path:
  v: MedicationRequest.dosageInstruction.timing.repeat
short:
  v: 事件定期重複發生的時間
definition:
  v: 一組描述事件何時被安排的規則
requirements:
  v: 定期重複的時間安排

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.bounds[x]
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.bounds[x]
short:
  v: 時間或期間長度／長度範圍，或（開始和／或結束）限制
definition:
  v: 時間長度或可能的時間長度範圍，或開始和／或結束時間。

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.count
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.count
short:
  v: 重複的次數
definition:
  v: 在整個持續期間內，期望重複的總次數。如果countMax這個資料項目存在，此count資料項目表示允許次數範圍的下限。
comment:
  v: 如果你同時擁有bounds和count這兩個資料項目，那麼這應該被理解為在bounds期間，發生count的次數。
requirements:
  v: 重複次數可透過設定結束時間或總發生次數作限制

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.countMax
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.countMax
short:
  v: 重複的最大次數
definition:
  v: 如果countMax存在，表示count是一個範圍，如此可在［count］和［countMax］之間的重複次數執行動作。

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.duration
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.duration
short:
  v: 此事件持續多久時間
definition:
  v: 這件事發生的時候會持續多久時間。如果durationMax這個資料項目存在，則此duration資料項目表示持續時間的允許範圍之下限。
comment:
  v: 對於一些事件，持續時間是事件定義的一部分（例如：靜脈輸液，持續時間隱含於特定輸液量及速度）。對於其他事件，它是時間規範的一部分（例如：運動持續時間）。
requirements:
  v: 有些活動不是立即發生，需要維持一段時間。

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.durationMax
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.durationMax
short:
  v: 此事件持續多久時間 （最長時間／最大值）
definition:
  v: 如果durationMax這個資料項目存在，表示duration資料項目是一個範圍的下限 — 所以要在［duration］和［durationMax］之間執行此活動。
comment:
  v: 對於一些事件，持續時間是事件定義的一部分（例如：靜脈輸液，持續時間隱含於特定輸液量及速度）。對於其他事件，它是時間規範的一部分（例如：運動持續時間）。
requirements:
  v: 有些活動不是立即發生，需要維持一段時間。

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.durationUnit
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.durationUnit
short:
  v: s ｜ min ｜ h ｜ d ｜ wk ｜ mo ｜ a - 單位時間 （unit of time，UCUM）
definition:
  v: 持續時間的單位，以UCUM為單位。
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: UnitsOfTime
  strength:
    v: required
  description:
    v: 時間的單位（單位來自UCUM）；應填入UnitsOfTime值集中的其中一個代碼
  value set:
    v: http://hl7.org/fhir/ValueSet/units-of-time|4.0.1
    l: http://hl7.org/fhir/ValueSet/units-of-time

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.frequency
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.frequency
short:
  v: 此事件於每一期間的發生頻率
definition:
  v: 在特定期間內重複動作的次數。如果frequencyMax存在，此frequency資料項目表示頻率的允許範圍的下限。

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.frequencyMax
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.frequencyMax
short:
  v: 此事件於每一期間的最大發生頻率
definition:
  v: 如果frequencyMax存在，frequency資料項目表示頻率範圍的下限 – 所以要在［frequency］和［frequencyMax］之間重複執行此活動。

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.period
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.period
short:
  v: 此事件於特定時間區間所發生的頻率
definition:
  v: 表示重複發生的時間區間；例如：為了表示「每天3次」，3次是頻率（frequency），1天是週期（period）。如果存在periodMax資料項目，此period資料項目表示時間區間長度的允許範圍的下限。

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.periodMax
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.periodMax
short:
  v: 時間區間的上限（3-4小時）
definition:
  v: 如果periodMax存在，表示時間區間是一個從［period］到［periodMax］的範圍，允許表達像是「每3至5天一次」的概念。

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.periodUnit
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.periodUnit
short:
  v: s ｜ min ｜ h ｜ d ｜ wk ｜ mo ｜ a - 單位時間 （unit of time，UCUM）
definition:
  v: 持續時間的單位，以UCUM為單位。
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: UnitsOfTime
  strength:
    v: required
  description:
    v: 時間的單位（單位來自UCUM）；應填入UnitsOfTime值集中的其中一個代碼
  value set:
    v: http://hl7.org/fhir/ValueSet/units-of-time|4.0.1
    l: http://hl7.org/fhir/ValueSet/units-of-time

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.dayOfWeek
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.dayOfWeek
short:
  v: mon ｜ tue ｜ wed ｜ thu ｜ fri ｜ sat ｜ sun
definition:
  v: 如果提供的資訊為一星期中的一天或多天，那麼此活動只發生在這特定的幾天。
comment:
  v: 如果沒有指定天數，則假定該活動每天都會發生，否則就會指定。資料項目frequency和period不能與dayOfWeek同時使用。
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: DayOfWeek
  strength:
    v: required
  description:
    v: 應填入DaysOfWeek值集中的其中一個代碼
  value set:
    v: http://hl7.org/fhir/ValueSet/days-of-week|4.0.1
    l: http://hl7.org/fhir/ValueSet/days-of-week

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.timeOfDay
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.timeOfDay
short:
  v: 一天中的活動時間
definition:
  v: 具體說明一天中活動進行的時間
comment:
  v: 當指定了一天中的時間時，就會推斷出該活動每天都會在指定的時間發生（由dayofWeek篩選）。資料項目when、frequency和period不能和timeOfDay一起使用。

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.when
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.when
short:
  v: 事件發生的時間區間之代碼
definition:
  v: 一天中的一個大致時段，可能與日常生活中的某一事件有關，表明該活動應在何時發生。
comment:
  v: 當一個以上的事件被列出，則此事件被綁定至合併的數個特定事件。
requirements:
  v: 時間經常由特定事件的發生所決定，例如：起床、吃飯和睡覺。
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: EventTiming
  strength:
    v: required
  description:
    v: 與時程表有關的真實世界事件；應填入EventTiming值集中的其中一個代碼
  value set:
    v: http://hl7.org/fhir/ValueSet/event-timing|4.0.1
    l: http://hl7.org/fhir/ValueSet/event-timing

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.offset
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.offset
short:
  v: 事件的分鐘數（之前或之後）
definition:
  v: 距離特定事件發生的分鐘數。如果事件代碼沒有表明該分鐘是在事件之前還是之後，則假定該offset是指特定事件發生後的分鐘數。

id:
  v: MedicationRequest.dosageInstruction.timing.code
path:
  v: MedicationRequest.dosageInstruction.timing.code
short:
  v: BID ｜ TID ｜ QID ｜ AM ｜ PM ｜ QD ｜ QOD ｜ + 此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。
definition:
  v: 活動發生時機之代碼（或只是code.text中的文字）。像是BID的一些代碼到處都有，但許多機構定義它們自己的額外代碼。如果提供了一個代碼，此代碼被理解為是結構化時間資料中規定的任何內容的完整陳述，代碼或資料都可用於解釋時機（Timing），但.repeat.bounds適用於代碼（且不包含在代碼中）的例外。
comment:
  v: BID等被定義為「在機構特定的時間」。例如：一個機構可以選擇BID是 「總是在早上7點和下午6點」。如果這種選項是不合適的，就不應該使用代碼BID。反之，應使用一個獨特的機構特定代碼來代替HL7定義的BID代碼和／或使用一個結構化表示法（在這種情況下，具體說明兩個事件時間）。
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
must support:
  v: true
binding:
  strength:
    v: extensible
  description:
    v: 已知／確定的時間模式之代碼；鼓勵使用TimingAbbreviation值集中的代碼，但不強制一定要使用此值集，你也可使用其他值集的代碼或單純以文字表示。
  value set:
    v: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-frequency-hl7-tw
    l: medication-frequency-hl7-tw

id:
  v: MedicationRequest.dosageInstruction.timing.code.coding
path:
  v: MedicationRequest.dosageInstruction.timing.code.coding
definition:
  v: 由專門術語系統（terminology system）所定義之代碼的參照
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，例如：SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。
requirements:
  v: 允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。
must support:
  v: true

id:
  v: MedicationRequest.dosageInstruction.timing.code.text
path:
  v: MedicationRequest.dosageInstruction.timing.code.text
short:
  v: 概念的文字標記法
definition:
  v: 輸入資料的使用者所見／所選／所說的人類可讀文字表述，和（或）其代表使用者的預期含義。
comment:
  v: 很多時候，此文字表述與其中一個代碼的顯示名稱相同。
requirements:
  v: 專門術語中的代碼並不總是能捕捉人類使用的細微差別的正確意義，或者根本就沒有合適的代碼；這些情況下，文字表述被用來捕捉來源的全部意義。
must support:
  v: true

id:
  v: MedicationRequest.dosageInstruction.asNeeded[x]
path:
  v: MedicationRequest.dosageInstruction.asNeeded[x]
short:
  v: 「根據（對x的）需要」服用 Binding：一個編碼概念，指明在服用或用藥之前應滿足或評估的先決條件。例如：「疼痛」、「性行為前30分鐘」、「發作時」等；可參考SNOMEDCTMedicationAsNeededReasonCodes值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
definition:
  v: 表明此藥品是否只在需要時在特定的用法（Boolean選項）服用，或者表明服用此藥品（CodeableConcept）的前提條件。
comment:
  v: 可以透過設定Boolean = True來表達不用填寫理由的「根據需要」。在這種情況下，CodeableConcept不會被填入任何值。或者你可以透過包括CodeableConcept來表達 「根據需要」的理由。在這種情況下，Boolean值被假定為True。如果您將Boolean值設置為「False」，那麼該劑量是根據時間表給予的，而不是 「prn」或 「根據需要」。
type:
  code:
    v: boolean
    l: boolean
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
binding:
  strength:
    v: extensible
  description:
    v: 一個編碼概念，指明在服用或用藥之前應滿足或評估的先決條件。例如：「疼痛」、「性行為前30分鐘」、「發作時」等；應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/medication-as-needed-reason
    l: medication-as-needed-reason

id:
  v: MedicationRequest.dosageInstruction.site
path:
  v: MedicationRequest.dosageInstruction.site
short:
  v: 用藥之身體部位
definition:
  v: 用藥的身體部位
comment:
  v: 如果使用案例需要BodySite resource的屬性（例如：分別識別和追蹤），那麼就使用標準extension bodySite。可以是一個摘要代碼，也可以是對一個非常精確的位置定義的參照，或者兩者都是。
requirements:
  v: 對藥品首次進入之人體解剖部位的編碼說明
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
binding:
  strength:
    v: extensible
  description:
    v: 一個編碼概念，描述藥品進入或在身體上的位置；可參考所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/approach-site-codes
    l: approach-site-codes

id:
  v: MedicationRequest.dosageInstruction.route
path:
  v: MedicationRequest.dosageInstruction.route
short:
  v: 藥品應如何進入體內
definition:
  v: 藥品應如何進入體內
requirements:
  v: 具體說明治療劑進入或到達病人體內的途徑或生理途徑之代碼
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
must support:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: RouteOfAdministration
  strength:
    v: example
  description:
    v: 一個編碼概念，描述治療劑進入或在受試者體內的用藥途徑或生理途徑；此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。
  value set:
    v: http://hl7.org/fhir/ValueSet/route-codes
    l: route-codes

id:
  v: MedicationRequest.dosageInstruction.route.coding
path:
  v: MedicationRequest.dosageInstruction.route.coding
short:
  v: 由專門術語系統（terminology system）定義的代碼。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。
definition:
  v: 由專門術語系統（terminology system）所定義之代碼的參照
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，例如：SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。
requirements:
  v: 允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。
binding:
  strength:
    v: extensible
  value set:
    v: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-path-sct-tw
    l: medication-path-sct-tw

id:
  v: MedicationRequest.dosageInstruction.route.text
path:
  v: MedicationRequest.dosageInstruction.route.text
short:
  v: 概念的文字標記法
definition:
  v: 輸入資料的使用者所見／所選／所說的人類可讀文字表述，和（或）其代表使用者的預期含義。
comment:
  v: 很多時候，此文字表述與其中一個代碼的顯示名稱相同。
requirements:
  v: 專門術語中的代碼並不總是能捕捉人類使用的細微差別的正確意義，或者根本就沒有合適的代碼；這些情況下，文字表述被用來捕捉來源的全部意義。
must support:
  v: true

id:
  v: MedicationRequest.dosageInstruction.method
path:
  v: MedicationRequest.dosageInstruction.method
short:
  v: 用藥的技術
definition:
  v: 用藥的技術
comment:
  v: 使用的專門術語通常先組合配對（pre-coordinate）用藥途徑和／或劑型。
requirements:
  v: 表示藥品進入或進入身體的方法的一個編碼值。最常用的方法為注射。例如：慢推、深靜脈。
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
binding:
  strength:
    v: extensible
  description:
    v: 一個編碼概念，描述用藥的技術；可參考所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/administration-method-codes
    l: administration-method-codes

id:
  v: MedicationRequest.dosageInstruction.doseAndRate
path:
  v: MedicationRequest.dosageInstruction.doseAndRate
short:
  v: 用藥量
definition:
  v: 用藥量

id:
  v: MedicationRequest.dosageInstruction.doseAndRate.type
path:
  v: MedicationRequest.dosageInstruction.doseAndRate.type
short:
  v: 特定劑量或比率種類
definition:
  v: 特定劑量或比率種類，例如：依處方或計算而來。
requirements:
  v: 如果此type資料項目沒有被填入，則假定為「依處方（ordered）」。
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    l: CodeableConcept-tw
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: DoseAndRateType
  strength:
    v: example
  description:
    v: 可參考DoseAndRateType值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。
  value set:
    v: http://hl7.org/fhir/ValueSet/dose-rate-type
    l: dose-rate-type

id:
  v: MedicationRequest.dosageInstruction.doseAndRate.dose[x]
path:
  v: MedicationRequest.dosageInstruction.doseAndRate.dose[x]
short:
  v: 每一劑量的藥量
definition:
  v: 每一劑量的藥量
comment:
  v: 請注意這是指特定藥品量，而不是指每種有效成分量。每種成分量都可以在Medication resource中進行溝通。例如：如果想表達一錠375毫克的藥錠，劑量是一錠，你可以使用Medication resource來記錄此藥錠是由375毫克的藥物XYZ組成。或者，如果劑量是375毫克，那麼你可能只需要使用Medication resource來表明這是藥錠。如果是靜脈注射，例如：多巴胺，你想表明400毫克多巴胺被混合在500毫升的靜脈注射液中，那麼這些都將在Medication resource中呈現。如果用藥不打算是即時的（速率是存在的，或者時間是有期限的），這可具體說明以傳達在時間表所指示的時段之總用藥量，例如：500毫升的劑量應該在4小時內完成。
requirements:
  v: 在一次用藥事件中給予的治療用或其他的物質量

id:
  v: MedicationRequest.dosageInstruction.doseAndRate.rate[x]
path:
  v: MedicationRequest.dosageInstruction.doseAndRate.rate[x]
short:
  v: 每時間單位內的用藥量
definition:
  v: 每時間單位內的用藥量
comment:
  v: 可同時提供rate和doseQuantity，以提供關於如何用藥和供應藥品的全部細節。如果速率打算隨著時間的推移而改變，根據當地的規則／法規，每次改變都應作為帶有更新速率的新版MedicationRequest來捕捉，或者用帶有新速率的新的MedicationRequest來捕捉。可以使用rateRatio和rateQuantity來指定一段時間內的比率（例如：100毫升／小時）。rateQuantity的方式要求系統有能力解析包含毫升／小時的UCUM語法，而不是將時間指定為分母的特定比率。如果指定了一個2小時500毫升的率值，使用rateRatio可能比使用rateQuantity指定250毫克／小時在語義上更正確。
requirements:
  v: 指明藥品引入病人體內的速度。通常是指輸液的速度，例如：每1小時100毫升或100毫升／小時。也可表示為每單位時間的速度，例如：每2小時500毫升，其他例子如200微克／分鐘或200微克／1分鐘；1升／8小時。有時，當表示為總容量／持續時間時，速率可以隱喻持續時間（例如：500毫升／2小時隱喻持續時間為2小時）。然而，當速率未隱喻持續時間時（例如：250毫升／小時），則需要timing.repeat.duration來表達輸液的時間區間。

id:
  v: MedicationRequest.dosageInstruction.maxDosePerPeriod
path:
  v: MedicationRequest.dosageInstruction.maxDosePerPeriod
short:
  v: 每時間單位內用藥的上限
definition:
  v: 每時間單位內用藥的上限
comment:
  v: 這是為了在有上限的情況下作為劑量的輔助說明。例如：「每4小時2錠，一天最多8錠」。
requirements:
  v: 在一段時間區間用於某一對象的治療用物質之最大總量。例如：24小時內1,000毫克。

id:
  v: MedicationRequest.dosageInstruction.maxDosePerAdministration
path:
  v: MedicationRequest.dosageInstruction.maxDosePerAdministration
short:
  v: 每次用藥的上限
definition:
  v: 每次用藥的上限
comment:
  v: 這是為了在有上限的情況下作為劑量的輔助說明。例如：與體表面積有關的劑量有一個上限，如在5至10分鐘內靜脈注射1.5毫克／平方米（最多2毫克），其doseQuantity為1.5毫克／平方米，maxDosePerAdministration為2毫克。
requirements:
  v: 每次用於某一對象治療用物質的最大總量

id:
  v: MedicationRequest.dosageInstruction.maxDosePerLifetime
path:
  v: MedicationRequest.dosageInstruction.maxDosePerLifetime
short:
  v: 病人一生中用藥的上限
definition:
  v: 病人一生中用藥的上限
requirements:
  v: 用於某一對象的治療用物質於其一生的最大總數量

id:
  v: MedicationRequest.dispenseRequest
path:
  v: MedicationRequest.dispenseRequest
short:
  v: 藥品供應授權