CH EPR FHIR (R4)
5.0.0 - trial-use Switzerland flag

CH EPR FHIR (R4), published by eHealth Suisse. This guide is not an authorized publication; it is the continuous build for version 5.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/ehealthsuisse/ch-epr-fhir/ and changes regularly. See the Directory of published versions

Sequence Diagrams

Sample sequence diagrams to illustrate the usage for reading documents as a patient or healthcare professional:

Patient access from a portal

Patient PortalCommunity ComponentsIdPPatientPatientApp GUIApp GUIDocument Consumer(MHD)Document Consumer(MHD)Patient IdentifierCross-referenceConsumerPatient IdentifierCross-referenceConsumerAuthorization Client(IUA)Authorization Client(IUA)Patient IdentifierCross-referenceMangerPatient IdentifierCross-referenceMangerAuthorization Server(IUA)Authorization Server(IUA)Document Responder(MHD)Document Responder(MHD)UserAuthenticationProviderUserAuthenticationProvider[01]read doc[02]GET /.well-known/smart-configuration[03]Conformance statement incl. OAuth 2.1 endpointsalt[IUA JWT Token option][04]Get Access Token[05]CH:XUA Authenticate User[06] [07][ITI-71] Get Access Token Request[Basic access token][08]Authorize App Access[09][ITI-71] Get Access Token Response[Basic access token][10] [11]query EPR-SPIDfrom MPI using localID and access token[12][ITI-83] Mobile Patient Identifier Cross-referenceQuery [local ID] together with access token[13][ITI-83] Mobile Patient Identifier Cross-referenceQuery Response [EPR-SPID][14] [mTLS][15]query EPR-SPIDfrom MPI using localID and mTLS[16][ITI-83] Mobile Patient Identifier Cross-referenceQuery [local ID] together with access token[17][ITI-83] Mobile Patient Identifier Cross-referenceQuery Response [EPR-SPID][18] opt[IUA with JWT option][19]Get Access Token[20][ITI-71] Get Access Token[Extended access token][21][ITI-71] Get Access Token Response[Extended access token][22] alt[IUA JWT Token option][23]query documentswith extended access token[24]query documents [ITI-67] with extended access token[25] [26] [27]retrieve documentswith extended access token[28]retrieve document [ITI-68] with extended access token[29] [30] [mTLS][31]query documentsusing XUA token and mTLS[32]query documents [ITI-67] with XUA token and mTLS[33] [34] [35]retrieve documentsusing XUA token and mTLS[36]retrieve document [ITI-68] with XUA token and mTLS[37] [38] [39] 

User Access from an integrated Primary System to read documents

Healthcare Professional Portal or Primary SystemCommunity ComponentsIdPHealthcareProfessionalHealthcareProfessionalApp GUIApp GUIDocument Consumer(MHD)Document Consumer(MHD)Patient IdentifierCross-referenceConsumerPatient IdentifierCross-referenceConsumerAuthorization Client(IUA)Authorization Client(IUA)Patient IdentifierCross-referenceMangerPatient IdentifierCross-referenceMangerAuthorization Server(IUA)Authorization Server(IUA)Document Responder(MHD)Document Responder(MHD)UserAuthenticationProviderUserAuthenticationProvider[01]read doc[02]GET /.well-known/smart-configuration[03]Conformance statement incl. OAuth 2.1 endpointsalt[IUA JWT Token option][04]Get Access Token[05]CH:XUA Authenticate User[06] [07][ITI-71] Get Access Token Request[Basic access token][08]Authorize App Access[09][ITI-71] Get Access Token Response[Basic access token][10] [11]query EPR-SPIDfrom MPI using localID and access token[12][ITI-83] Mobile Patient Identifier Cross-referenceQuery [local ID] together with access token[13][ITI-83] Mobile Patient Identifier Cross-referenceQuery Response [EPR-SPID][14] [mTLS][15]query EPR-SPIDfrom MPI using localID and mTLS[16][ITI-83] Mobile Patient Identifier Cross-referenceQuery [local ID] together with access token[17][ITI-83] Mobile Patient Identifier Cross-referenceQuery Response [EPR-SPID][18] opt[IUA with JWT option][19]Get Access Token[20][ITI-71] Get Access Token[Extended access token][21][ITI-71] Get Access Token Response[Extended access token][22] alt[IUA JWT Token option][23]query documentswith extended access token[24]query documents [ITI-67] with extended access token[25] [26] [27]retrieve documentswith extended access token[28]retrieve document [ITI-68] with extended access token[29] [30] [mTLS][31]query documentsusing XUA token and mTLS[32]query documents [ITI-67] with XUA token and mTLS[33] [34] [35]retrieve documentsusing XUA token and mTLS[36]retrieve document [ITI-68] with XUA token and mTLS[37] [38] [39] 

User Access from an integrated Primary System to publish documents

Healthcare Professional Portal or Primary SystemCommunity ComponentsIdPHealthcareProfessionalHealthcareProfessionalApp GUIApp GUIDocument Source(MHD)Document Source(MHD)Patient IdentifierCross-referenceConsumerPatient IdentifierCross-referenceConsumerAuthorization Client(IUA)Authorization Client(IUA)Patient IdentifierCross-referenceMangerPatient IdentifierCross-referenceMangerAuthorization Server(IUA)Authorization Server(IUA)Document Recipient(MHD)Document Recipient(MHD)UserAuthenticationProviderUserAuthenticationProvider[01]write doc[02]GET /.well-known/smart-configuration[03]Conformance statement incl. OAuth 2.1 endpointsalt[IUA JWT Token option][04]Get Access Token[05]CH:XUA Authenticate User[06] [07][ITI-71] Get Access Token Request[Basic access token][08]Authorize App Access[09][ITI-71] Get Access Token Response[Basic access token][10] [11]query EPR-SPIDfrom MPI using localID and access token[12][ITI-83] Mobile Patient Identifier Cross-referenceQuery [local ID] together with access token[13][ITI-83] Mobile Patient Identifier Cross-referenceQuery Response [EPR-SPID][14] [mTLS][15]query EPR-SPIDfrom MPI using localID and mTLS[16][ITI-83] Mobile Patient Identifier Cross-referenceQuery [local ID] together with access token[17][ITI-83] Mobile Patient Identifier Cross-referenceQuery Response [EPR-SPID][18] opt[IUA with JWT option][19]Get Access Token[20][ITI-71] Get Access Token[Extended access token][21][ITI-71] Get Access Token Response[Extended access token][22] alt[IUA JWT Token option][23]publish documentwith extended access tokenloop[For the access decision enforcement, the EPR relies on the Confidentiality Code within the document metadata to be stored in the patient’s Health Record.A patient can set the default Confidentiality Code and a document source needs to iterate over the different confidentiality code until successful][24]publish document [ITI-65] with extended access token[25] [26] [mTLS][27]publish documentwith XUA token and mTLSloop[For the access decision enforcement, the EPR relies on the Confidentiality Code within the document metadata to be stored in the patient’s Health Record.A patient can set the default Confidentiality Code and a document source needs to iterate over the different confidentiality code until successful][28]publish document [ITI-65] with extended access token[29] [30] [31] 

Writing documents from clinical archives

Clinical ArchiveCommunity ComponentsTechnical UserTechnical UserDocument Source(MHD)Document Source(MHD)Patient IdentifierCross-referenceConsumerPatient IdentifierCross-referenceConsumerAuthorization Client(IUA)Authorization Client(IUA)Patient IdentifierCross-referenceMangerPatient IdentifierCross-referenceMangerAuthorization Server(IUA)Authorization Server(IUA)Document Recipient(MHD)Document Recipient(MHD)[01]GET /.well-known/smart-configuration[02]Conformance statement incl. OAuth 2.1 endpointsopt[IUA JWT Token option][03]Get Access Token[04][ITI-71] Get Access Token RequestClient Credential Grant Type - [Basic access token][05][ITI-71] Get Access Token ResponseClient Credential Grant Type -[Basic access token][06] [07]query EPR-SPIDfrom MPI using localID and access token[08][ITI-83] Mobile Patient Identifier Cross-referenceQuery [local ID] together with access token[09][ITI-83] Mobile Patient Identifier Cross-referenceQuery Response [EPR-SPID][10] opt[IUA with JWT option][11]Get Access Token[12][ITI-71] Get Access Token[Extended access token][13][ITI-71] Get Access Token Response[Extended access token][14] alt[IUA JWT Token option][15]publish documentwith extended access tokenloop[For the access decision enforcement, the EPR relies on the Confidentiality Code within the document metadata to be stored in the patient’s Health Record.A patient can set the default Confidentiality Code and a document source needs to iterate over the different confidentiality code until successful][16]publish document [ITI-65] with extended access token[17] [18] [mTLS][19]publish documentwith XUA token and mTLSloop[For the access decision enforcement, the EPR relies on the Confidentiality Code within the document metadata to be stored in the patient’s Health Record.A patient can set the default Confidentiality Code and a document source needs to iterate over the different confidentiality code until successful][20]publish document [ITI-65] with extended access token[21] [22] 

