Stream: conformance
Topic: Translation of Narratives
Giorgio Cangioli (Mar 09 2018 at 06:56):
I need to handle the multi language translation of the narratives.
I supposed to do this enhancing the narrative data type with an extension derived from the current “Translation” (http://hl7.org/fhir/StructureDefinition/translation) extension. This extends string and markdown, my plan was to add the Narrative as context, and allow for xthml content.
I can I do this with forge ? I tried in different ways but I’ve not been able to find a clue…
what I found for xhtml is http://hl7.org/fhir/StructureDefinition/rendering-xhtml, but this is an extension and not a profile; in the Narrartive dattype xhtml seems to be handled as a custom data type; but I've not been able to replicate this in my profile...
any help is more than welcome
Giorgio Cangioli (Mar 09 2018 at 07:03):
..waiting for a final solution for the time being i used a string datatype..
Michel Rutten (Mar 09 2018 at 12:21):
Hi @Giorgio Cangioli, you could create a custom profile on the Narrative datatype. Then you can constrain the narrative element in any resource profile by assigning the canonical url of the custom Narrative profile to the type.profile property of the Narrative type declaration. You can perform these steps in Forge. If you then reload the resource profile, Forge will try to expand the custom Narrative profile.
Rob Hausam (Mar 09 2018 at 12:29):
That sounds like the right approach for this, Michel. Thanks.
Giorgio Cangioli (Mar 09 2018 at 14:52):
Hi @Rob Hausam and @Michel Rutten . This is what I suppose to have done ...
narrative.PNG
WHat I've not been able to do is to have the same data type for the "div" and the "transaltedDiv" elements. That is xhtml.
Currently the translatedDiv is a pure string....
Michel Rutten (Mar 09 2018 at 14:59):
Hmm, interesting... Apparently FHIR does not allow you to define an extension of type "Narrative" or "Xhtml". So I guess you're stuck. Maybe @Grahame Grieve or @Lloyd McKenzie can chip in?
Grahame Grieve (Mar 09 2018 at 20:25):
no you're definitely stuck. It's not a recognized requirement
Lloyd McKenzie (Mar 09 2018 at 20:48):
So that sounds like we need a change request
Giorgio Cangioli (Mar 13 2018 at 09:34):
Thank you. Added as enhancement request (https://gforge.hl7.org/gf/project/fhir/tracker/?action=TrackerItemEdit&tracker_item_id=15759)
Last updated: Apr 12 2022 at 19:14 UTC