Generated Narrative: TestScript Test92-WarningBerUidGln url: TestScript Test92WarningBerUidGln version: 1.10.0 name: Test92WarningBerUidGln status: Active date: 2025-06-23 21:08:30+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+json (12212 bytes base64) test name: Test92 description: Test92: Verify that warnings for incorrect BER, UID and GLN are raised 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/ch-elm-document-strict 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 no errors. issue.where(severity='error' or severity='fatal').count()=0 true false action Asserts - Description Expression Value WarningOnly * Check Constraint failed: gln-modulus-10 issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: gln-modulus-10:')).count() = 1 true false action Asserts - Description Expression Value WarningOnly * Check Constraint failed: gln-startswith76 issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: gln-startswith76:')).count() = 1 true false action Asserts - Description Expression Value WarningOnly * Check Constraint failed: ber-length issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: ber-length')).count() = 1 true false action Asserts - Description Expression Value WarningOnly * Check Constraint failed: ber-modulus-11 issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: ber-modulus-11')).count() = 1 true false action Asserts - Description Expression Value WarningOnly * Check Constraint failed: uidb-length issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: uidb-length')).count() = 1 true false action Asserts - Description Expression Value WarningOnly * Check Constraint failed: uidb-modulus-11 issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: uidb-modulus-11')).count() = 1 true false
Test92: Verify that warnings for incorrect BER, UID and GLN are raised
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='warning' and diagnostics.startsWith('Constraint failed: gln-modulus-10:')).count() = 1
Check Constraint failed: gln-startswith76
issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: gln-startswith76:')).count() = 1
issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: ber-length')).count() = 1
issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: ber-modulus-11')).count() = 1
issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: uidb-length')).count() = 1
Check Constraint failed: uidb-modulus-11
issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: uidb-modulus-11')).count() = 1