Gravitate-Health / focusing-manager

Apache License 2.0
1 stars 0 forks source link

Invalid FHIR bundle returned #5

Closed jkiddo closed 1 year ago

jkiddo commented 1 year ago

When invoking the focus manager with e.g. https://fosps.gravitatehealth.eu/focusing/focus/bundlepackageleaflet-2d49ae46735143c1323423b7aea24165?patientId=5ecb793d-e4e1-4aab-b734-36f6bad06b1e&lenses=lens-selector-mvp2_pregnancy (IPS omitted for brevity) - the bundle returned is not valid FHIR for e.g. PackagedProductDefinitionas the quantity of the pagageproductdefinition with id ppd-a223062bf3faf7acb3e6e80760fa4e91 is set to "quantity": 28.0,- but quantity is typed as an integer and 28.0 is not an integer - its a decimal (https://hl7.org/fhir/packagedproductdefinition-definitions.html#PackagedProductDefinition.packaging.quantity). result.txt

aalonsolopez commented 1 year ago

It's something that I can't test because when I try that endpoint I get the quantity as an Integer, as you can see in the next image

imagen

jkiddo commented 1 year ago

You're right - there's a bug in the HAPI FHIR framework. I'll file a bug report

aalonsolopez commented 1 year ago

Nice. I'll assign this issue to @joofio, and if he consider to close the issue from this repo, for me it's perfect.

jkiddo commented 1 year ago

@joofio cannot fix this - and I've found that its not directly HAPI related. Its a class loader thing, I think.