Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

Encounters section is null for CCD R1.1 when entries required templateId is not present in document #136

Open
StanislauParuchnik opened this issue Feb 7, 2019 · 2 comments

Comments

@StanislauParuchnik
Copy link

Hi, I get null when I call getEncountersSection() on ContinuityOfCareDocument object, though if I add necessary templateId=2.16.840.1.113883.10.20.22.2.22.1 entry getEncountersSection() returns an object.

As far as I'm aware CCD R1.1 specification doesn't restrict encounters section to have entries:
MAY contain zero or one [0..1] Encounters Section (entries optional) (templateId:2.16.840.1.113883.10.20.22.2.22) (CONF:9457).

Attaching sample maven project with test class which demonstrates this behavior.
encounters-demo.zip

@swmuir
Copy link
Contributor

swmuir commented Feb 7, 2019

if there is no encounter section then a null is expected so not sure what you were expecting

@StanislauParuchnik
Copy link
Author

there is an encounter section, there is no addtional templateId=2.16.840.1.113883.10.20.22.2.22.1 within it and according to CCD R1.1 spec it is not required.

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

No branches or pull requests

2 participants