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

HealthInsurance example did not match provided Schema and sources #3

Open
pcvolkmer opened this issue Dec 11, 2024 · 0 comments
Open

Comments

@pcvolkmer
Copy link

pcvolkmer commented Dec 11, 2024

Patient property healthInsurance in sample data contains:

(https://dnpm-dip.net/api/mtb/fake/data/patient-record?format=application/json%2Bv2)

...
"healthInsurance": {
  "extId": {
    "value": "aok-ik",
    "system": "IK"
  },
  "display": "AOK",
  "type": "Organization"
}
...

but code shows a reference, not object:

healthInsurance: Option[Reference[Organization]],

The code matches provided schema file:
(https://dnpm-dip.net/api/mtb/etl/patient-record/schema?format=application/json%2Bv2)

...
"healthInsurance" : {
  "$ref" : "#Reference"
}
...

Reference is defined in schema as (without extId):

"Reference": {
  "$anchor": "Reference",
  "properties": {
    "id": {
      "type": "string"
    },
    "display": {
      "type": "string"
    },
    "type": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "id"
  ]
}

and in code (containing extId):

final case class Reference[+T]
(
id: Option[Id[T]],
extId: Option[ExternalId[T]],
uri: Option[URI],
display: Option[String]
)

Is the sample data out of date or anything else missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant