Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

When the PulsoxymetrieObservationConverter returns an empyt obs an infinite loop is executed #424

Open
SevKohler opened this issue Aug 4, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@SevKohler
Copy link
Contributor

SevKohler commented Aug 4, 2021

I already fixed this by adding a Nullflavour instead of nothing, also the modelers will change the value in order to support the data absent reason.
Nevertheless, an infinite loop should not happen here, instead an error or else is to be returned when mapping this mapping.
The fhir bridge is just executing a loop which you will see when debuging, im not sure if this is an error of ehrbase or the SDK client.

{
    "resourceType": "Observation",
    "id": "6fa9e2be-d15a-4e77-81fc-056dda521875",
    "meta": {
        "profile": [
            "https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/oxygen-saturation"
        ]
    },
    "status": "final",
    "category": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                    "code": "vital-signs"
                }
            ]
        }
    ],
    "code": {
        "coding": [
            {
                "system": "http://loinc.org",
                "code": "2708-6",
                "display": "Oxygen saturation in Arterial blood"
            }
        ],
        "text": "Oxygen saturation in Arterial blood"
    },
    "subject": {
        "identifier": {
            "system": "urn:ietf:rfc:4122",
            "value": "297a5992-333e-4e44-a93b-15262e2e8db5"
        }
    },
    "effectiveDateTime": "2020-09-21",
    "dataAbsentReason": {
        "coding": [
            {
                "system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
                "code": "unknown",
                "display": "Unknown"
            }
        ]
    }
}
@SevKohler SevKohler added the bug Something isn't working label Aug 4, 2021
@SevKohler
Copy link
Contributor Author

@subigre see here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants