Skip to content

Instantly share code, notes, and snippets.

@p2
Created July 10, 2015 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save p2/4680807b58e4f86e099f to your computer and use it in GitHub Desktop.
Save p2/4680807b58e4f86e099f to your computer and use it in GitHub Desktop.
Example 🔥FHIR MedicationPrescription codings

Example FHIR codings (Basic Review)

Example MedicationStatement resources on how certain scenarios can be stated. Only the parts relevant to the dosage are shown, Patient and Medication references as well as dates should be present as well.


Medication is taken, as directed:

{
    "resourceType": "MedicationStatement",
    ...
    "status": "in-progress",
    "wasNotGiven": false
}

Medication is taken but differently than directed:

{
    "resourceType": "MedicationStatement",
    ...
    "status": "in-progress",
    "wasNotGiven": false,
    "modifierExtension": [{
        "url": "http://fhir-registry.smarthealthit.org/StructureDefinition/taking-differently-than-directed",
        "valueBoolean": true
    }]
}

Medication is not taken:

{
    "resourceType": "MedicationStatement",
    ...
    "status": "completed",
    "wasNotGiven": true
}

Not sure whether medication is taken:

{
    "resourceType": "MedicationStatement",
    ...
    "status": "in-progress",
    "wasNotGiven": true,
    "modifierExtension": [{
        "url": "http://fhir-registry.smarthealthit.org/StructureDefinition/not-sure-whether-taken-or-not",
        "valueBoolean": true
    }]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment