GithubHelp home page GithubHelp logo

dnpm-dip-api-gateway's Introduction

dnpm-dip-api-gateway's People

Contributors

lucienclin avatar

Watchers

Oliver Kohlbacher avatar  avatar Timo Sachsenberg avatar  avatar

dnpm-dip-api-gateway's Issues

Generated fake patient mtb data does not match generated JSON schema for coding

The generated fake patient mtb data does not match generated JSON schema.

Sources

Schema file and fake data are generated from example DNPM:DIP source:

Comparison

This will compare an example part of Schema with generated mtb data.

Definitions in schema

For example, a Patient is defined as:

"patient": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
...
        "gender": {
          "$ref": "#/definitions/Gender"
        },
        "birthDate": {
          "$ref": "#/definitions/YearMonth"
        },
 ...
    }

Gender is defined as:

    "Gender": {
      "type": "string",
      "enum": [
        "female",
        "male",
        "other",
        "unknown"
      ]
    },

Generated fake patient mtb data

Same part in generated fake patient mtb data does not use a string but an object:

  "patient": {
    "id": "fbd23d0b-f81b-4a2f-b53b-e93871069cfd",
    "gender": {
      "code": "male",
      "display": "Männlich",
      "system": "Gender"
    },
    "birthDate": "1977-01-01",
  ...
  }

Conclusion

The gender (and all other object values using a coding scheme) should use some kind of schema definition containing code, display and system.

MTB model contains diagnoses.code but diagnoses.icd10 in schema

The JSON schema uses diagnoses.icd10 but data model uses diagnoses.code

Sources

Schema file and fake data are generated from example DNPM:DIP source:

Comparison

Schema says:

...
"MTBDiagnosis": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
...
        "id": {
          "$ref": "#/definitions/Id"
        },
        "icd10": {                                                     <--- Here!
          "$ref": "#/definitions/Coding"
        },
...

but example fake data uses:

...
  "diagnoses": [
    {
      "id": "2b478ee3-f5c0-4429-8367-7215b1908a19",
      "patient": {
        "id": "fbd23d0b-f81b-4a2f-b53b-e93871069cfd",
        "type": "Patient"
      },
      "recordedOn": "2004-05-15",
      "code": {                                                        <---- Here!
        "code": "C76.7",
        "display": "Bösartige Neubildung: Sonstige ungenau bezeichnete Lokalisationen",
        "system": "http://fhir.de/CodeSystem/bfarm/icd-10-gm",
        "version": "2024"
      },
...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.