Condition resource

The "edit" approach for any condition resource will be the same. So this approach applies for "updation" of any data point that is modelled as condition 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 "active" for the updated resource

   

Below is a sample for updating bg diabetes type with identifier "BBBBB-BBBBB-BBBBB":

   

Step Description BG diabetes type Registered TimeStamp Type Identifier
1 Bg diabetes type value is entered Diabetes mellitus type 1 2020-06-24T13:00:00Z manual entry BBBBB-BBBBB-BBBBB
2 The entry is updated Diabetes mellitus type 2 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": "Condition",
"id": "id-bg-diabetes-type",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/condition"
]
},
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/registered-timestamp",
"valueDateTime": "2020-06-24T13:16:00Z"
}
],
{
"system": "http://roche.com/fhir/rdc/sid/condition/mysugr",
"value": "BBBBB-BBBBB-BBBBB"
}
],
"clinicalStatus": "active",
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "44054006",
"display": "Diabetes mellitus type 2 (disorder)"
}
]
},
"subject": {
"reference": "Patient/14435e70-25d8-4db4-8941-9a191735b31e"
}
}
}
]
}