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

"Retrieve an example of composition" always returns category 431:persistent instead of the valid OPT category #897

Open
6 tasks
xurxogr opened this issue Jun 6, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@xurxogr
Copy link
Contributor

xurxogr commented Jun 6, 2022

Configuration information

  • EHRbase version: 0.21.1
  • openEHR_SDK version: 1.19.0
  • Archie version: 2.0.1
  • PostgreSQL version: PostgreSQL 13.4 on x86_64-pc-linux-musl, compiled by gcc (Alpine 10.3.1_git20210424) 10.3.1 20210424, 64-bit
  • Java Runtime version: Oracle Corporation 11.0.15+10
  • Operating System version: Linux amd64 4.14.273-207.502.amzn2.x86_64

Steps to reproduce

Upload a template that contains a composition of category Episodic (435) or Event (433).
Get sample composition from template using ECIS api {{ecis_api_uri}}/template/:template_id/example?format=FLAT

Actual result

Category returned: "persistent" with code 431

{
    "test_event/coded_text|code": "431",
    "test_event/coded_text|value": "persistent",
    "test_event/coded_text|terminology": "openehr",
    "test_event/category|terminology": "openehr",
    "test_event/category|value": "persistent",
    "test_event/category|code": "431",
   ... other fields
}

Expected result (Acceptance Criteria)

Category returned: "event" with code 433 or "episodic" with code 435

{
    "test_event/coded_text|code": "433",
    "test_event/coded_text|value": "event",
    "test_event/coded_text|terminology": "openehr",
    "test_event/category|terminology": "openehr",
    "test_event/category|value": "event",
    "test_event/category|code": "433",
   ... other fields
}

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
@xurxogr xurxogr added the bug Something isn't working label Jun 6, 2022
@xurxogr
Copy link
Contributor Author

xurxogr commented Jun 6, 2022

Attached Template "test_event". It just contains a composition archetype of category event

Line 95: <code_list>433</code_list>

test_event.opt.txt

@vladislavploaia
Copy link
Contributor

Hello @xurxogr!
Issue is under analysis.
Will return in case of any updates.

@vladislavploaia
Copy link
Contributor

Internal bug reported.
JIRA: https://jira.vitagroup.ag/browse/CDR-432

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

2 participants