Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix JSON Rendering in UI #1813

Closed
juliangruendner opened this issue Jun 21, 2024 · 0 comments
Closed

Fix JSON Rendering in UI #1813

juliangruendner opened this issue Jun 21, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@juliangruendner
Copy link
Contributor

juliangruendner commented Jun 21, 2024

The UI renders a broken JSON representation of resources.

Specifically arrays are missing the “," between the items in the array.

Example

IS:

"category": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                    "code": "laboratory",
                    "display": "Laboratory"
                }
                {
                    "system": "http://loinc.org",
                    "code": "26436-6",
                    "display": "Laboratory studies (set)"
                }
            ]
        }
    ]

SHOULD:

"category": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                    "code": "laboratory",
                    "display": "Laboratory"
                },
                {
                    "system": "http://loinc.org",
                    "code": "26436-6",
                    "display": "Laboratory studies (set)"
                }
            ]
        }
    ]

Full example resource as input:

{
    "resourceType": "Observation",
    "id": "VHF-MIXED-TEST-CASE-0001-a-E-1-OL-1",
    "meta": {
        "versionId": "12002",
        "lastUpdated": "2024-06-18T07:33:25.359Z",
        "profile": [
            "https://www.medizininformatik-initiative.de/fhir/core/modul-labor/StructureDefinition/ObservationLab"
        ]
    },
    "identifier": [
        {
            "type": {
                "coding": [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                        "code": "OBI"
                    }
                ]
            },
            "system": "https://VHFMIXEDTESTCASEA.de/befund",
            "value": "VHF-MIXED-TEST-CASE-0001-a-E-1-OL-1",
            "assigner": {
                "identifier": {
                    "system": "https://www.medizininformatik-initiative.de/fhir/core/NamingSystem/org-identifier",
                    "value": "VHFMIXEDTESTCASEA"
                }
            }
        }
    ],
    "status": "final",
    "category": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                    "code": "laboratory",
                    "display": "Laboratory"
                },
                {
                    "system": "http://loinc.org",
                    "code": "26436-6",
                    "display": "Laboratory studies (set)"
                }
            ]
        }
    ],
    "code": {
        "coding": [
            {
                "system": "http://loinc.org",
                "code": "33762-6"
            }
        ],
        "text": "NT-proBNP SerPl-mCnc"
    },
    "subject": {
        "reference": "Patient/VHF-MIXED-TEST-CASE-0001-a"
    },
    "encounter": {
        "reference": "Encounter/VHF-MIXED-TEST-CASE-0001-a-E-1"
    },
    "effectiveDateTime": "2021-01-01T01:11:00+01:00",
    "valueQuantity": {
        "value": 111.11,
        "unit": "picogram per milliliter",
        "system": "http://unitsofmeasure.org",
        "code": "pg/mL"
    }
}
@alexanderkiel alexanderkiel added the bug Something isn't working label Jun 24, 2024
@alexanderkiel alexanderkiel added this to the v0.28.0 milestone Jun 24, 2024
@alexanderkiel alexanderkiel changed the title UI renders json incorrectly Fix JSON Rendering in UI Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants