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

Find Medication List - Exception with XDSDocumentEntryServiceStartFrom #8

Open
oliveregger opened this issue Mar 2, 2022 · 0 comments

Comments

@oliveregger
Copy link
Member

I'm trying to get the Active Medication for the Find Medication List while using the
XDSDocumentEntryServiceStartFrom parameter. I can create the On Demand Document:

<ns2:Slot name="$XDSDocumentEntryServiceStartFrom">ns2:ValueListns2:Value20010101</ns2:Value>

This seems right.
Yep, trying to format an Instant with a DateFormat instead of a DateTimeFormatter.
at java.base/java.text.DateFormat.format(DateFormat.java:338)
at java.base/java.text.Format.format(Format.java:158)
at ch.qligier.hug.pmp.emed.generators.ProcessingCommentTextGenerator.describeDateParameter(ProcessingCommentTextGenerator.java:151)
at ch.qligier.hug.pmp.emed.generators.ProcessingCommentTextGenerator.describeQueryParameters(ProcessingCommentTextGenerator.java:123)
at ch.qligier.hug.pmp.emed.generators.ProcessingCommentTextGenerator.generateProcessingCommentText(ProcessingCommentTextGenerator.java:60)
at ch.qligier.hug.pmp.emed.generators.OdMedicationDocumentGenerator.assemble(OdMedicationDocumentGenerator.java:105)
at ch.qligier.hug.pmp.transactions.pmp.retrieve.coprocessors.GenerateOdDocumentCoprocessor.generateOnDemandCceDocument(GenerateOdDocumentCoprocessor.java:77)
... 89 common frames omitted

In the logs, I also see:
CdaMedicationCardGenerator : Validation error
InvalidDocumentException: Schematron error: {dtr1-2-IVL_TS.CH.TZ: time low value SHALL include a time zone if more precise than to the day} in {/hl7:ClinicalDocument/hl7:component/hl7:structuredBody/hl7:component/hl7:section/hl7:entry/hl7:substanceAdministration/hl7:effectiveTime}

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

No branches or pull requests

1 participant