You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/healthcare-apis/iot/overview-of-fhir-destination-mapping.md
+33-46Lines changed: 33 additions & 46 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,19 +43,6 @@ This diagram provides an illustration of what happens during the transformation
43
43
> [!NOTE]
44
44
> The FHIR Observation in this diagram is not the complete resource. See [Example](#example) in this overview for the entire FHIR Observation.
45
45
46
-
## FHIR destination mapping validations
47
-
48
-
The transformation process validates the FHIR destination mapping before allowing it to be saved for use. These elements are required in the FHIR destination mapping templates.
49
-
50
-
**FHIR destination mapping**
51
-
52
-
|Element|Required|
53
-
|:------|:-------|
54
-
|typeName|True|
55
-
56
-
> [!NOTE]
57
-
> The `typeName` element is used to link a FHIR destination mapping template to one or more device mapping templates. Device mapping templates with the same `typeName` element generate normalized data that will be evaluated with a FHIR destination mapping template that has the same `typeName`.
58
-
59
46
## CollectionFhir
60
47
61
48
CollectionFhir is the root template type used by the MedTech service FHIR destination mapping. CollectionFhir is a list of all templates that are used during the transformation stage. You can define one or more templates within CollectionFhir, with each normalized message evaluated against all templates.
@@ -64,63 +51,63 @@ CollectionFhir is the root template type used by the MedTech service FHIR destin
64
51
65
52
CodeValueFhir is currently the only template supported in FHIR destination mapping. It allows you to define codes, the effective period, and the value of the observation. Multiple value types are supported: [SampledData](https://www.hl7.org/fhir/datatypes.html#SampledData), [CodeableConcept](https://www.hl7.org/fhir/datatypes.html#CodeableConcept), [Quantity](https://www.hl7.org/fhir/datatypes.html#Quantity), and [string](https://www.hl7.org/fhir/datatypes.html#string). Along with these configurable values, the identifier for the Observation resource and linking to the proper Device and Patient resources are handled automatically.
66
53
67
-
|Element|Description|
68
-
|:------|-----------|
69
-
|**typeName**| The type of measurement this template should bind to. There should be at least one device mapping template that has this same `typeName`.
70
-
|**periodInterval**|The period of time the observation created should represent. Supported values are 0 (an instance), 60 (an hour), 1440 (a day). Note: `periodInterval` is required when the Observation type is "SampledData" and is ignored for any other Observation types.
71
-
|**category**|Any number of [CodeableConcepts](http://hl7.org/fhir/datatypes-definitions.html#codeableconcept) to classify the type of observation created.
72
-
|**codes**|One or more [Codings](http://hl7.org/fhir/datatypes-definitions.html#coding) to apply to the observation created.
73
-
|**codes[].code**|The code for a [Coding](http://hl7.org/fhir/datatypes-definitions.html#coding) in the `codes` property.
74
-
|**codes[].system**|The system for the [Coding](http://hl7.org/fhir/datatypes-definitions.html#coding).
75
-
|**codes[].display**|The display for the [Coding](http://hl7.org/fhir/datatypes-definitions.html#coding).
76
-
|**value**|The value to extract and represent in the observation. For more information, see [Value types](#value-types).
77
-
|**components**|*Optional:* One or more components to create on the observation.
78
-
|**components[].codes**|One or more [Codings](http://hl7.org/fhir/datatypes-definitions.html#coding) to apply to the component.
79
-
|**components[].value**|The value to extract and represent in the component. For more information, see [Value types](#value-types).
54
+
|Element|Description|Required|
55
+
|:------|:----------|:-------|
56
+
|**typeName**| The type of measurement this template should bind to. There should be at least one device mapping template that has this same `typeName`.|TBD|
57
+
|**periodInterval**|The period of time the observation created should represent. Supported values are 0 (an instance), 60 (an hour), 1440 (a day).|TBD Note: `periodInterval` is required when the Observation type is "SampledData" and is ignored for any other Observation types.|
58
+
|**category**|Any number of [CodeableConcepts](http://hl7.org/fhir/datatypes-definitions.html#codeableconcept) to classify the type of observation created.|TBD|
59
+
|**codes**|One or more [Codings](http://hl7.org/fhir/datatypes-definitions.html#coding) to apply to the observation created.|TBD|
60
+
|**codes[].code**|The code for a [Coding](http://hl7.org/fhir/datatypes-definitions.html#coding) in the `codes` property.|TBD|
61
+
|**codes[].system**|The system for the [Coding](http://hl7.org/fhir/datatypes-definitions.html#coding).|TBD|
62
+
|**codes[].display**|The display for the [Coding](http://hl7.org/fhir/datatypes-definitions.html#coding).|TBD|
63
+
|**value**|The value to extract and represent in the observation. For more information, see [Value types](#value-types).|TBD|
64
+
|**components**|*Optional:* One or more components to create on the observation.|TBD|
65
+
|**components[].codes**|One or more [Codings](http://hl7.org/fhir/datatypes-definitions.html#coding) to apply to the component.|TBD|
66
+
|**components[].value**|The value to extract and represent in the component. For more information, see [Value types](#value-types).|TBD|
80
67
81
68
:::image type="content" source="media/overview-of-fhir-destination-mapping/fhir-destination-mapping-templates-diagram.png" alt-text="Diagram showing MedTech service FHIR destination mapping template and code architecture." lightbox="media/overview-of-fhir-destination-mapping/fhir-destination-mapping-templates-diagram.png":::
82
69
83
70
### Value types
84
71
85
72
All CodeValueFhir templates' `value` element contains these elements:
86
73
87
-
|Element|Description|
88
-
|:------|:----------|
89
-
|**valueType**|Type of the value. This value would be "SampledData", "Quantity", "CodeableConcept", or "string" depending on the value type.|
90
-
|**valueName**|Name of the value.|
74
+
|Element|Description|Required|
75
+
|:------|:----------|:-------|
76
+
|**valueType**|Type of the value. This value would be "SampledData", "Quantity", "CodeableConcept", or "string" depending on the value type.|TBD|
77
+
|**valueName**|Name of the value.|TBD|
91
78
92
79
These value types are supported in the MedTech service FHIR destination mapping:
93
80
94
81
#### SampledData
95
82
96
83
Represents the [SampledData](http://hl7.org/fhir/datatypes.html#SampledData) FHIR data type. Observation measurements are written to a value stream starting at a point in time and incrementing forward using the period defined. If no value is present, an `E` is written into the data stream. If the period is such that two or more values occupy the same position in the data stream, the latest value is used. The same logic is applied when an observation using the SampledData is updated. For a CodeValueFhir template with the SampleData value type, the template's `value` element contains the following elements:
97
84
98
-
|Element|Description|
99
-
|:------|:----------|
100
-
|**defaultPeriod**|The default period in milliseconds to use.
101
-
|**unit**|The unit to set on the origin of the SampledData.
85
+
|Element|Description|Required|
86
+
|:------|:----------|:-------|
87
+
|**defaultPeriod**|The default period in milliseconds to use.|TBD|
88
+
|**unit**|The unit to set on the origin of the SampledData. |TBD|
102
89
103
90
#### Quantity
104
91
105
92
Represents the [Quantity](http://hl7.org/fhir/datatypes.html#Quantity) FHIR data type. This type creates a single, point in time, Observation. If a new value arrives that contains the same device identifier, measurement type, and timestamp, the previous Observation is updated to the new value. For a CodeValueFhir template with the Quantity value type, the template's `value` element contains the following elements:
106
93
107
-
|Element|Description|
108
-
|:------|:----------|
109
-
|**unit**|Unit representation.
110
-
|**code**|Coded form of the unit.
111
-
|**system**|System that defines the coded unit form.
94
+
|Element|Description|Required|
95
+
|:------|:----------|:-------|
96
+
|**unit**|Unit representation.|TBD|
97
+
|**code**|Coded form of the unit.|TBD|
98
+
|**system**|System that defines the coded unit form.|TBD|
112
99
113
100
#### CodeableConcept
114
101
115
102
Represents the [CodeableConcept](http://hl7.org/fhir/datatypes.html#CodeableConcept) FHIR data type. The value in the normalized data model isn't used, and instead when this type of data is received, an Observation is created with a specific code representing that an observation was recorded at a specific point in time. For a CodeValueFhir template with the CodeableConcept value type, the template's `value` element contains the following elements:
116
103
117
-
|Element|Description|
118
-
|:------|:----------|
119
-
|**text**|Plain text representation.
120
-
|**codes**|One or more [Codings](http://hl7.org/fhir/datatypes-definitions.html#coding) to apply to the observation created.
121
-
|**codes[].code**|The code for a [Coding](http://hl7.org/fhir/datatypes-definitions.html#coding) in the `codes` property.
122
-
|**codes[].system**|The system for a [Coding](http://hl7.org/fhir/datatypes-definitions.html#coding) in the `codes` property.
123
-
|**codes[].display**|The display for a [Coding](http://hl7.org/fhir/datatypes-definitions.html#coding) in the `codes` property.
104
+
|Element|Description|Required|
105
+
|:------|:----------|:-------|
106
+
|**text**|Plain text representation.|TBD|
107
+
|**codes**|One or more [Codings](http://hl7.org/fhir/datatypes-definitions.html#coding) to apply to the observation created.|TBD|
108
+
|**codes[].code**|The code for a [Coding](http://hl7.org/fhir/datatypes-definitions.html#coding) in the `codes` property.|TBD|
109
+
|**codes[].system**|The system for a [Coding](http://hl7.org/fhir/datatypes-definitions.html#coding) in the `codes` property.|TBD|
110
+
|**codes[].display**|The display for a [Coding](http://hl7.org/fhir/datatypes-definitions.html#coding) in the `codes` property.|TBD|
0 commit comments