Generated Narrative: TestScript Test102-FOPH-Code-NotValidForStrict url: TestScript Test102FOPHCodeNotValidForStrict version: 1.11.0 name: Test102FOPHCodeNotValidForStrict status: Active date: 2025-08-13 07:08:59+0000 publisher: Federal Office of Public Health FOPH contact: Federal Office of Public Health FOPH: https://www.bag.admin.ch/bag/en/home/das-bag/kontakt-standort.html jurisdiction: Switzerland copyright: CC0-1.0 fixture id inputdata autocreate: false autodelete: false resource: DocumentReference: identifier = UUID:1901332d-6012-443f-9690-9291adb2e1ff; status = current test name: Test102FOPHCodeNotValidForStrict description: Test102: Verify that FOPH code is not valid for strict profile action Operations - Type Description ContentType EncodeRequestUrl Params SourceId * Test script operation code validate: $validate validate application/fhir+json true profile=http://fhir.ch/ig/ch-elm/StructureDefinition/PublishDocumentReferenceStrict inputdata action Asserts - Description Direction ResponseCode WarningOnly * Confirm that the returned HTTP status is 200(OK). response 200 false action Asserts - Description Expression Value WarningOnly * Confirm that the returned resource is an OperationOutcome. is(FHIR.OperationOutcome) true false action Asserts - Description Expression Value WarningOnly * Confirm that we have at least one error. issue.where(severity='error' or severity='fatal').count()>0 true false
Test102: Verify that FOPH code is not valid for strict profile
Confirm that the returned HTTP status is 200(OK).
Confirm that the returned resource is an OperationOutcome.
Confirm that we have at least one error.
issue.where(severity='error' or severity='fatal').count()>0