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

OPT.nodes: stores unrelated nodes for the same path #176

Open
ppazos opened this issue Oct 22, 2023 · 1 comment
Open

OPT.nodes: stores unrelated nodes for the same path #176

ppazos opened this issue Oct 22, 2023 · 1 comment
Labels

Comments

@ppazos
Copy link
Collaborator

ppazos commented Oct 22, 2023

The problem of OperationalTemplate.nodes is the key is an archetype path.

Then if we want to get nodes by path, two nodes from different archetypes could have the same path and will be returned. Check the OPT below, for the path "/content[archetype_id=openEHR-EHR-OBSERVATION.saturacion_de_oxigeno.v1]/data[at0001]/events[at0002]/data[at0003]/items[at0005]/value" gets ObjectNodes with internal nodes for blood pressure and oxymetry:

https://github.com/ppazos/openehr-basic/blob/master/opts/monitoreo_de_signos_vitales.opt

The other strange thing is that if opt.getNodes() is called using the template path, it returns results, event if the paths used as keys are archetype paths.

Need to debug and check if there is an issue somewhere.

@ppazos ppazos added the test label Oct 22, 2023
@ppazos
Copy link
Collaborator Author

ppazos commented Jan 15, 2024

Retest to check if this commit doesn't fix the issue: 2692f9d

Also create a test for this.

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

No branches or pull requests

1 participant