GSOC 24' : Validating and updating the OpenMRS patient flags module - Requirement gathering

To include the flag-tag and evaluation logic in the FHIR Flag resource, I am to use the extension mechanism provided by FHIR. This extension allows us to add custom or non-standard elements to FHIR resources while maintaining interoperability with the standard. below is example how we can map the OMRS flag model with FHIR flag resource.

{
  "resourceType": "Flag",
  "id": "flag id",
  "name": "flag name",
  "criteria": "flag criteria",
  "subject": {
    "reference": "Patient/1"
  },
  "status": "active",
  "code": {
    "text": "message"
  },
  "priority": {
    "coding": [
      {
        "system": "URL",
        "code": "p1",
        "display": "red"
      }
    ],
    "rank": 2
  },
  "note": "additional note"
  "enabled": true,
  "extension": [
    {
      "url": "URL logic ",
      "valueString": "Groovy script"
    },
    {
      "url": "URL tag",
      "valueString": "Tag details"
    }
  ]
}

CC : @wikumc @ibacher @mherman22 @jnsereko @dkayiwa

1 Like