synthetichealth / synthea

Synthetic Patient Population Simulator
https://synthetichealth.github.io/synthea
Apache License 2.0
2.19k stars 655 forks source link

Quick Fix for US Core Pulse Ox error #1456

Closed dehall closed 6 months ago

dehall commented 6 months ago

Fix for the US Core Pulse Ox error:

Validation of exported FHIR bundle failed: Observation.code.coding:PulseOx: minimum required = 1, but only found 0 (from http://hl7.org/fhir/us/core/StructureDefinition/us-core-pulse-oximetry)

That profile requires both these two codes

Tested out locally with the below change to ensure all patients went through the sepsis module:

--- a/src/main/resources/modules/sepsis.json
+++ b/src/main/resources/modules/sepsis.json
@@ -16,7 +16,7 @@
   "states": {
     "Initial": {
       "type": "Initial",
-      "direct_transition": "Age_Guard"
+      "direct_transition": "Sepsis"
     },