Skip to content

Commit

Permalink
Transform 'help-text' EMR extension for questions of type 'display'
Browse files Browse the repository at this point in the history
  • Loading branch information
m0rl authored Jun 7, 2024
1 parent 580208b commit 86ea067
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/converter/fhir_to_fce.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,11 @@ def get_updated_properties_from_item(item):
reference_resource_array = [reference_resource["valueCode"]]
updated_properties["referenceResource"] = reference_resource_array

if item_type == "display":
help_text = find_extension(item, "https://beda.software/fhir-emr-questionnaire/help-text")
if help_text is not None:
updated_properties["helpText"] = help_text["valueString"]

if item.get("initialExpression"):
updated_properties["initialExpression"] = {
"expression": item["initialExpression"]["expression"],
Expand Down

0 comments on commit 86ea067

Please sign in to comment.