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 in webtemplate from Template and in example Composition from Template #916

Open
6 tasks
sasurfer opened this issue Jun 24, 2022 · 1 comment
Open
6 tasks
Labels
bug Something isn't working

Comments

@sasurfer
Copy link

Configuration information

  • EHRbase version:
  • openEHR_SDK version:
  • Archie version:
  • PostgreSQL version:
  • Java Runtime version:
  • Operating System version:
    "archie": "2.0.1", "ehrbase_version": "0.21.0", "openehr_sdk": "1.19.0"
    "Java": "Oracle Corporation /usr/local/openjdk-11", "JavaVM": "OpenJDK 64-Bit Server VM Oracle Corporation 11.0.15+10", "OS": "Linux amd64 5.11.0-37-generic", "activeProfiles": ["docker"]

Steps to reproduce

Load the following template:
template.zip

Get an example Composition with that template or get the webtemplate form of the template

Actual result

failure 400 {"error":"Bad Request","message":"cannot construct RMObject because of unknown constraint name NOT_SET full constraint CComplexObject: NOT_SET[null]"}

Expected result (Acceptance Criteria)

expected result is an example composition/webtemplate.
(The template has been created with the Template Designer https://tools.openehr.org/designer/ that can export it also in webtemplate form without errors)

Definition of Done

  • The defect is checked by an unit or an integration test (Robot)
  • Merge Request approved
  • Unit tests passed
  • Build without errors
  • Release notes prepared
  • No additional runtime warnings
@sasurfer sasurfer added the bug Something isn't working label Jun 24, 2022
@sasurfer
Copy link
Author

sasurfer commented Jul 6, 2022

Update: The "NOT_SET" is in the OPT in one rm_object_type field. The OPT is the results of an export from the Archetype Designer(https://tools.openehr.org/designer/). If I change it to "CLUSTER" then everything works (both the example from template and the webtemplate from template). So, the question now is if "NOT_SET" is a valid value still unsupported by EHRBase or an artifact of the designer when the user doesn't set the rm type.

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

No branches or pull requests

1 participant