opensrp / fhircore

FHIR Core / OpenSRP 2 is a Kotlin application for delivering offline-capable, mobile-first healthcare project implementations from local community to national and international scale using FHIR and WHO Smart Guidelines on Android.
https://smartregister.org
Apache License 2.0
53 stars 41 forks source link

Enhancement to Extraction of FHIR resources & Generate Observation Resources - Device & DeviceDefinition #906

Closed mwkhan1983 closed 2 years ago

mwkhan1983 commented 2 years ago

Name of feature to enhance ref: #599

Describe the enhancement Step 2 To be done on a separate ticket

Sample resources to be extracted and generated

  1. Service Request
{
  "resourceType": "ServiceRequest",
  "status": "active",
  "intent": "original-order",
  "subject": {
    "reference": "Patient/3536"
  },
  "basedOn": [
    {
      "reference": "QuestionnaireResponse/XXX"
    }
  ],
  "occurrenceDateTime": "2021-05-12T16:16:00-07:00",
  "reasonCode": [
    {
      "coding": [
        {
          "system": "http://snomed.info/sct",
          "code": "86859003",
          "display": "Glucose-6-phosphate dehydrogenase deficiency anaemia analysis"
        }
      ],
      "text": "G6PD Test"
    }
  ]
}
pld commented 2 years ago

Does mean it will save a new Device everytime? I don't know if that's the best approach because the Device resource is meant to track the individual instances of a device, and this approach would create multiple resources for the same individual instance

f-odhiambo commented 2 years ago

@mwkhan1983 perhaps we should repurpose this ticket to handle control mode as it will be the one handling device serial/ID. Let's chat about this

pld commented 2 years ago

@f-odhiambo let's please create a new ticket for that (and close this if appropriate), it will make the history easier to follow, thanks

f-odhiambo commented 2 years ago

@f-odhiambo let's please create a new ticket for that (and close this if appropriate), it will make the history easier to follow, thanks

Cool will do so . Makes sense

f-odhiambo commented 2 years ago

Closing this ticket and will add a Control mode ticket to address

  1. Capture Device Serial number and save to the Device resource
  2. Link DeviceDefinition while saving the Device details

CC @pld @mwkhan1983