臺灣健保癌症用藥事前審查實作指引
1.0.8 - STU1.0.8

臺灣健保癌症用藥事前審查實作指引 - Downloaded Version 1.0.8 See the Directory of published versions

## Resource Profile: 檢查報告-DiagnosticReport TWPAS

Official URL: https://nhicore.nhi.gov.tw/pas/StructureDefinition/DiagnosticReport-twpas | Version: 1.0.8
Active as of 2025-09-26 | Computable Name: DiagnosticReportTWPAS

此檢查報告-DiagnosticReport TWPAS Profile說明本IG如何進一步定義臺灣核心-診斷報告(TW Core DiagnosticReport) Profile以呈現癌藥事前審查中疾病資訊之檢查報告

Usages:

- Use this Profile: 事前審查-Bundle TWPAS
- Refer to this Profile: 事前審查-Claim TWPAS
- Examples for this Profile: DiagnosticReport/diaRep-min
- CapabilityStatements using this Profile: 臺灣癌藥事前審查-用戶端(TWPAS Client) and 臺灣癌藥事前審查-伺服端(TWPAS Server)

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
--- | --- | --- | --- | ---
DiagnosticReport |  | 0..* | DiagnosticReport | A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports
meta | Σ | 1..1 | Meta | Metadata about the resource
profile | Σ | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Required Pattern: https://nhicore.nhi.gov.tw/pas/StructureDefinition/DiagnosticReport-twpas
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 | registered | partial | preliminary | final + Binding: DiagnosticReportStatus (required): The status of the diagnostic report.
category | Σ | 1..1 | CodeableConcept | Service category Binding: DiagnosticServiceSectionCodes (example): Codes for diagnostic service sections. Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
coding |  | 1..* | Coding | Code defined by a terminology system Fixed Value: (Complex)
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
system |  | 1..1 | uri | Identity of the terminology system Fixed Value: https://nhicore.nhi.gov.tw/pas/CodeSystem/nhi-supporting-info-type
version |  | 0..1 | string | Version of the system - if relevant
code |  | 1..1 | code | Symbol in syntax defined by the system Fixed Value: examinationReport
display |  | 0..1 | string | Representation defined by the system
userSelected |  | 0..1 | boolean | If this coding was chosen directly by the user
text |  | 0..1 | string | Plain text representation of the concept
coding | Σ | 1..1 | Coding | Code defined by a terminology system
code | Σ C | 1..1 | CodeableConcept | 報告類型，當LOINC無法具體描述檢體種類（例如：`47526-9`時），請填寫及補充說明檢體種類(code.text)。 Binding: LOINC-健保事前審查-報告類型值集 (extensible): 最新參考代碼清單請參考此檔案。 Constraints: speType
coding | Σ | 1..1 | Coding | Code defined by a terminology system
system | Σ | 1..1 | uri | Identity of the terminology system Required Pattern: http://loinc.org
code | Σ | 1..1 | code | Symbol in syntax defined by the system
text | Σ | 0..1 | string | 檢體種類
subject | Σ | 1..1 | Reference(病人資訊-Patient TWPAS) | The subject of the report - usually, but not always, the patient
effective[x] | S Σ | 1..1 | dateTime | 報告日期，YYYY-MM-DD
performer | S Σ | 1..1 | Reference(醫事人員-Practitioner TWPAS) | 檢查報告醫師
conclusion | S | 1..1 | string | 報告結果-文數字，請勿將醫事機構名稱、病人及醫師姓名等資訊列入結果中上傳，且不得包含HTML或XML等語法。
presentedForm | S C | 0..* | Attachment | 報告結果-MIMEType Constraints: UploadContent
contentType | S Σ | 1..1 | code | Mime type of the content, with charset etc. Binding: Mime Types (required): The mime type of an attachment. Any valid mime type is allowed. Example General: text/plain; charset=UTF-8, image/png
url | S Σ | 1..1 | url | 檢查報告（請填寫完整檔案路徑） Example General: http://www.acme.com/logo-small.png Example General: file://PathologyReport01.pdf
title | S Σ | 0..1 | string | 檢查報告名稱 Example General: Official Corporate Logo
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet / Code | URI
DiagnosticReport.status | required | DiagnosticReportStatus `http://hl7.org/fhir/ValueSet/diagnostic-report-status|4.0.1` From the FHIR Standard
DiagnosticReport.category | example | Pattern Value: examinationReport `http://hl7.org/fhir/ValueSet/diagnostic-service-sections|4.0.1` From the FHIR Standard
DiagnosticReport.code | extensible | ReportType `https://nhicore.nhi.gov.tw/pas/ValueSet/report-type` From this IG
DiagnosticReport.presentedForm.contentType | required | Mime Types(a valid code from `urn:ietf:bcp:13`) `http://hl7.org/fhir/ValueSet/mimetypes|4.0.1` From the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
UploadContent | error | DiagnosticReport.presentedForm | 填寫格式：file://檔名.副檔名，例如：file://US01.jpg、file://PathologyReport01.pdf、file://GenReport01.pdf、file://王大明病歷.pdf : url.matches('^file://[a-zA-Z0-9_一-龥()（）－]+.[a-zA-Z]{2,5}$') |
dom-2 | error | DiagnosticReport | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | DiagnosticReport | 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 | DiagnosticReport | 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 | DiagnosticReport | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | DiagnosticReport | 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() |
speType | error | DiagnosticReport.code | 當報告類型(code.coding.code)為`47526-9`時，檢體種類(code.text)必填 : (coding.exists(code='47526-9')) implies (text.exists()) |

This structure is derived from DiagnosticReport

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
DiagnosticReport |  |  | DiagnosticReport |
meta |  | 1..1 | Meta | Metadata about the resource
profile |  | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Required Pattern: https://nhicore.nhi.gov.tw/pas/StructureDefinition/DiagnosticReport-twpas
category |  | 1..1 | CodeableConcept | Service category Required Pattern: At least the following
coding |  | 1..* | Coding | Code defined by a terminology system Fixed Value: (Complex)
system |  | 1..1 | uri | Identity of the terminology system Fixed Value: https://nhicore.nhi.gov.tw/pas/CodeSystem/nhi-supporting-info-type
code |  | 1..1 | code | Symbol in syntax defined by the system Fixed Value: examinationReport
coding |  | 1..1 | Coding | Code defined by a terminology system
code | C | 1..1 | CodeableConcept | 報告類型，當LOINC無法具體描述檢體種類（例如：`47526-9`時），請填寫及補充說明檢體種類(code.text)。 Binding: LOINC-健保事前審查-報告類型值集 (extensible): 最新參考代碼清單請參考此檔案。 Constraints: speType
coding |  | 1..1 | Coding | Code defined by a terminology system
system |  | 1..1 | uri | Identity of the terminology system Required Pattern: http://loinc.org
code |  | 1..1 | code | Symbol in syntax defined by the system
text |  | 0..1 | string | 檢體種類
subject |  | 1..1 | Reference(病人資訊-Patient TWPAS) | The subject of the report - usually, but not always, the patient
effective[x] | S | 1..1 | dateTime | 報告日期，YYYY-MM-DD
performer | S | 1..1 | Reference(醫事人員-Practitioner TWPAS) | 檢查報告醫師
conclusion | S | 1..1 | string | 報告結果-文數字，請勿將醫事機構名稱、病人及醫師姓名等資訊列入結果中上傳，且不得包含HTML或XML等語法。
presentedForm | S C | 0..* | Attachment | 報告結果-MIMEType Constraints: UploadContent
contentType | S | 1..1 | code | Mime type of the content, with charset etc.
url | S | 1..1 | url | 檢查報告（請填寫完整檔案路徑） Example General: file://PathologyReport01.pdf
title | S | 0..1 | string | 檢查報告名稱
Documentation for this format

#### Terminology Bindings (Differential)

Path | Conformance | ValueSet | URI
DiagnosticReport.code | extensible | ReportType `https://nhicore.nhi.gov.tw/pas/ValueSet/report-type` From this IG

#### Constraints

Id | Grade | Path(s) | Details | Requirements
UploadContent | error | DiagnosticReport.presentedForm | 填寫格式：file://檔名.副檔名，例如：file://US01.jpg、file://PathologyReport01.pdf、file://GenReport01.pdf、file://王大明病歷.pdf : url.matches('^file://[a-zA-Z0-9_一-龥()（）－]+.[a-zA-Z]{2,5}$') |
speType | error | DiagnosticReport.code | 當報告類型(code.coding.code)為`47526-9`時，檢體種類(code.text)必填 : (coding.exists(code='47526-9')) implies (text.exists()) |

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
DiagnosticReport |  | 0..* | DiagnosticReport | A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 1..1 | Meta | Metadata about the resource
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
versionId | Σ | 0..1 | id | Version specific identifier
lastUpdated | Σ | 0..1 | instant | When the resource version last changed
source | Σ | 0..1 | uri | Identifies where the resource comes from
profile | Σ | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Required Pattern: https://nhicore.nhi.gov.tw/pas/StructureDefinition/DiagnosticReport-twpas
security | Σ | 0..* | Coding | Security Labels applied to this resource Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
tag | Σ | 0..* | Coding | Tags applied to this resource Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
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 report
basedOn |  | 0..* | Reference(CarePlan | ImmunizationRecommendation | MedicationRequest | NutritionOrder | ServiceRequest) | What was requested
status | ?!Σ | 1..1 | code | registered | partial | preliminary | final + Binding: DiagnosticReportStatus (required): The status of the diagnostic report.
category | Σ | 1..1 | CodeableConcept | Service category Binding: DiagnosticServiceSectionCodes (example): Codes for diagnostic service sections. Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
coding |  | 1..* | Coding | Code defined by a terminology system Fixed Value: (Complex)
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
system |  | 1..1 | uri | Identity of the terminology system Fixed Value: https://nhicore.nhi.gov.tw/pas/CodeSystem/nhi-supporting-info-type
version |  | 0..1 | string | Version of the system - if relevant
code |  | 1..1 | code | Symbol in syntax defined by the system Fixed Value: examinationReport
display |  | 0..1 | string | Representation defined by the system
userSelected |  | 0..1 | boolean | If this coding was chosen directly by the user
text |  | 0..1 | string | Plain text representation of the concept
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 | Σ | 1..1 | Coding | Code defined by a terminology system
text | Σ | 0..1 | string | Plain text representation of the concept
code | Σ C | 1..1 | CodeableConcept | 報告類型，當LOINC無法具體描述檢體種類（例如：`47526-9`時），請填寫及補充說明檢體種類(code.text)。 Binding: LOINC-健保事前審查-報告類型值集 (extensible): 最新參考代碼清單請參考此檔案。 Constraints: speType
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 | Σ | 1..1 | 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 | Σ | 1..1 | uri | Identity of the terminology system Required Pattern: http://loinc.org
version | Σ | 0..1 | string | Version of the system - if relevant
code | Σ | 1..1 | code | Symbol in syntax defined by the system
display | Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | Σ | 0..1 | string | 檢體種類
subject | Σ | 1..1 | Reference(病人資訊-Patient TWPAS) | The subject of the report - usually, but not always, the patient
encounter | Σ | 0..1 | Reference(Encounter) | Health care event when test ordered
effective[x] | S Σ | 1..1 | dateTime | 報告日期，YYYY-MM-DD
issued | Σ | 0..1 | instant | DateTime this version was made
performer | S Σ | 1..1 | Reference(醫事人員-Practitioner TWPAS) | 檢查報告醫師
resultsInterpreter | Σ | 0..* | Reference(Practitioner | PractitionerRole | Organization | CareTeam) | Primary result interpreter
specimen |  | 0..* | Reference(Specimen) | Specimens this report is based on
result |  | 0..* | Reference(Observation) | Observations
imagingStudy |  | 0..* | Reference(ImagingStudy) | Reference to full details of imaging associated with the diagnostic report
media | Σ | 0..* | BackboneElement | Key images associated with this report
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
comment |  | 0..1 | string | Comment about the image (e.g. explanation)
link | Σ | 1..1 | Reference(Media) | Reference to the image source
conclusion | S | 1..1 | string | 報告結果-文數字，請勿將醫事機構名稱、病人及醫師姓名等資訊列入結果中上傳，且不得包含HTML或XML等語法。
conclusionCode |  | 0..* | CodeableConcept | Codes for the clinical conclusion of test results Binding: SNOMEDCTClinicalFindings (example): Diagnosis codes provided as adjuncts to the report.
presentedForm | S C | 0..* | Attachment | 報告結果-MIMEType Constraints: UploadContent
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
contentType | S Σ | 1..1 | code | Mime type of the content, with charset etc. Binding: Mime Types (required): The mime type of an attachment. Any valid mime type is allowed. Example General: text/plain; charset=UTF-8, image/png
language | Σ | 0..1 | code | Human language of the content (BCP-47) Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
Example General: en-AU
data |  | 0..1 | base64Binary | Data inline, base64ed
url | S Σ | 1..1 | url | 檢查報告（請填寫完整檔案路徑） Example General: http://www.acme.com/logo-small.png Example General: file://PathologyReport01.pdf
size | Σ | 0..1 | unsignedInt | Number of bytes of content (if url provided)
hash | Σ | 0..1 | base64Binary | Hash of the data (sha-1, base64ed)
title | S Σ | 0..1 | string | 檢查報告名稱 Example General: Official Corporate Logo
creation | Σ | 0..1 | dateTime | Date attachment was first created
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet / Code | URI
DiagnosticReport.meta.security | extensible | All Security Labels `http://hl7.org/fhir/ValueSet/security-labels|4.0.1` From the FHIR Standard
DiagnosticReport.meta.tag | example | CommonTags `http://hl7.org/fhir/ValueSet/common-tags|4.0.1` From the FHIR Standard
DiagnosticReport.language | preferred | CommonLanguages `http://hl7.org/fhir/ValueSet/languages|4.0.1` From the FHIR Standard
Additional Bindings | Purpose
AllLanguages | Max Binding
DiagnosticReport.status | required | DiagnosticReportStatus `http://hl7.org/fhir/ValueSet/diagnostic-report-status|4.0.1` From the FHIR Standard
DiagnosticReport.category | example | Pattern Value: examinationReport `http://hl7.org/fhir/ValueSet/diagnostic-service-sections|4.0.1` From the FHIR Standard
DiagnosticReport.code | extensible | ReportType `https://nhicore.nhi.gov.tw/pas/ValueSet/report-type` From this IG
DiagnosticReport.conclusionCode | example | SNOMEDCTClinicalFindings `http://hl7.org/fhir/ValueSet/clinical-findings|4.0.1` From the FHIR Standard
DiagnosticReport.presentedForm.contentType | required | Mime Types(a valid code from `urn:ietf:bcp:13`) `http://hl7.org/fhir/ValueSet/mimetypes|4.0.1` From the FHIR Standard
DiagnosticReport.presentedForm.language | preferred | CommonLanguages `http://hl7.org/fhir/ValueSet/languages|4.0.1` From the FHIR Standard
Additional Bindings | Purpose
AllLanguages | Max Binding

#### Constraints

Id | Grade | Path(s) | Details | Requirements
UploadContent | error | DiagnosticReport.presentedForm | 填寫格式：file://檔名.副檔名，例如：file://US01.jpg、file://PathologyReport01.pdf、file://GenReport01.pdf、file://王大明病歷.pdf : url.matches('^file://[a-zA-Z0-9_一-龥()（）－]+.[a-zA-Z]{2,5}$') |
dom-2 | error | DiagnosticReport | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | DiagnosticReport | 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 | DiagnosticReport | 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 | DiagnosticReport | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | DiagnosticReport | 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() |
speType | error | DiagnosticReport.code | 當報告類型(code.coding.code)為`47526-9`時，檢體種類(code.text)必填 : (coding.exists(code='47526-9')) implies (text.exists()) |

This structure is derived from DiagnosticReport

Summary

Mandatory: 11 elements(2 nested mandatory elements)
Must-Support: 7 elements

Structures

This structure refers to these other structures:

- 病人資訊-Patient TWPAS (https://nhicore.nhi.gov.tw/pas/StructureDefinition/Patient-twpas)
- 醫事人員-Practitioner TWPAS (https://nhicore.nhi.gov.tw/pas/StructureDefinition/Practitioner-twpas)

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
DiagnosticReport |  | 0..* | DiagnosticReport | A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports
meta | Σ | 1..1 | Meta | Metadata about the resource
profile | Σ | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Required Pattern: https://nhicore.nhi.gov.tw/pas/StructureDefinition/DiagnosticReport-twpas
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 | registered | partial | preliminary | final + Binding: DiagnosticReportStatus (required): The status of the diagnostic report.
category | Σ | 1..1 | CodeableConcept | Service category Binding: DiagnosticServiceSectionCodes (example): Codes for diagnostic service sections. Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
coding |  | 1..* | Coding | Code defined by a terminology system Fixed Value: (Complex)
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
system |  | 1..1 | uri | Identity of the terminology system Fixed Value: https://nhicore.nhi.gov.tw/pas/CodeSystem/nhi-supporting-info-type
version |  | 0..1 | string | Version of the system - if relevant
code |  | 1..1 | code | Symbol in syntax defined by the system Fixed Value: examinationReport
display |  | 0..1 | string | Representation defined by the system
userSelected |  | 0..1 | boolean | If this coding was chosen directly by the user
text |  | 0..1 | string | Plain text representation of the concept
coding | Σ | 1..1 | Coding | Code defined by a terminology system
code | Σ C | 1..1 | CodeableConcept | 報告類型，當LOINC無法具體描述檢體種類（例如：`47526-9`時），請填寫及補充說明檢體種類(code.text)。 Binding: LOINC-健保事前審查-報告類型值集 (extensible): 最新參考代碼清單請參考此檔案。 Constraints: speType
coding | Σ | 1..1 | Coding | Code defined by a terminology system
system | Σ | 1..1 | uri | Identity of the terminology system Required Pattern: http://loinc.org
code | Σ | 1..1 | code | Symbol in syntax defined by the system
text | Σ | 0..1 | string | 檢體種類
subject | Σ | 1..1 | Reference(病人資訊-Patient TWPAS) | The subject of the report - usually, but not always, the patient
effective[x] | S Σ | 1..1 | dateTime | 報告日期，YYYY-MM-DD
performer | S Σ | 1..1 | Reference(醫事人員-Practitioner TWPAS) | 檢查報告醫師
conclusion | S | 1..1 | string | 報告結果-文數字，請勿將醫事機構名稱、病人及醫師姓名等資訊列入結果中上傳，且不得包含HTML或XML等語法。
presentedForm | S C | 0..* | Attachment | 報告結果-MIMEType Constraints: UploadContent
contentType | S Σ | 1..1 | code | Mime type of the content, with charset etc. Binding: Mime Types (required): The mime type of an attachment. Any valid mime type is allowed. Example General: text/plain; charset=UTF-8, image/png
url | S Σ | 1..1 | url | 檢查報告（請填寫完整檔案路徑） Example General: http://www.acme.com/logo-small.png Example General: file://PathologyReport01.pdf
title | S Σ | 0..1 | string | 檢查報告名稱 Example General: Official Corporate Logo
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet / Code | URI
DiagnosticReport.status | required | DiagnosticReportStatus `http://hl7.org/fhir/ValueSet/diagnostic-report-status|4.0.1` From the FHIR Standard
DiagnosticReport.category | example | Pattern Value: examinationReport `http://hl7.org/fhir/ValueSet/diagnostic-service-sections|4.0.1` From the FHIR Standard
DiagnosticReport.code | extensible | ReportType `https://nhicore.nhi.gov.tw/pas/ValueSet/report-type` From this IG
DiagnosticReport.presentedForm.contentType | required | Mime Types(a valid code from `urn:ietf:bcp:13`) `http://hl7.org/fhir/ValueSet/mimetypes|4.0.1` From the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
UploadContent | error | DiagnosticReport.presentedForm | 填寫格式：file://檔名.副檔名，例如：file://US01.jpg、file://PathologyReport01.pdf、file://GenReport01.pdf、file://王大明病歷.pdf : url.matches('^file://[a-zA-Z0-9_一-龥()（）－]+.[a-zA-Z]{2,5}$') |
dom-2 | error | DiagnosticReport | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | DiagnosticReport | 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 | DiagnosticReport | 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 | DiagnosticReport | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | DiagnosticReport | 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() |
speType | error | DiagnosticReport.code | 當報告類型(code.coding.code)為`47526-9`時，檢體種類(code.text)必填 : (coding.exists(code='47526-9')) implies (text.exists()) |

Differential View

This structure is derived from DiagnosticReport

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
DiagnosticReport |  |  | DiagnosticReport |
meta |  | 1..1 | Meta | Metadata about the resource
profile |  | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Required Pattern: https://nhicore.nhi.gov.tw/pas/StructureDefinition/DiagnosticReport-twpas
category |  | 1..1 | CodeableConcept | Service category Required Pattern: At least the following
coding |  | 1..* | Coding | Code defined by a terminology system Fixed Value: (Complex)
system |  | 1..1 | uri | Identity of the terminology system Fixed Value: https://nhicore.nhi.gov.tw/pas/CodeSystem/nhi-supporting-info-type
code |  | 1..1 | code | Symbol in syntax defined by the system Fixed Value: examinationReport
coding |  | 1..1 | Coding | Code defined by a terminology system
code | C | 1..1 | CodeableConcept | 報告類型，當LOINC無法具體描述檢體種類（例如：`47526-9`時），請填寫及補充說明檢體種類(code.text)。 Binding: LOINC-健保事前審查-報告類型值集 (extensible): 最新參考代碼清單請參考此檔案。 Constraints: speType
coding |  | 1..1 | Coding | Code defined by a terminology system
system |  | 1..1 | uri | Identity of the terminology system Required Pattern: http://loinc.org
code |  | 1..1 | code | Symbol in syntax defined by the system
text |  | 0..1 | string | 檢體種類
subject |  | 1..1 | Reference(病人資訊-Patient TWPAS) | The subject of the report - usually, but not always, the patient
effective[x] | S | 1..1 | dateTime | 報告日期，YYYY-MM-DD
performer | S | 1..1 | Reference(醫事人員-Practitioner TWPAS) | 檢查報告醫師
conclusion | S | 1..1 | string | 報告結果-文數字，請勿將醫事機構名稱、病人及醫師姓名等資訊列入結果中上傳，且不得包含HTML或XML等語法。
presentedForm | S C | 0..* | Attachment | 報告結果-MIMEType Constraints: UploadContent
contentType | S | 1..1 | code | Mime type of the content, with charset etc.
url | S | 1..1 | url | 檢查報告（請填寫完整檔案路徑） Example General: file://PathologyReport01.pdf
title | S | 0..1 | string | 檢查報告名稱
Documentation for this format

#### Terminology Bindings (Differential)

Path | Conformance | ValueSet | URI
DiagnosticReport.code | extensible | ReportType `https://nhicore.nhi.gov.tw/pas/ValueSet/report-type` From this IG

#### Constraints

Id | Grade | Path(s) | Details | Requirements
UploadContent | error | DiagnosticReport.presentedForm | 填寫格式：file://檔名.副檔名，例如：file://US01.jpg、file://PathologyReport01.pdf、file://GenReport01.pdf、file://王大明病歷.pdf : url.matches('^file://[a-zA-Z0-9_一-龥()（）－]+.[a-zA-Z]{2,5}$') |
speType | error | DiagnosticReport.code | 當報告類型(code.coding.code)為`47526-9`時，檢體種類(code.text)必填 : (coding.exists(code='47526-9')) implies (text.exists()) |

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
DiagnosticReport |  | 0..* | DiagnosticReport | A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 1..1 | Meta | Metadata about the resource
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
versionId | Σ | 0..1 | id | Version specific identifier
lastUpdated | Σ | 0..1 | instant | When the resource version last changed
source | Σ | 0..1 | uri | Identifies where the resource comes from
profile | Σ | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Required Pattern: https://nhicore.nhi.gov.tw/pas/StructureDefinition/DiagnosticReport-twpas
security | Σ | 0..* | Coding | Security Labels applied to this resource Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
tag | Σ | 0..* | Coding | Tags applied to this resource Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
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 report
basedOn |  | 0..* | Reference(CarePlan | ImmunizationRecommendation | MedicationRequest | NutritionOrder | ServiceRequest) | What was requested
status | ?!Σ | 1..1 | code | registered | partial | preliminary | final + Binding: DiagnosticReportStatus (required): The status of the diagnostic report.
category | Σ | 1..1 | CodeableConcept | Service category Binding: DiagnosticServiceSectionCodes (example): Codes for diagnostic service sections. Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
coding |  | 1..* | Coding | Code defined by a terminology system Fixed Value: (Complex)
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
system |  | 1..1 | uri | Identity of the terminology system Fixed Value: https://nhicore.nhi.gov.tw/pas/CodeSystem/nhi-supporting-info-type
version |  | 0..1 | string | Version of the system - if relevant
code |  | 1..1 | code | Symbol in syntax defined by the system Fixed Value: examinationReport
display |  | 0..1 | string | Representation defined by the system
userSelected |  | 0..1 | boolean | If this coding was chosen directly by the user
text |  | 0..1 | string | Plain text representation of the concept
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 | Σ | 1..1 | Coding | Code defined by a terminology system
text | Σ | 0..1 | string | Plain text representation of the concept
code | Σ C | 1..1 | CodeableConcept | 報告類型，當LOINC無法具體描述檢體種類（例如：`47526-9`時），請填寫及補充說明檢體種類(code.text)。 Binding: LOINC-健保事前審查-報告類型值集 (extensible): 最新參考代碼清單請參考此檔案。 Constraints: speType
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 | Σ | 1..1 | 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 | Σ | 1..1 | uri | Identity of the terminology system Required Pattern: http://loinc.org
version | Σ | 0..1 | string | Version of the system - if relevant
code | Σ | 1..1 | code | Symbol in syntax defined by the system
display | Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | Σ | 0..1 | string | 檢體種類
subject | Σ | 1..1 | Reference(病人資訊-Patient TWPAS) | The subject of the report - usually, but not always, the patient
encounter | Σ | 0..1 | Reference(Encounter) | Health care event when test ordered
effective[x] | S Σ | 1..1 | dateTime | 報告日期，YYYY-MM-DD
issued | Σ | 0..1 | instant | DateTime this version was made
performer | S Σ | 1..1 | Reference(醫事人員-Practitioner TWPAS) | 檢查報告醫師
resultsInterpreter | Σ | 0..* | Reference(Practitioner | PractitionerRole | Organization | CareTeam) | Primary result interpreter
specimen |  | 0..* | Reference(Specimen) | Specimens this report is based on
result |  | 0..* | Reference(Observation) | Observations
imagingStudy |  | 0..* | Reference(ImagingStudy) | Reference to full details of imaging associated with the diagnostic report
media | Σ | 0..* | BackboneElement | Key images associated with this report
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
comment |  | 0..1 | string | Comment about the image (e.g. explanation)
link | Σ | 1..1 | Reference(Media) | Reference to the image source
conclusion | S | 1..1 | string | 報告結果-文數字，請勿將醫事機構名稱、病人及醫師姓名等資訊列入結果中上傳，且不得包含HTML或XML等語法。
conclusionCode |  | 0..* | CodeableConcept | Codes for the clinical conclusion of test results Binding: SNOMEDCTClinicalFindings (example): Diagnosis codes provided as adjuncts to the report.
presentedForm | S C | 0..* | Attachment | 報告結果-MIMEType Constraints: UploadContent
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
contentType | S Σ | 1..1 | code | Mime type of the content, with charset etc. Binding: Mime Types (required): The mime type of an attachment. Any valid mime type is allowed. Example General: text/plain; charset=UTF-8, image/png
language | Σ | 0..1 | code | Human language of the content (BCP-47) Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
Example General: en-AU
data |  | 0..1 | base64Binary | Data inline, base64ed
url | S Σ | 1..1 | url | 檢查報告（請填寫完整檔案路徑） Example General: http://www.acme.com/logo-small.png Example General: file://PathologyReport01.pdf
size | Σ | 0..1 | unsignedInt | Number of bytes of content (if url provided)
hash | Σ | 0..1 | base64Binary | Hash of the data (sha-1, base64ed)
title | S Σ | 0..1 | string | 檢查報告名稱 Example General: Official Corporate Logo
creation | Σ | 0..1 | dateTime | Date attachment was first created
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet / Code | URI
DiagnosticReport.meta.security | extensible | All Security Labels `http://hl7.org/fhir/ValueSet/security-labels|4.0.1` From the FHIR Standard
DiagnosticReport.meta.tag | example | CommonTags `http://hl7.org/fhir/ValueSet/common-tags|4.0.1` From the FHIR Standard
DiagnosticReport.language | preferred | CommonLanguages `http://hl7.org/fhir/ValueSet/languages|4.0.1` From the FHIR Standard
Additional Bindings | Purpose
AllLanguages | Max Binding
DiagnosticReport.status | required | DiagnosticReportStatus `http://hl7.org/fhir/ValueSet/diagnostic-report-status|4.0.1` From the FHIR Standard
DiagnosticReport.category | example | Pattern Value: examinationReport `http://hl7.org/fhir/ValueSet/diagnostic-service-sections|4.0.1` From the FHIR Standard
DiagnosticReport.code | extensible | ReportType `https://nhicore.nhi.gov.tw/pas/ValueSet/report-type` From this IG
DiagnosticReport.conclusionCode | example | SNOMEDCTClinicalFindings `http://hl7.org/fhir/ValueSet/clinical-findings|4.0.1` From the FHIR Standard
DiagnosticReport.presentedForm.contentType | required | Mime Types(a valid code from `urn:ietf:bcp:13`) `http://hl7.org/fhir/ValueSet/mimetypes|4.0.1` From the FHIR Standard
DiagnosticReport.presentedForm.language | preferred | CommonLanguages `http://hl7.org/fhir/ValueSet/languages|4.0.1` From the FHIR Standard
Additional Bindings | Purpose
AllLanguages | Max Binding

#### Constraints

Id | Grade | Path(s) | Details | Requirements
UploadContent | error | DiagnosticReport.presentedForm | 填寫格式：file://檔名.副檔名，例如：file://US01.jpg、file://PathologyReport01.pdf、file://GenReport01.pdf、file://王大明病歷.pdf : url.matches('^file://[a-zA-Z0-9_一-龥()（）－]+.[a-zA-Z]{2,5}$') |
dom-2 | error | DiagnosticReport | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | DiagnosticReport | 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 | DiagnosticReport | 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 | DiagnosticReport | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | DiagnosticReport | 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() |
speType | error | DiagnosticReport.code | 當報告類型(code.coding.code)為`47526-9`時，檢體種類(code.text)必填 : (coding.exists(code='47526-9')) implies (text.exists()) |

This structure is derived from DiagnosticReport

Summary

Mandatory: 11 elements(2 nested mandatory elements)
Must-Support: 7 elements

Structures

This structure refers to these other structures:

- 病人資訊-Patient TWPAS (https://nhicore.nhi.gov.tw/pas/StructureDefinition/Patient-twpas)
- 醫事人員-Practitioner TWPAS (https://nhicore.nhi.gov.tw/pas/StructureDefinition/Practitioner-twpas)

Other representations of profile: CSV, Excel, Schematron