Goal resource

The "edit" approach for any goal resource will be the same. So this approach applies for "updation" of any data point that is modelled as goal resource.

  • extension registered-timestamp - will have the timestamp of the update made on the entry
  • identifier - will have the same unique identifier with which it has been ingested already
  • status - will always be "planned" for the updated resource

   

Below is a sample for updating a body weight goal range with identifier "BBBBB-BBBBB-BBBBB":

   

Step Description Weight lower range Weight higher range Registered TimeStamp Type Identifier
1 Target lower and higher range goal values are entered 55 75 2020-06-24T13:00:00Z manual entry BBBBB-BBBBB-BBBBB
2 The entry is updated 50 80 2020-06-24T13:16:00Z manual entry BBBBB-BBBBB-BBBBB

The following bundle is generated on Step 2.

{
"resourceType": "Bundle",
"id": "1318898c-3553-4643-95cd-4f9884ce0b52",
"type": "message",
"entry": [
{
"resourceType": "MessageHeader",
"id": "id-messageHeader",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/message-header"
]
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/gdpr-controller",
"valueString": "<GDPR controller>"
}
],
"event": {
"system": "http://roche.com/fhir/rdc/message-type",
"code": "new-bundle",
"display": "New bundle generated"
},
"timestamp": "2020-06-24T13:00:16+00:00",
"source": {
"name": "mySugrApp",
"software": "mySugrBackend",
"version": "x.x",
"endpoint": "https://uudev-internal.rochedc.accentureanalytics.com/fhirmsg/rdc/v1.0.0/$process-message"
}
}
},
{
"resourceType": "Device",
"id": "id-device",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/phg-device"
]
},
"status": "active",
"type": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cdf",
"code": "cdf.dev.im",
"display": "Manual interface"
}
]
},
"manufacturer": "mySugr",
"model": "mySugrApp",
"version": "x.x"
}
},
{
"resourceType": "DeviceComponent",
"id": "id-deviceComponent-smartPhone",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/phd-devicecomponent"
]
},
"system": "http://roche.com/fhir/rdc/sid/device-identifier",
"value": "mySugrApp/712/450274815"
},
"type": {
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "smartPhone",
"display": "Smart Phone"
}
]
},
"lastSystemChange": "2020-06-24T13:16:00+00:00",
"source": {
"reference": "Device/id-device"
},
{
"coding": [
{
"system": "http://hl7.org/fhir/specification-type",
"code": "serial-number",
"display": "Serial Number"
}
]
},
"productionSpec": "450274815"
},
{
"coding": [
{
"system": "http://hl7.org/fhir/specification-type",
"code": "unspecified",
"display": "Unspecified Production Specification"
}
]
},
"productionSpec": "mySugrApp"
},
{
"coding": [
{
"system": "http://hl7.org/fhir/specification-type",
"code": "part-number",
"display": "Part Number"
}
]
},
}
]
}
},
{
"resourceType": "Goal",
"id": "id-goal-body-weight",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/goal"
]
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/registered-timestamp",
"valueDateTime": "2020-06-24T13:16:00Z"
}
],
{
"system": "http://roche.com/fhir/rdc/sid/goal/mysugr",
"value": "BBBBB-BBBBB-BBBBB"
}
],
"status": "planned",
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "patientTargetRange",
"display": "Patient Target Range"
}
]
},
"subject": {
"reference": "Patient/eec0ef84-a64f-4ad1-bae0-e8f17e57f639"
},
"target": {
"measure": {
"coding": [
{
"system": "http://loinc.org",
"code": "29463-7",
"display": "Body weight"
}
]
},
"low": {
"value": 50,
"unit": "kg",
"system": "http://unitsofmeasure.org",
"code": "kg"
},
"high": {
"value": 80,
"unit": "kg",
"system": "http://unitsofmeasure.org",
"code": "kg"
}
}
}
}
}
]
}