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

Error when constraint in template is not binded #594

Closed
ppazos opened this issue Sep 16, 2021 · 1 comment · Fixed by ehrbase/openEHR_SDK#262
Closed

Error when constraint in template is not binded #594

ppazos opened this issue Sep 16, 2021 · 1 comment · Fixed by ehrbase/openEHR_SDK#262
Assignees
Labels
bug Something isn't working

Comments

@ppazos
Copy link
Contributor

ppazos commented Sep 16, 2021

Steps to reproduce

  1. Use the GECCO_Personendaten template https://ckm.highmed.org/ckm/templates/1246.169.1134
  2. That template uses the openEHR-EHR-CLUSTER.person_birth_data_iso.v0
    archetype, which has some external constraints defined which are not binded with a terminology https://ckm.highmed.org/ckm/archetypes/1246.145.1356
  3. Generated a test composition to commit
    GECCO_Personendaten_20210915101000_000001_1.json.txt (note for the corresponding node at0003 of the openEHR-EHR-CLUSTER.person_birth_data_iso.v0 node, there is no terminology to generate the code from, so a random one was generated.

Note: I asked the modelers if the missing terminology bindings shouldn't be in the archetype and then included in the template https://ckm.highmed.org/ckm/#showAComment_1246.160.160_1246.145.1356

Actual result

Result:

{
  "error": "java.lang.IllegalArgumentException",
  "status": "Bad Request"
}

Console log:

2021-09-15 22:12:48.458 WARN 22258 --- [nio-8080-exec-6] o.e.v.constraints.wrappers.CDvCodedText : Constraint reference is not supported, path: /content[openEHR-EHR-ADMIN_ENTRY.person_data.v0]/data[at0001]/items[openEHR-EHR-CLUSTER.person_birth_data_iso.v0]/items[at0003]

Expected result (Acceptance Criteria)

Not sure if this case is supported or the error should say something about the OPT missing some required data, because this might not be an issue of the composition but of the template. Though I don't know if we made any technical design decision around this case.

@ppazos
Copy link
Contributor Author

ppazos commented Oct 16, 2021

@subigre was the reference to the SDK fix commits updated in the EHRBASE POM file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants