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-device-mapping.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: msjasteppe
5
5
ms.service: healthcare-apis
6
6
ms.subservice: fhir
7
7
ms.topic: overview
8
-
ms.date: 04/14/2023
8
+
ms.date: 04/24/2023
9
9
ms.author: jasteppe
10
10
---
11
11
@@ -52,7 +52,7 @@ The normalization process validates the device mapping before allowing it to be
52
52
|values[].required |True |True |
53
53
54
54
> [!NOTE]
55
-
> `values[].valueName, values[].valueExpression`, `values[].required` and elements are only required if you have a value entry in the array. It's valid to have no values mapped. These elements are used when the telemetry being sent is an event.
55
+
> The `values[].valueName, values[].valueExpression`, and `values[].required` elements are only required if you have a value entry in the array. It's valid to have no values mapped. These elements are used when the telemetry being sent is an event.
56
56
>
57
57
> For example, some scenarios may require creating a FHIR Observation in the FHIR service that does not contain a value.
Copy file name to clipboardExpand all lines: articles/healthcare-apis/iot/overview-of-fhir-destination-mapping.md
+53-62Lines changed: 53 additions & 62 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: msjasteppe
5
5
ms.service: healthcare-apis
6
6
ms.subservice: fhir
7
7
ms.topic: overview
8
-
ms.date: 04/17/2023
8
+
ms.date: 04/24/2023
9
9
ms.author: jasteppe
10
10
---
11
11
@@ -23,11 +23,11 @@ The MedTech service requires two types of [JSON](https://www.json.org/) mappings
23
23
24
24
## FHIR destination mapping basics
25
25
26
-
The FHIR destination mapping controls how the normalized data extracted from a device message is mapped into a FHIR observation.
26
+
The FHIR destination mapping controls how the normalized data extracted from a device message is mapped into a FHIR Observation.
27
27
28
-
- Should an observation be created for a point in time or over a period of an hour?
29
-
- What codes should be added to the observation?
30
-
- Should the value be represented as [SampledData](https://www.hl7.org/fhir/datatypes.html#SampledData) or a [Quantity](https://www.hl7.org/fhir/datatypes.html#Quantity)?
28
+
* Should an observation be created for a point in time or over a period of an hour?
29
+
* What codes should be added to the observation?
30
+
* Should the value be represented as [SampledData](https://www.hl7.org/fhir/datatypes.html#SampledData) or a [Quantity](https://www.hl7.org/fhir/datatypes.html#Quantity)?
31
31
32
32
These data types are all options the FHIR destination mapping configuration controls.
33
33
@@ -43,84 +43,75 @@ 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 validation process validates the FHIR destination mapping before allowing them to be saved for use. These elements are required in the FHIR destination mapping.
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.
62
49
63
50
### CodeValueFhir
64
51
65
-
CodeValueFhir is currently the only template supported in FHIR destination mapping at this time. 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#primitive). Along with these configurable values, the identifier for the Observation resource and linking to the proper Device and Patient resources are handled automatically.
66
-
67
-
> [!NOTE]
68
-
>
69
-
70
-
|Property|Description|
71
-
|:-------|-----------|
72
-
|**typeName**| The type of measurement this template should bind to. There should be at least one Device mapping template that outputs this type.
73
-
|**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.
74
-
|**category**|Any number of [CodeableConcepts](http://hl7.org/fhir/datatypes-definitions.html#codeableconcept) to classify the type of observation created.
75
-
|**codes**|One or more [Codings](http://hl7.org/fhir/datatypes-definitions.html#coding) to apply to the observation created.
76
-
|**codes[].code**|The code for the [Coding](http://hl7.org/fhir/datatypes-definitions.html#coding).
77
-
|**codes[].system**|The system for the [Coding](http://hl7.org/fhir/datatypes-definitions.html#coding).
78
-
|**codes[].display**|The display for the [Coding](http://hl7.org/fhir/datatypes-definitions.html#coding).
79
-
|**value**|The value to extract and represent in the observation. For more information, see [Value type codes](#value-type-codes).
80
-
|**components**|*Optional:* One or more components to create on the observation.
81
-
|**components[].codes**|One or more [Codings](http://hl7.org/fhir/datatypes-definitions.html#coding) to apply to the component.
82
-
|**components[].value**|The value to extract and represent in the component. For more information, see [Value type codes](#value-type-codes).
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.
53
+
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|
83
67
84
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":::
85
69
86
-
### Value type codes
70
+
### Value types
71
+
72
+
All CodeValueFhir templates' `value` element contains these elements:
73
+
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|
87
78
88
-
The supported value type codes for the MedTech service FHIR destination mapping:
79
+
These value types are supported in the MedTech service FHIR destination mapping:
89
80
90
-
### SampledData
81
+
####SampledData
91
82
92
-
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 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.
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:
93
84
94
-
| Property | Description
95
-
|--- | ---
96
-
|**DefaultPeriod**|The default period in milliseconds to use.
97
-
|**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|
98
89
99
-
### Quantity
90
+
####Quantity
100
91
101
-
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.
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:
102
93
103
-
| Property | Description
104
-
|--- | ---
105
-
|**Unit**|Unit representation.
106
-
|**Code**|Coded form of the unit.
107
-
|**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|
108
99
109
-
### CodeableConcept
100
+
####CodeableConcept
110
101
111
-
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.
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:
112
103
113
-
| Property | Description
114
-
|--- | ---
115
-
|**Text**|Plain text representation.
116
-
|**Codes**|One or more [Codings](http://hl7.org/fhir/datatypes-definitions.html#coding) to apply to the observation created.
117
-
|**Codes[].Code**|The code for the[Coding](http://hl7.org/fhir/datatypes-definitions.html#coding).
118
-
|**Codes[].System**|The system for the[Coding](http://hl7.org/fhir/datatypes-definitions.html#coding).
119
-
|**Codes[].Display**|The display for the[Coding](http://hl7.org/fhir/datatypes-definitions.html#coding).
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|
120
111
121
-
### String
112
+
####String
122
113
123
-
Represents the [string](https://www.hl7.org/fhir/datatypes.html#string) FHIR data type. This type creates a single, point in time, Observation. If new value arrives that contains the same device identifier, measurement type, and timestamp, the previous Observation is updated to the new value.
114
+
Represents the [string](https://www.hl7.org/fhir/datatypes.html#string) FHIR data type. This type creates a single, point in time, Observation. If new a value arrives that contains the same device identifier, measurement type, and timestamp, the previous Observation is updated to the new value. No other elements are defined.
0 commit comments