BUG: Encounter Type should use <originalText> over <displayName> #2771
Labels
🐛 bug
Something isn't working
FHIR conversion required
This ticket will need FHIR conversion work
low
Low priority issues
Streamline eCR
Issues for Streamline eCR team to work on
Description
In the example eCRs below, the Encounter Type shows as Ambulatory in the eCR Viewer, but displays as Office Visit in the eICR HTML.
This is because the
displayName
vs.originalText
values of an encompassing encounter name are different values. "Ambulatory" comes fromdisplayName
, but "Office Visit" comes fromoriginal Text. The eCR Viewer chooses to display the
displayName, but the HTML view uses the
original Text.For this ticket, please fix the FHIR conversion so that it prioritizes pulling the encounter type value from
<originalText>
, and if that doesn't exist, then to pull the information from<displayName>
.IMPORTANT: Please confirm this with Emma/Robert Mitchell/Brady Fausett/etc. first. Making the change above would require changing the conditional order in
DataType/_Coding.liquid
, and would therefore affect other resources that use this Coding data type.Steps to reproduce
Example eCRs:
0aa7a9c2-87e4-4115-876e-b0253bb8dabf
: Incorrectly shows Encounter Type as "Ambulatory"4aca74f4-c3b7-49ce-a437-1c8594451926
: eCR viewer shows encounter type ambulatory, but in the HTML it is Office Visit5ff5928a-6c29-4a0c-bbe5-c96484bbd22c
: Encounter type shows as Ambulatory in eCR viewer, but Office Visit in eICR.6a6bcd7d-7bad-48f6-9e0b-39a4ec9e063e
: Encounter type shows as Ambulatory in eCR viewer, but Office Visit in eICR.8fd139db-e099-4d34-90ad-3c3e70d8704a
: Encounter type shows as Ambulatory in eCR viewer, but Office Visit in eICR.TN_sample eCR6
: The "orginalText" "Office Visit" is not displayedRelevant files:
Resource/_Encounter.liquid
DataType/_Coding.liquid
Expected Result
The encounter type displayed in the eCR viewer should match the information displayed in the eICR HTML.
Actual result
Example from
4aca74f4-c3b7-49ce-a437-1c8594451926
:Priority
Provide an estimate for level of impact the bug has today by placing an X in the applicable bracket
Priority
Notes
FHIR conversion would be required for this ticket.
The text was updated successfully, but these errors were encountered: