google / android-fhir

The Android FHIR SDK is a set of Kotlin libraries for building offline-capable, mobile-first healthcare applications using the HL7® FHIR® standard on Android.
https://google.github.io/android-fhir/
Apache License 2.0
494 stars 294 forks source link

Definition Based Extraction: Support itemExtractionContext extension to update existing resource. #1799

Open PallaviGanorkar opened 1 year ago

PallaviGanorkar commented 1 year ago

Describe the solution you'd like If the element has a questionnaire-itemExtractionContext that corresponds to an existing resource or set of resources, then the intention is that the extracted content will replace those existing resources.

http://build.fhir.org/ig/HL7/sdc/extraction.html#definition-based-extraction

Please refer #1770 for more details

PallaviGanorkar commented 1 year ago

As discussed with @jingtang10 and referred to http://hl7.org/fhir/uv/sdc/STU3/extraction.html#definition-based-extraction document.

PallaviGanorkar commented 1 year ago
  1. Implementation is partially done and raised draft PR with //TODO to handle that scenario
  2. need to remove fhirPathEngine.check() from ExpressionEvaluator.evaluateXFhirEnhancement() method as FHIR SPec at http://build.fhir.org/ig/HL7/sdc/extraction.html#structuremap-based-extraction says "If the result of evaluating the FHIRPath expressions is an invalid query, that is an error. Systems SHOULD log it and continue with extraction as if the query had returned no data."