medizininformatik-initiative/fhir-ontology-generator

Change Fall to one criterion and class as attribute

juliangruendner opened this issue · 0 comments

Change Fall to one criterion and class as attribute

Querying metadata would look something like this:

{
  "name": "Fall",
  "resource_type": "Encounter",
  "module": {
    "code": "mii-cds-Fall",
    "display": "Fall"
  },
  "context": {
    "system": "fdpg.mii.cds",
    "code": "Fall",
    "display": "Fall",
    "version": "1.0.0"
  },
  "term_codes": [
    {
      "system": "fdpg.mii.cds",
      "code": "Fall",
      "display": "Fall"
    }
  ],
  "time_restriction_defining_id": "Encounter.period",
  "attribute_defining_id_type_map": {
    "Encounter.class": "",
    "Encounter.serviceType.coding:Fachabteilungsschluessel": "",
    "Encounter.serviceType.coding:ErweiterterFachabteilungsschluessel": "",
    "Encounter.type:Kontaktebene": "",
    "Encounter.type:KontaktArt": ""
  }
}

Note that the term_codes is set explicitedly rather than generated, specifying the criterion and its code directly