臺灣電子處方箋與調劑單張實作指引(TW EMPD IG)
0.2.0 - ci-build

臺灣電子處方箋與調劑單張實作指引(TW EMPD IG), published by NHI. This guide is not an authorized publication; it is the continuous build for version 0.2.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/TWNHIFHIR/empd/ and changes regularly. See the Directory of published versions

## Resource Profile: 調劑單張-藥物服務代碼

Official URL: https://nhicore.nhi.gov.tw/empd/StructureDefinition/ChargeItem-DS | Version: 0.2.0
Active as of 2024-01-02 | Computable Name: ChargeItemDS

此Profile用於描述調劑單張之藥物服務代碼

Usages:

- Use this Profile: 調劑單張-Bundle
- Refer to this Profile: 調劑單張-Composition
- Examples for this Profile: ChargeItem/cha-ds
- CapabilityStatements using this Profile: 電子處方箋與調劑單張-用戶端 and 電子處方箋與調劑單張-伺服端

You can also check for usages in the FHIR IG Statistics

### Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

- Key Elements Table
- Differential Table
- Snapshot Table
- Statistics/References
- All

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
ChargeItem |  | 0..* | ChargeItem | Item containing charge code(s) associated with the provision of healthcare provider products
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
status | ?!Σ | 1..1 | code | planned | billable | not-billable | aborted | billed | entered-in-error | unknown Binding: ChargeItemStatus (required): Codes identifying the lifecycle stage of a ChargeItem.
code | S Σ | 1..1 | CodeableConcept | A code that identifies the charge, like a billing code。[應填入藥事服務代碼] Binding: ChargeItemCode (example): Example set of codes that can be used for billing purposes.
coding | S Σ | 0..* | Coding | Code defined by a terminology system
system | S Σ | 0..1 | uri | Identity of the terminology system
code | S Σ | 0..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
text | S Σ | 0..1 | string | Plain text representation of the concept
subject | S Σ | 1..1 | Reference(Group | 調劑單張-病人基本資料) | Individual service was done for/to
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
ChargeItem.status | Base | required | ChargeItemStatus | 📍4.0.1 | FHIR Std.
ChargeItem.code | Base | example | ChargeItemCode | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | ChargeItem | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | ChargeItem | 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 | `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()`
dom-4 | error | ChargeItem | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | ChargeItem | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | ChargeItem | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from ChargeItem

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
ChargeItem |  |  | ChargeItem |
code | S | 1..1 | CodeableConcept | A code that identifies the charge, like a billing code。[應填入藥事服務代碼]
coding | S | 0..* | Coding | Code defined by a terminology system
system | S | 0..1 | uri | Identity of the terminology system
code | S | 0..1 | code | Symbol in syntax defined by the system
display | S | 0..1 | string | Representation defined by the system
text | S | 0..1 | string | Plain text representation of the concept
subject | S | 1..1 | Reference(Group | 調劑單張-病人基本資料) | Individual service was done for/to
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
ChargeItem |  | 0..* | ChargeItem | Item containing charge code(s) associated with the provision of healthcare provider products
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 0..* | Identifier | Business Identifier for item
definitionUri |  | 0..* | uri | Defining information about the code of this charge item
definitionCanonical |  | 0..* | canonical(ChargeItemDefinition) | Resource defining the code of this ChargeItem
status | ?!Σ | 1..1 | code | planned | billable | not-billable | aborted | billed | entered-in-error | unknown Binding: ChargeItemStatus (required): Codes identifying the lifecycle stage of a ChargeItem.
partOf |  | 0..* | Reference(ChargeItem) | Part of referenced ChargeItem
code | S Σ | 1..1 | CodeableConcept | A code that identifies the charge, like a billing code。[應填入藥事服務代碼] Binding: ChargeItemCode (example): Example set of codes that can be used for billing purposes.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 0..* | Coding | Code defined by a terminology system
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 0..1 | uri | Identity of the terminology system
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 0..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | S Σ | 0..1 | string | Plain text representation of the concept
subject | S Σ | 1..1 | Reference(Group | 調劑單張-病人基本資料) | Individual service was done for/to
context | Σ | 0..1 | Reference(Encounter | EpisodeOfCare) | Encounter / Episode associated with event
occurrence[x] | Σ | 0..1 |  | When the charged service was applied
occurrenceDateTime |  |  | dateTime |
occurrencePeriod |  |  | Period |
occurrenceTiming |  |  | Timing |
performer |  | 0..* | BackboneElement | Who performed charged service
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
function |  | 0..1 | CodeableConcept | What type of performance was done Binding: ProcedurePerformerRoleCodes (example): Codes describing the types of functional roles performers can take on when performing events.
actor |  | 1..1 | Reference(Practitioner | PractitionerRole | Organization | CareTeam | Patient | Device | RelatedPerson) | Individual who was performing
performingOrganization |  | 0..1 | Reference(Organization) | Organization providing the charged service
requestingOrganization |  | 0..1 | Reference(Organization) | Organization requesting the charged service
costCenter |  | 0..1 | Reference(Organization) | Organization that has ownership of the (potential, future) revenue
quantity | Σ | 0..1 | Quantity | Quantity of which the charge item has been serviced
bodysite | Σ | 0..* | CodeableConcept | Anatomical location, if relevant Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality.
factorOverride |  | 0..1 | decimal | Factor overriding the associated rules
priceOverride |  | 0..1 | Money | Price overriding the associated rules
overrideReason |  | 0..1 | string | Reason for overriding the list price/factor
enterer | Σ | 0..1 | Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson) | Individual who was entering
enteredDate | Σ | 0..1 | dateTime | Date the charge item was entered
reason |  | 0..* | CodeableConcept | Why was the charged service rendered? Binding: ICD-10Codes (example): Example binding for reason.
service |  | 0..* | Reference(DiagnosticReport | ImagingStudy | Immunization | MedicationAdministration | MedicationDispense | Observation | Procedure | SupplyDelivery) | Which rendered service is being charged?
product[x] |  | 0..1 |  | Product charged Binding: FHIRDeviceTypes (example): Example binding for product type.
productReference |  |  | Reference(Device | Medication | Substance) |
productCodeableConcept |  |  | CodeableConcept |
account | Σ | 0..* | Reference(Account) | Account to place this charge
note |  | 0..* | Annotation | Comments made about the ChargeItem
supportingInformation |  | 0..* | Reference(Resource) | Further information supporting this charge
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
ChargeItem.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std.
ChargeItem.status | Base | required | ChargeItemStatus | 📍4.0.1 | FHIR Std.
ChargeItem.code | Base | example | ChargeItemCode | 📍4.0.1 | FHIR Std.
ChargeItem.performer.​function | Base | example | Procedure Performer Role Codes | 📍4.0.1 | FHIR Std.
ChargeItem.bodysite | Base | example | SNOMED CT Body Structures | 📍4.0.1 | FHIR Std.
ChargeItem.reason | Base | example | ICD-10 Codes | 📍4.0.1 | FHIR Std.
ChargeItem.product[x] | Base | example | FHIR Device Types | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | ChargeItem | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | ChargeItem | 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 | `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()`
dom-4 | error | ChargeItem | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | ChargeItem | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | ChargeItem | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from ChargeItem

