-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlaunch.html
32 lines (32 loc) · 1.54 KB
/
launch.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>SMART: Patient App</title>
<!-- <script src="https://cdn.jsdelivr.net/npm/fhirclient/build/fhir-client.js"></script> -->
<script src="./fhir-client.js"></script>
</head>
<body>
<script>
FHIR.oauth2.authorize({
// this value should match with the value in the OIC Client config
//clientId: "patient_app_local", //SMILECDR
//clientId: "b71ac703-7bbc-4a31-a1b8-44775c8852de", //EPIC
clientId: "9205b91d-bba4-443f-8f2d-ca91984c2349", //EPIC-HELDOC-Provider
scope: "patient/*.* user/*.* openid fhirUser launch launch/patient",
//-----------------------------CERNER---------------------------------------
//clientId: "ddcff9b7-f9dc-4f56-80b5-244f98cb3b7e", //CERNER Provider
//scope: "patient/Patient.read patient/Observation.read openid fhirUser",
//--------------------------------------------------------------------
//clientId: "46a7f250-3972-4256-affe-ff13d9d35336", //CERNER Patient
//scope: "patient/Patient.read patient/Immunization.read launch/patient online_access openid profile fhirUser",
// this list should not include any scope that is
// not mentioned in the Client configuration
//scope: "openid launch/patient patient/*.read offline_access",
//scope: "patient/*.* user/*.* openid fhirUser launch launch/patient",
// (Optional) many servers are capable of using index.html by default
//redirectUri: 'index.html',
});
</script>
</body>
</html>