Skip to content

Commit 3bad3d4

Browse files
FM2-427: Change launchContext value to handle Encounter (#22)
1 parent 5a2eba0 commit 3bad3d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

omod/src/main/java/org/openmrs/module/smartonfhir/web/servlet/SmartEhrLaunchServlet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IO
4242
smartSessionCache.put(patientId, smartSession);
4343
}
4444

45-
if (launchContext.equals("visit")) {
45+
if (launchContext.equals("encounter")) {
4646
url = url + visitId;
4747
smartSessionCache.put(visitId, smartSession);
4848
}

omod/src/main/resources/apps/demo_visit_launch_app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"config" : {
77
"launchUrl" : "http://127.0.0.1:9090/launch-standalone.html",
88
"launchType" : "EHR",
9-
"launchContext" : "visit",
9+
"launchContext" : "encounter",
1010
"fhirVersion" : "R4"
1111
},
1212
"extensions": [

0 commit comments

Comments
 (0)