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

Cannot specialize DvText as DvCodedText when using generated POJO from template #90

Open
7 tasks
chevalleyc opened this issue Sep 29, 2020 · 1 comment
Open
7 tasks
Assignees
Labels
bug Something isn't working
Milestone

Comments

@chevalleyc
Copy link
Contributor

Steps to reproduce

(generated example is in the code base: https://github.com/ehrbase/openEHR_SDK/blob/develop/client/src/test/java/org/ehrbase/client/classgenerator/examples/virologischerbefundcomposition/definition/ProVirusCluster.java)

F.e. using template "Virologischer Befund", the analyte (openEHR-EHR-CLUSTER.laboratory_test_analyte.v1) results in ProVirusCluster class which has only

    @Path("/items[at0024]/value|value")
    private String virusValue;

however, this element could be specialized as DvCodedText f.e. to satisfy an AQL query on a specific code_string, for example this one from NUM:

select
q/items[at0024]/value/defining_code/code_string as ErregerBEZK,
x/items[at0015]/value as Datetime
from EHR e
contains COMPOSITION c
contains OBSERVATION v[openEHR-EHR-OBSERVATION.laboratory_test_result.v1]
contains ( 
CLUSTER h[openEHR-EHR-CLUSTER.laboratory_test_panel.v0] and
CLUSTER x[openEHR-EHR-CLUSTER.specimen.v1] and
CLUSTER q[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1])

Expected result

There should be generated methods to support the specialization with a terminology ID and a code_string.

Success criteria

  • The defect has been fixed
  • The defect is checked by an unit or an integration test (Robot)
  • Merge Request approved
  • Unit tests passed
  • Build without errors
  • Release notes prepared
  • Runtime warnings
@chevalleyc chevalleyc added the bug Something isn't working label Sep 29, 2020
@stefanspiska stefanspiska added this to the 1.0 milestone Jul 26, 2021
@birgerhaarbrandt
Copy link
Contributor

birgerhaarbrandt commented Aug 2, 2021

@birgerhaarbrandt checks options for endusers regarding the exposed attributes (due to 08/09/2021)

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

3 participants