arkhn / fhir-river

Live ETL pipeline to standardize Health Data into FHIR.
Apache License 2.0
42 stars 4 forks source link

Use the hapi narrative generator to complete the Resource.text attribute #657

Closed nriss closed 2 years ago

nriss commented 3 years ago

Problem

When trying to validate a resource, a warning is generated by hapi because the narrative (Resource.text) is not completed.

According to the FHIR Doc : Guideline: A resource should have narrative for robust management

Implementation

The easiest solution would be to use the Automatic Narrative Generator proposed by hapi

Discussed with @simonvadee and @MiskoG

MiskoG commented 3 years ago

Thanks for the issue @nriss ! I suggest that we define a basic HTML template, and a script that would fill it based on each ressource content 💪

MiskoG commented 3 years ago

@nriss Actually, I saw that once loaded into our FHIR server, HAPI seems to automatically add a narrative

image

Or maybe it's just the HAPI client doing it while reading the resource ?

nriss commented 3 years ago

Yeah I also see that! I think it is added automatically when we push the resources, that seems to be perfect!

I think HAPI is generating this array automatically with the ElementDefinition marked as isSummary (https://www.hl7.org/fhir/elementdefinition.html) in the concerned StructureDefinition

nriss commented 2 years ago

@MiskoG @simonvadee do you agree to close this issue ?

I think we can reopen it later if we have new needs of personnalisation for instance

MiskoG commented 2 years ago

So we tolerate the current warning that pops everytime we validate a ressource ?

CleanShot 2021-12-14 at 10 21 49@2x

nriss commented 2 years ago

I think we can hide the warning about the narrative yeah, the resource has not been pushed on hapi, that's why there is no narrative during the preview I think it is another issue and it is not a prio

MiskoG commented 2 years ago

Alright agreed, so I close this issue 👍