Patient: get document with a SMART on FHIR app

Patient PortalSMART on FHIR AppCommunity ComponentsIdPPatientPatientApp GUIIUA Authorization ClientApp GUIIUA Authorization ClientAuthorization Client(IUA)Authorization Client(IUA)Patient IdentifierCross-referenceConsumerPatient IdentifierCross-referenceConsumerApp GUIIUA Authorization ClientApp GUIIUA Authorization ClientDocument Consumer(MHD)Document Consumer(MHD)Authorization Server(IUA)Authorization Server(IUA)Patient IdentifierCross-referenceMangePatient IdentifierCross-referenceMangeDocument Responder(MHD)Document Responder(MHD)UserAuthenticationProviderUserAuthenticationProvider[01]read doc[02]GET /.well-known/smart-configuration[03]Conformance statement incl. OAuth 2.1 endpointsalt[IUA JWT Token option][04]Get Access Token[05]CH:XUA Authenticate User[06] [07][ITI-71] Get Access Token Request[Basic access token][08]Authorize App Access[09][ITI-71] Get Access Token Response[Basic access token][10] [11]query EPR-SPIDfrom MPI using localID and access token[12][ITI-83] Mobile Patient Identifier Cross-referenceQuery [local ID] together with access token[13][ITI-83] Mobile Patient Identifier Cross-referenceQuery Response [EPR-SPID][14] [mTLS][15]query EPR-SPIDfrom MPI using localID and mTLS[16][ITI-83] Mobile Patient Identifier Cross-referenceQuery [local ID] together with access token[17][ITI-83] Mobile Patient Identifier Cross-referenceQuery Response [EPR-SPID][18] [19]launch app[20]GET /.well-known/smart-configuration[21]Conformance statementincl. OAuth 2.1 endpoints[22]CH:XUA Authenticate User[23] [24][ITI-71] Get Access Token[Extended access token][25][ITI-71] Get Access Token Response[Extended access token][26]query documentswith extended access token[27]query documents [ITI-67] with extended access token[28] [29] [30]retrieve documentwith extended access token[31]retrieve document [ITI-68] with extended access token[32] [33] [34] [35] 

Healthcare professional: get document with a SMART on FHIR app (EHR Launch)

Healthcare Professional Portal or Primary SystemSMART on FHIR AppCommunity ComponentsIdPHealthcareProfessionalHealthcareProfessionalApp GUIIUA Authorization ClientApp GUIIUA Authorization ClientAuthorization Client(IUA)Authorization Client(IUA)Patient IdentifierCross-referenceConsumerPatient IdentifierCross-referenceConsumerApp GUIIUA Authorization ClientApp GUIIUA Authorization ClientDocument Consumer(MHD)Document Consumer(MHD)Authorization Server(IUA)Authorization Server(IUA)Patient IdentifierCross-referenceMangePatient IdentifierCross-referenceMangeDocument Responder(MHD)Document Responder(MHD)UserAuthenticationProviderUserAuthenticationProvider[01]read doc[02]GET /.well-known/smart-configuration[03]Conformance statement incl. OAuth 2.1 endpointsalt[IUA JWT Token option][04]Get Access Token[05]CH:XUA Authenticate User[06] [07][ITI-71] Get Access Token Request[Basic access token][08]Authorize App Access[09][ITI-71] Get Access Token Response[Basic access token][10] [11]query EPR-SPIDfrom MPI using localID and access token[12][ITI-83] Mobile Patient Identifier Cross-referenceQuery [local ID] together with access token[13][ITI-83] Mobile Patient Identifier Cross-referenceQuery Response [EPR-SPID][14] [mTLS][15]query EPR-SPIDfrom MPI using localID and mTLS[16][ITI-83] Mobile Patient Identifier Cross-referenceQuery [local ID] together with access token[17][ITI-83] Mobile Patient Identifier Cross-referenceQuery Response [EPR-SPID][18] [19]launch app[20]GET /.well-known/smart-configuration[21]Conformance statementincl. OAuth 2.1 endpoints[22]CH:XUA Authenticate User[23] [24][ITI-71] Get Access Token[Extended access token][25][ITI-71] Get Access Token Response[Extended access token][26]query documentswith extended access token[27]query documents [ITI-67] with extended access token[28] [29] [30]retrieve documentwith extended access token[31]retrieve document [ITI-68] with extended access token[32] [33] [34] [35]