Summary

Must-Support: 7 elements

Structures

This structure refers to these other structures:

- 調劑單張-病人基本資料 (https://nhicore.nhi.gov.tw/empd/StructureDefinition/Patient-DS)

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
ChargeItem |  | 0..* | ChargeItem | Item containing charge code(s) associated with the provision of healthcare provider products
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
status | ?!Σ | 1..1 | code | planned | billable | not-billable | aborted | billed | entered-in-error | unknown Binding: ChargeItemStatus (required): Codes identifying the lifecycle stage of a ChargeItem.
code | S Σ | 1..1 | CodeableConcept | A code that identifies the charge, like a billing code。[應填入藥事服務代碼] Binding: ChargeItemCode (example): Example set of codes that can be used for billing purposes.
coding | S Σ | 0..* | Coding | Code defined by a terminology system
system | S Σ | 0..1 | uri | Identity of the terminology system
code | S Σ | 0..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
text | S Σ | 0..1 | string | Plain text representation of the concept
subject | S Σ | 1..1 | Reference(Group | 調劑單張-病人基本資料) | Individual service was done for/to
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
ChargeItem.status | Base | required | ChargeItemStatus | 📍4.0.1 | FHIR Std.
ChargeItem.code | Base | example | ChargeItemCode | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | ChargeItem | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | ChargeItem | 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 | `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()`
dom-4 | error | ChargeItem | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | ChargeItem | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | ChargeItem | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

Differential View

This structure is derived from ChargeItem

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
ChargeItem |  |  | ChargeItem |
code | S | 1..1 | CodeableConcept | A code that identifies the charge, like a billing code。[應填入藥事服務代碼]
coding | S | 0..* | Coding | Code defined by a terminology system
system | S | 0..1 | uri | Identity of the terminology system
code | S | 0..1 | code | Symbol in syntax defined by the system
display | S | 0..1 | string | Representation defined by the system
text | S | 0..1 | string | Plain text representation of the concept
subject | S | 1..1 | Reference(Group | 調劑單張-病人基本資料) | Individual service was done for/to
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
ChargeItem |  | 0..* | ChargeItem | Item containing charge code(s) associated with the provision of healthcare provider products
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 0..* | Identifier | Business Identifier for item
definitionUri |  | 0..* | uri | Defining information about the code of this charge item
definitionCanonical |  | 0..* | canonical(ChargeItemDefinition) | Resource defining the code of this ChargeItem
status | ?!Σ | 1..1 | code | planned | billable | not-billable | aborted | billed | entered-in-error | unknown Binding: ChargeItemStatus (required): Codes identifying the lifecycle stage of a ChargeItem.
partOf |  | 0..* | Reference(ChargeItem) | Part of referenced ChargeItem
code | S Σ | 1..1 | CodeableConcept | A code that identifies the charge, like a billing code。[應填入藥事服務代碼] Binding: ChargeItemCode (example): Example set of codes that can be used for billing purposes.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 0..* | Coding | Code defined by a terminology system
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 0..1 | uri | Identity of the terminology system
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 0..1 | code | Symbol in syntax defined by the system
display | S Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | S Σ | 0..1 | string | Plain text representation of the concept
subject | S Σ | 1..1 | Reference(Group | 調劑單張-病人基本資料) | Individual service was done for/to
context | Σ | 0..1 | Reference(Encounter | EpisodeOfCare) | Encounter / Episode associated with event
occurrence[x] | Σ | 0..1 |  | When the charged service was applied
occurrenceDateTime |  |  | dateTime |
occurrencePeriod |  |  | Period |
occurrenceTiming |  |  | Timing |
performer |  | 0..* | BackboneElement | Who performed charged service
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
function |  | 0..1 | CodeableConcept | What type of performance was done Binding: ProcedurePerformerRoleCodes (example): Codes describing the types of functional roles performers can take on when performing events.
actor |  | 1..1 | Reference(Practitioner | PractitionerRole | Organization | CareTeam | Patient | Device | RelatedPerson) | Individual who was performing
performingOrganization |  | 0..1 | Reference(Organization) | Organization providing the charged service
requestingOrganization |  | 0..1 | Reference(Organization) | Organization requesting the charged service
costCenter |  | 0..1 | Reference(Organization) | Organization that has ownership of the (potential, future) revenue
quantity | Σ | 0..1 | Quantity | Quantity of which the charge item has been serviced
bodysite | Σ | 0..* | CodeableConcept | Anatomical location, if relevant Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality.
factorOverride |  | 0..1 | decimal | Factor overriding the associated rules
priceOverride |  | 0..1 | Money | Price overriding the associated rules
overrideReason |  | 0..1 | string | Reason for overriding the list price/factor
enterer | Σ | 0..1 | Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson) | Individual who was entering
enteredDate | Σ | 0..1 | dateTime | Date the charge item was entered
reason |  | 0..* | CodeableConcept | Why was the charged service rendered? Binding: ICD-10Codes (example): Example binding for reason.
service |  | 0..* | Reference(DiagnosticReport | ImagingStudy | Immunization | MedicationAdministration | MedicationDispense | Observation | Procedure | SupplyDelivery) | Which rendered service is being charged?
product[x] |  | 0..1 |  | Product charged Binding: FHIRDeviceTypes (example): Example binding for product type.
productReference |  |  | Reference(Device | Medication | Substance) |
productCodeableConcept |  |  | CodeableConcept |
account | Σ | 0..* | Reference(Account) | Account to place this charge
note |  | 0..* | Annotation | Comments made about the ChargeItem
supportingInformation |  | 0..* | Reference(Resource) | Further information supporting this charge
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
ChargeItem.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std.
ChargeItem.status | Base | required | ChargeItemStatus | 📍4.0.1 | FHIR Std.
ChargeItem.code | Base | example | ChargeItemCode | 📍4.0.1 | FHIR Std.
ChargeItem.performer.​function | Base | example | Procedure Performer Role Codes | 📍4.0.1 | FHIR Std.
ChargeItem.bodysite | Base | example | SNOMED CT Body Structures | 📍4.0.1 | FHIR Std.
ChargeItem.reason | Base | example | ICD-10 Codes | 📍4.0.1 | FHIR Std.
ChargeItem.product[x] | Base | example | FHIR Device Types | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | ChargeItem | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | ChargeItem | 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 | `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()`
dom-4 | error | ChargeItem | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | ChargeItem | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | ChargeItem | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from ChargeItem

Summary

Must-Support: 7 elements

Structures

This structure refers to these other structures:

- 調劑單張-病人基本資料 (https://nhicore.nhi.gov.tw/empd/StructureDefinition/Patient-DS)

Other representations of profile: CSV, Excel, Schematron