medizininformatik-initiative / kerndatensatzmodul-mikrobiologie

1 stars 0 forks source link

Testdaten invalide #5

Open SevKohler opened 7 months ago

SevKohler commented 7 months ago

Hey,

Ich habe es leider öfters das eure Examples nicht validieren (HAPI + Online validierung von Simplifier). Hier ein Beispiel vom Simplifier: image Ich habe das jetzt für Empfindlichkeit mal für euch korrigiert, weil ich von den Github repos erfahren habe. Empfindlichkeit, Beispiel:

{
  "resourceType": "Observation",
  "id": "Example-empfindlichkeit",
  "meta": {
    "profile": [
      "https://www.medizininformatik-initiative.de/fhir/modul-mikrobio/StructureDefinition/empfindlichkeit"
    ]
  },
  "identifier": [
    {
      "type": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
            "code": "OBI"
          }
        ]
      },
      "system": "https://example.org/fhir/sid/test-lab-results",
      "value": "59826-8_1234567890",
      "assigner": {
        "identifier": {
          "system": "https://www.medizininformatik-initiative.de/fhir/core/CodeSystem/core-location-identifier",
          "value": "DIZ-ID"
        }
      }
    }
  ],
  "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)"
        },
        {
          "system": "http://loinc.org",
          "code": "18725-2",
          "display": "Microbiology studies"
        }
      ]
    }
  ],
  "code": {
    "coding": [
      {
        "system": "http://loinc.org",
        "code": "18868-0",
        "display": "Aztreonam [Susceptibility]"
      }
    ]
  },
  "subject": {
    "reference": "Patient/example"
  },
  "effectiveDateTime": "2018-11-20T12:05:00+01:00",
  "valueQuantity": {
    "system": "http://unitsofmeasure.org",
    "value": 32,
    "code": "mg/l",
    "unit": "mg/l"
  },
  "specimen": {
"reference": "Specimen/blood-specimen",
        "display": "blood specimen in aerobic blood culture bottle"
  },
  "interpretation":[ {
    "coding": [
      {
        "system": "https://www.medizininformatik-initiative.de/fhir/modul-mikrobio/CodeSystem/mii-vs-mikrobio-eucast-eucast",
        "code": "R",
        "display": "Resistant"
      }
    ]
  }]
}

Ich mach euch einfach in Zukunft Github issues, leider war mir das bis dato nicht bekannt sonst hätte ich sämtliche korrekturen hier vermerken können :(

jpwiedekopf commented 5 months ago

See #12:

The valueQuantity should be changed to:

"valueQuantity": {
  "system": "http://unitsofmeasure.org",
  "value": 32,
  "code": "mg/L",
  "unit": "mg/L"
},

to be compliant with the ValueSet bound to the path (note upper-case L).

rinaldie commented 5 months ago

Thanks! the valueQuantity was changed as proposed