Profiles說穿了就是因應特定情境下,把Resource的用法(就是Constrain)加以明確規範之。原文是:adapted to particular use cases。
討論這個,又引發另外一個核心觀念就是Conformance(一致性),他已經複雜到可形成一個位於Level 2的Module。FHIR實踐一致性的方法有:
Implementation Guide (IG) | A coherent and bounded set of adaptations that are published as a single unit. Validation occurs within the context of the Implementation Guide |
Package | A group of related adaptations that are published as a group within an Implementation Guide |
Conformance Resource | A single resource in a package that makes rules about how an implementation works. These are described below |
Profile | A set of constraints on a resource represented as a structure definition with kind = constraint |
要用Observation 來表達BMI時,需遵照這個Profile定義。
- code這個元素,需填入這些值。
- value[x]必須是Quantity資料型態,且需填入這些值。Quantity.value就是BMI的內容值。
- 與原始Observation比較,會有8個必填元素、4個必須支持的元素、有4個元素是固定值。可透過Differential Tables知道內容。
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Observation | 0..* | FHIR Body Mass Index (BMI) Profile | ||
code | 1..1 | CodeableConcept | Body Mass Index (BMI) | |
coding | Coding | Slice: Unordered, Open by value:code, value:system | ||
coding | 1..1 | Coding | ||
system | 1..1 | uri | Fixed Value: http://loinc.org | |
code | 1..1 | code | Fixed Value: 39156-5 | |
valueQuantity | 1..1 | Quantity | ||
value | S | 1..1 | decimal | |
unit | S | 1..1 | string | |
system | S | 1..1 | uri | Fixed Value: http://unitsofmeasure.org |
code | S | 1..1 | code | Coded responses from the common UCUM units for vital signs value set. Fixed Value: kg/m2 |
<?xml version="1.0" encoding="UTF-8"?> <Observation xmlns="http://hl7.org/fhir"> <id value="bmi"/> <meta> <profile value="http://hl7.org/fhir/StructureDefinition/vitalsigns"/> </meta> <text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml"><p> <b> Generated Narrative with Details</b> </p> <p> <b> id</b> : bmi</p> <p> <b> meta</b> : </p> <p> <b> status</b> : final</p> <p> <b> category</b> : Vital Signs <span> (Details : {http://terminology.hl7.org/CodeSystem/observation-category code 'vital-signs' = 'Vital Signs', given as 'Vital Signs'})</span> </p> <p> <b> code</b> : BMI <span> (Details : {LOINC code '39156-5' = 'Body mass index (BMI) [Ratio]', given as 'Body mass index (BMI) [Ratio]'})</span> </p> <p> <b> subject</b> : <a> Patient/example</a> </p> <p> <b> effective</b> : 02/07/1999</p> <p> <b> value</b> : 16.2 kg/m2<span> (Details: UCUM code kg/m2 = 'kg/m2')</span> </p> </div> </text> <status value="final"/> <category> <coding> <system value="http://terminology.hl7.org/CodeSystem/observation-category"/> <code value="vital-signs"/> <display value="Vital Signs"/> </coding> <text value="Vital Signs"/> </category> <code> <coding> <system value="http://loinc.org"/> <code value="39156-5"/> <display value="Body mass index (BMI) [Ratio]"/> </coding> <text value="BMI"/> </code> <subject> <reference value="Patient/example"/> </subject> <effectiveDateTime value="1999-07-02"/> <valueQuantity> <value value="16.2"/> <unit value="kg/m2"/> <system value="http://unitsofmeasure.org"/> <code value="kg/m2"/> </valueQuantity> </Observation>
在描述檔圖片最後部分有看到一個Slices吧,這又是另一個核心觀念(另一個坑),很簡單但不好說明。
沒有留言:
張貼留言