Skip to content

Commit

Permalink
Fixed the examples to work with the new client
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Ignatov committed Jun 21, 2019
1 parent 900dd8d commit c12934d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 21 deletions.
12 changes: 5 additions & 7 deletions examples/patient-KimberlyRevis.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Growth Chart SMART Application</title>
<script src="../node_modules/fhirclient/fhir-client.js"></script>
<script src="../node_modules/fhirclient/build/fhir-client.js"></script>
<script>
FHIR.oauth2.authorize({
client: {
client_id: "growth_chart",
scope: "patient/*.read launch/patient",
redirect_uri: "http://127.0.0.1:9000"
},
"server": "https://launch.smarthealthit.org/v/r3/sim/eyJrIjoiMSIsImIiOiJzbWFydC03Nzc3NzA0In0/fhir"
client_id: "growth_chart",
scope: "patient/*.read launch/patient",
redirect_uri: "http://127.0.0.1:9000",
iss: "https://launch.smarthealthit.org/v/r3/sim/eyJrIjoiMSIsImIiOiJzbWFydC03Nzc3NzA0In0/fhir"
});
</script>
</head>
Expand Down
12 changes: 5 additions & 7 deletions examples/patient-KimberlyRevis.invalid-token.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Growth Chart SMART Application</title>
<script src="../node_modules/fhirclient/fhir-client.js"></script>
<script src="../node_modules/fhirclient/build/fhir-client.js"></script>
<script>
FHIR.oauth2.authorize({
client: {
client_id: "growth_chart",
scope: "patient/*.read launch/patient",
redirect_uri: "http://127.0.0.1:9000"
},
"server": "https://launch.smarthealthit.org/v/r3/sim/eyJrIjoiMSIsImQiOjYsImkiOiIxIiwiaiI6IjEiLCJiIjoic21hcnQtNzc3NzcwNCJ9/fhir"
client_id: "growth_chart",
scope: "patient/*.read launch/patient",
redirect_uri: "http://127.0.0.1:9000",
iss: "https://launch.smarthealthit.org/v/r3/sim/eyJrIjoiMSIsImQiOjYsImkiOiIxIiwiaiI6IjEiLCJiIjoic21hcnQtNzc3NzcwNCJ9/fhir"
});
</script>
</head>
Expand Down
12 changes: 5 additions & 7 deletions examples/practitioner-KimberlyRevis.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Growth Chart SMART Application</title>
<script src="../node_modules/fhirclient/fhir-client.js"></script>
<script src="../node_modules/fhirclient/build/fhir-client.js"></script>
<script>
FHIR.oauth2.authorize({
client: {
client_id: "growth_chart",
scope: "patient/*.read launch/patient",
redirect_uri: "http://127.0.0.1:9000"
},
"server": "https://launch.smarthealthit.org/v/r3/sim/eyJoIjoiMSIsImIiOiJzbWFydC03Nzc3NzA0IiwiZSI6InNtYXJ0LVByYWN0aXRpb25lci03MjA4MDQxNiJ9/fhir"
client_id: "growth_chart",
scope: "patient/*.read launch/patient",
redirect_uri: "http://127.0.0.1:9000",
iss: "https://launch.smarthealthit.org/v/r3/sim/eyJoIjoiMSIsImIiOiJzbWFydC03Nzc3NzA0IiwiZSI6InNtYXJ0LVByYWN0aXRpb25lci03MjA4MDQxNiJ9/fhir"
});
</script>
</head>
Expand Down

0 comments on commit c12934d

Please sign in to comment.