try to extact patient id from idtoken if present (used in AllScripts).
This commit is contained in:
parent
60bedabe01
commit
fefb2e8277
|
@ -122,7 +122,7 @@ export class MedicalSourcesConnectedComponent implements OnInit {
|
||||||
//console.log(introspectionResp)
|
//console.log(introspectionResp)
|
||||||
let decodedIdToken = this.jwtDecode(payload.id_token)
|
let decodedIdToken = this.jwtDecode(payload.id_token)
|
||||||
//nextGen uses fhirUser instead of profile.
|
//nextGen uses fhirUser instead of profile.
|
||||||
payload.patient = decodedIdToken["profile"] || decodedIdToken["fhirUser"]
|
payload.patient = decodedIdToken["patient"] || decodedIdToken["profile"] || decodedIdToken["fhirUser"]
|
||||||
|
|
||||||
if(payload.patient){
|
if(payload.patient){
|
||||||
payload.patient = payload.patient.replace(/^(Patient\/)/,'')
|
payload.patient = payload.patient.replace(/^(Patient\/)/,'')
|
||||||
|
|
Loading…
Reference in New Issue