Generated Narrative: TestScript Test93-Error-FullName-Influenca url: TestScript Test93ErrorFullNameInfluenca version: 1.13.1 name: Test93ErrorFullNameInfluenca status: Active date: 2026-01-21 11:05:32+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: Binary: application/fhir+xml (19116 bytes base64) test name: Test93 description: Test script to verify error if full name is provided by Influenca (must be initials) 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/PublishDocumentReference 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 action Asserts - Description Expression Value WarningOnly * Check slicing fails issue.where(severity='error' and diagnostics.startsWith('Slice \'DocumentReference.contained:document\': a matching slice is required, but not found')).count() > 0 true false
Test script to verify error if full name is provided by Influenca (must be initials)
Confirm that the returned HTTP status is 200(OK).
Confirm that the returned resource is an OperationOutcome.
issue.where(severity='error' or severity='fatal').count()>0
issue.where(severity='error' and diagnostics.startsWith('Slice \'DocumentReference.contained:document\': a matching slice is required, but not found')).count() > 0