@@ -695,10 +695,7 @@ export function buildCapabilityStatement(dir: string, file, api: any | void) {
695695 }
696696}
697697
698-
699-
700-
701- export function testFile ( folderName : string , fileName : string , failOnWarning :boolean , isUKore : boolean )
698+ export function testFile ( folderName : string , fileName : string , failOnWarning :boolean )
702699{
703700 let client : AxiosInstance ;
704701 let file = folderName + "/" + fileName ;
@@ -813,27 +810,14 @@ export function testFile( folderName: string, fileName: string, failOnWarning :b
813810 }
814811 }
815812 if ( validate ) {
816- if ( ! isUKore ) {
817- test ( 'FHIR Validation' , async ( ) => {
818- const response = await client . post ( '/$validate' , resource ) . catch ( function ( error ) {
819- return error . response
820- } )
821- expect ( response . status === 200 || response . status === 400 ) . toBeTruthy ( )
822- resourceChecks ( response , failOnWarning )
823- expect ( response . status ) . toEqual ( 200 )
824- } ) ;
825- } else {
826-
827- test ( 'FHIR Validation - UKCore' , async ( ) => {
828- const response = await client . post ( '/$validate?profile=https://fhir.hl7.org.uk/StructureDefinition/UKCore-' + json . resourceType , resource ) . catch ( function ( error ) {
829- return error . response
830- } )
831- expect ( response . status === 200 || response . status === 400 ) . toBeTruthy ( )
832- resourceChecks ( response , failOnWarning )
833- expect ( response . status ) . toEqual ( 200 )
813+ test ( 'FHIR Validation' , async ( ) => {
814+ const response = await client . post ( '/$validate' , resource ) . catch ( function ( error ) {
815+ return error . response
834816 } )
835- }
836-
817+ expect ( response . status === 200 || response . status === 400 ) . toBeTruthy ( )
818+ resourceChecks ( response , failOnWarning )
819+ expect ( response . status ) . toEqual ( 200 )
820+ } ) ;
837821 }
838822 }
839823 )
0 commit comments