-
Notifications
You must be signed in to change notification settings - Fork 0
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
Unable to generate medication card for CHUV010 (after export with bad GLN) #58
Comments
It seems to be an issue with the GLN identifier:
That won't work: {
"system": "urn:oid:2.51.1.3",
"value": "AbCDefgH1111x"
} |
OK - thanks. That is just bad test data. Sorry I missed it in the log. |
In the logs, the validation messages are dumped before the exception "The PMLC generator failed to produce a valid document". Now I need to understand why the document was accepted, since it was invalid. |
Should a bad GLN get rejected when the MTP/PADV is handled? |
Sure, the same Practitioner definition applies (or should apply, since it was not the case) to all documents: https://build.fhir.org/ig/CARA-ch/ch-emed-epr/StructureDefinition-ch-emed-epr-practitioner.html |
The medication card was generated until I added one more MTP (30485b8b-e808-4eac-98e8-ca6904acf4cd) which triggered this error.
This is the EPRIK transaction: https://test.ahdis.ch/eprik-cara/index.html#/transaction/45143092-7d5b-42f4-a137-26c93ee74e37
Caused by: ch.qligier.hug.pmp.common.error.exception.InvalidDocumentException: The PMLC generator failed to produce a valid document
at ch.qligier.hug.pmp.emed.ondemand.OnDemandMedicationCardAssembler.assemble(OnDemandMedicationCardAssembler.java:190)
at ch.qligier.hug.pmp.transaction.operation.retrieve.coprocessor.GenerateOdDocumentCoprocessor.generatePmlcDocument(GenerateOdDocumentCoprocessor.java:205)
... 98 common frames omitted
The text was updated successfully, but these errors were encountered: