@@ -8,6 +8,8 @@ export enum AuthProvider {
88 BP = 'best-practice' ,
99 IRIS = 'isris' ,
1010 MediRecords = 'medirecords' ,
11+ HaloConnect = 'halo-connect' ,
12+ MedtechGlobal = 'medtech-global' ,
1113 Sparked = 'sparked' ,
1214}
1315
@@ -39,6 +41,7 @@ export interface AuthClientConfigParams {
3941 tabTitle : string ;
4042 message : string ;
4143 sharedCredentials ?: SharedCredentials ;
44+ headers ?: { [ key in string ] : string } ;
4245}
4346
4447type TierConfig = { [ key in Tier ] : TierBaseConfig } ;
@@ -118,6 +121,28 @@ export const tierConfigMap: { [key in AuthProvider]: TierConfig } = {
118121 fhirBaseUrl : 'https://api-v1.test.medirecords.com/fhir/v1' ,
119122 } ,
120123 } ,
124+ [ AuthProvider . HaloConnect ] : {
125+ develop : {
126+ baseUrl : 'https://api.stage.haloconnect.io/integrator/sites/63255e8a-d04a-42a6-8c75-90aa880ad94e/fhir/R4/' ,
127+ fhirBaseUrl :
128+ 'https://api.stage.haloconnect.io/integrator/sites/63255e8a-d04a-42a6-8c75-90aa880ad94e/fhir/R4/' ,
129+ } ,
130+ production : {
131+ baseUrl : 'https://api.stage.haloconnect.io/integrator/sites/63255e8a-d04a-42a6-8c75-90aa880ad94e/fhir/R4/' ,
132+ fhirBaseUrl :
133+ 'https://api.stage.haloconnect.io/integrator/sites/63255e8a-d04a-42a6-8c75-90aa880ad94e/fhir/R4/' ,
134+ } ,
135+ } ,
136+ [ AuthProvider . MedtechGlobal ] : {
137+ develop : {
138+ baseUrl : 'https://alexapiuat.medtechglobal.com/FHIR' ,
139+ fhirBaseUrl : 'https://alexapiuat.medtechglobal.com/FHIR' ,
140+ } ,
141+ production : {
142+ baseUrl : 'https://alexapiuat.medtechglobal.com/FHIR' ,
143+ fhirBaseUrl : 'https://alexapiuat.medtechglobal.com/FHIR' ,
144+ } ,
145+ } ,
121146 [ AuthProvider . Sparked ] : {
122147 develop : {
123148 baseUrl : 'https://smile.sparked-fhir.com/aucore/fhir/DEFAULT/' ,
@@ -232,6 +257,31 @@ export const authClientConfigMap: { [key in AuthProvider]: AuthClientConfigParam
232257 tabTitle : 'Medirecords' ,
233258 message : 'No authorization required' ,
234259 } ,
260+ [ AuthProvider . HaloConnect ] : {
261+ clientId : 'halo-connect' ,
262+ authPath : 'smart/oauth/authorize' ,
263+ tokenPath : 'smart/oauth/token' ,
264+ responseType : 'code' ,
265+ redirectURL : `${ window . location . origin } ` ,
266+ grantType : 'authorization_code' ,
267+ scope : [ 'openid' , 'fhirUser' ] ,
268+ tabTitle : 'Halo Connect' ,
269+ message : 'No authorization required' ,
270+ headers : {
271+ 'Ocp-Apim-Subscription-Key' : '923b7ac4add44b02be0e93d3303e55e1' ,
272+ } ,
273+ } ,
274+ [ AuthProvider . MedtechGlobal ] : {
275+ clientId : 'meditech-global' ,
276+ authPath : 'smart/oauth/authorize' ,
277+ tokenPath : 'https://login.microsoftonline.com/8a024e99-aba3-4b25-b875-28b0c0ca6096/oauth2/v2.0/token' ,
278+ responseType : 'code' ,
279+ redirectURL : `${ window . location . origin } /auth` ,
280+ grantType : 'authorization_code' ,
281+ scope : [ 'openid' , 'fhirUser' ] ,
282+ tabTitle : 'Medtech Global' ,
283+ message : 'No authorization required' ,
284+ } ,
235285 [ AuthProvider . Sparked ] : {
236286 clientId : 'sparked' ,
237287 authPath : 'smart/oauth/authorize' ,
0 commit comments