Skip to content

Commit 467247b

Browse files
fix: adjust 'extract ehrstatus_uid (JSON)' kw to set ehrstatus_uid in case of Message API
1 parent 195b4f0 commit 467247b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/robot/_resources/keywords/ehr_keywords.robot

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,12 @@ extract ehrstatus_uid (JSON)
912912
[Documentation] Extracts uuid of ehr_status from response of preceding request.
913913
... DEPENDENCY: `create new EHR`
914914
915-
Set Suite Variable ${ehrstatus_uid} ${resp.json()['ehr_status']['id']['value']}
915+
${is_ehr_status_id_value_present} Run Keyword And Return Status
916+
... Set Suite Variable ${ehrstatus_uid} ${resp.json()['ehr_status']['id']['value']}
917+
## Below case is for Message API, as there is still ehr_status.uid.value
918+
IF not ${is_ehr_status_id_value_present}
919+
Set Suite Variable ${ehrstatus_uid} ${resp.json()['ehr_status']['uid']['value']}
920+
END
916921
#Log To Console \n\tDEBUG OUTPUT - EHR_STATUS UUID: \n${ehrstatus_uid}
917922
@{ehr_status_uid} Split String ${ehrstatus_uid} ::
918923
Set Suite Variable ${versioned_status_uid} ${ehr_status_uid}[0]

0 commit comments

Comments
 (0)