## Union of https://nhicore.nhi.gov.tw/pas/StructureDefinition/Media-twpas and https://nhicore.nhi.gov.tw/pas/StructureDefinition/Media-twpas

This is the set of resources that conform to either of the profiles 非DICOM影像-Media TWPAS (https://nhicore.nhi.gov.tw/pas/StructureDefinition/Media-twpas) and 非DICOM影像-Media TWPAS (https://nhicore.nhi.gov.tw/pas/StructureDefinition/Media-twpas). E.g. what you have to deal with if you get resources conforming to one of them

### Structure

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Media |  | 0..* |  | 健康照護中獲取或使用的影像、影片或音檔，實際內容可能置於行內或透過直接參照提供。
meta | Σ | 1..1 | Meta | 此Media Resource的metadata
extension |  | 0..* | Extension | Additional content defined by implementations
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
security | Σ | 0..* | Coding | Security Labels applied to this resource Binding: ?? (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
tag | Σ | 0..* | Coding | Tags applied to this resource Binding: ?? (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
implicitRules | ?!Σ | 0..1 | uri | 創建此內容所依據的一組規則
language |  | 0..1 | code | 用以表述Media Resource內容的語言。 Binding: ?? (preferred): 人類語言；鼓勵使用CommonLanguages代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。 Example Value: zh-TW
text |  | 0..1 | Narrative | Media Resource之內容摘要以供人閱讀 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 | 影像的識別碼
basedOn | Σ | 0..* | Reference(ServiceRequest | CarePlan) | 導致產生此多媒體的程序
partOf | Σ | 0..* | Reference(Resource) | 參照事件的一部分
status | ?!Σ | 1..1 | code | preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown Binding: ?? (required): 代表事件生命週期階段的代碼；應填入所綁定值集中的其中一個代碼
type |  | 0..1 | ?? | 將多媒體分類為影像、影片或音檔 Binding: ?? (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
modality |  | 0..1 | ?? | 取得影像的設備/過程 Binding: ?? (example): 可參考MediaModality代碼表，但此代碼表只是針對這個欄位的一個可能值的示例，不預期也不鼓勵使用者一定要使用此代碼表的代碼。
view |  | 0..1 | ?? | 影像視圖，從不同的角度拍攝醫學影像，例如：側位（Lateral，從旁邊看）或前後部位（Antero-posterior，從前面或後面看） Binding: ?? (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
subject | S Σ | 0..1 | Reference(病人資訊-Patient TWPAS | #sd-Patient-twpas-Patient-twpas) | 多媒體紀錄的對象是誰或什麼？
encounter | Σ | 0..1 | Reference(TW Core Encounter) | 與此Media相關的就醫事件（Encounter）
created[x] | Σ | 0..1 |  | Media被收集的時間
createdDateTime |  |  | dateTime |
createdPeriod |  |  | Period |
issued | Σ | 0..1 | instant | 此版本提供的日期/時間
operator | Σ | 0..1 | Reference(TW Core Practitioner | TW Core PractitionerRole | TW Core Organization | TW Core CareTeam | TW Core Patient | Device | TW Core RelatedPerson) | 產生影像的人
reasonCode |  | 0..* | ?? | 為什麼會進行這個事件？ Binding: ?? (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
bodySite | S | 0..1 | ?? | 影像檢查的身體部位 Binding: ?? (required)
deviceName | Σ | 0..1 | string | 設備/製造商的名稱
device | Σ | 0..1 | Reference(Device | DeviceMetric | Device) | 影像、影片、音檔的補捉設備。
height | Σ | 0..1 | positiveInt | 以像素為單位的影像高度（影像/影像）
width | Σ | 0..1 | positiveInt | 以像素為單位的影像寬度（影像/影像）
frames | Σ | 0..1 | positiveInt | > 1 的影格（影像）。
duration | Σ | 0..1 | decimal | 以秒為單位的長度（音檔/影片）。
content | Σ C | 1..1 | Attachment | 實際的多媒體 - 參照或資料。 Constraints: UploadContent
extension |  | 0..* | Extension | Additional content defined by implementations
contentType | S Σ | 1..1 | code | Mime type of the content, with charset etc. Binding: ?? (required) Example General: text/plain; charset=UTF-8, image/png
language | Σ | 0..1 | code | Human language of the content (BCP-47) Binding: ?? (preferred): A human language. Example General: en-AU
data |  | 0..1 | base64Binary | Data inline, base64ed
url | S Σ | 1..1 | url | 非DICOM影像（請填寫完整檔案路徑）。填寫上傳附件檔名，例如：file://US01.jpg，且需上傳壓縮後的影像圖檔。 Example General: http://www.acme.com/logo-small.png Example General: file://US01.jpg
size | Σ | 0..1 | unsignedInt | Number of bytes of content (if url provided)
hash | Σ | 0..1 | base64Binary | Hash of the data (sha-1, base64ed)
title | Σ | 0..1 | string | Label to display in place of the data Example General: Official Corporate Logo
creation | Σ | 0..1 | dateTime | Date attachment was first created
note |  | 0..* | Annotation | 對此Media的意見
Documentation for this format