medizininformatik-initiative / fhir-ontology-generator

3 stars 3 forks source link

Adjust UI profile generation: ValueSetUrl instead of expanded value set #37

Closed juliangruendner closed 3 months ago

juliangruendner commented 4 months ago

The ui profile generation should be adjusted to contain the valueSet url instead of the expanded value set itself for each attribute or value of type concept.

Example

IS:

{
"selectableConcepts": [
                {
                    "code": "C76.2",
                    "display": "Abdomen o.n.A.",
                    "system": "http://hl7.org/fhir/sid/icd-o-3",
                    "version": "Erste_Revision"
                }
            ]
}

SHOULD:

{
"selectableConcepts": [
                 "http://hl7.org/fhir/sid/icd-o-3"
            ]
}

Example Bioprobe

{
    "attributeDefinitions": [
        {
            "allowedUnits": [],
            "attributeCode": {
                "code": "festgestellteDiagnose",
                "display": "Festgestellte Diagnose",
                "system": "http://hl7.org/fhir/StructureDefinition",
                "version": null
            },
            "max": null,
            "min": null,
            "optional": true,
            "precision": 1,
            "referenceCriteriaSet": "http://fdpg.mii.cds/CriteriaSet/Diagnose/icd-10-gm",
            "selectableConcepts": [],
            "type": "reference"
        },
        {
            "allowedUnits": [],
            "attributeCode": {
                "code": "icd-o-3",
                "display": "icd-o-3",
                "system": "http://hl7.org/fhir/StructureDefinition",
                "version": null
            },
            "max": null,
            "min": null,
            "optional": true,
            "precision": 1,
            "referenceCriteriaSet": null,
            "selectableConcepts": [
                 "http://hl7.org/fhir/sid/icd-o-3"
            ],
            "type": "concept"
        }
    ],
    "name": "Bioprobe",
    "timeRestrictionAllowed": true,
    "valueDefinition": null
}