PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch-elm@1.9.0
    http://fhir.ch/ig/ch-elm/TestScript/Test92-WarningBerUidGln
{
  "description": null,
  "_filename": "example/TestScript-Test92-WarningBerUidGln.json",
  "package_name": "ch.fhir.ig.ch-elm",
  "date": "2025-03-18T17:04:45+00:00",
  "publisher": "Federal Office of Public Health FOPH",
  "jurisdiction": [ {
    "coding": [ {
      "code": "CH",
      "system": "urn:iso:std:iso:3166"
    } ]
  } ],
  "name": "Test92WarningBerUidGln",
  "copyright": "CC0-1.0",
  "type": null,
  "experimental": null,
  "resourceType": "TestScript",
  "title": null,
  "package_version": "1.9.0",
  "status": "active",
  "id": "413f3e90-aadd-4e76-a28a-08199318c7ba",
  "kind": null,
  "url": "http://fhir.ch/ig/ch-elm/TestScript/Test92-WarningBerUidGln",
  "fixture": [ {
    "id": "inputdata",
    "resource": {
      "reference": "Binary/Test92-Bundle-WarningBerUidGln"
    },
    "autocreate": false,
    "autodelete": false
  } ],
  "version": "1.9.0",
  "contact": [ {
    "name": "Federal Office of Public Health FOPH",
    "telecom": [ {
      "value": "https://www.bag.admin.ch/bag/en/home/das-bag/kontakt-standort.html",
      "system": "url"
    } ]
  } ],
  "test": [ {
    "name": "Test92",
    "action": [ {
      "operation": {
        "type": {
          "code": "validate",
          "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"
        },
        "params": "profile=http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-document-strict",
        "sourceId": "inputdata",
        "contentType": "application/fhir+json",
        "description": "validate",
        "encodeRequestUrl": true
      }
    }, {
      "assert": {
        "direction": "response",
        "description": "Confirm that the returned HTTP status is 200(OK).",
        "warningOnly": false,
        "responseCode": "200"
      }
    }, {
      "assert": {
        "value": "true",
        "expression": "is(FHIR.OperationOutcome)",
        "description": "Confirm that the returned resource is an OperationOutcome.",
        "warningOnly": false
      }
    }, {
      "assert": {
        "value": "true",
        "expression": "issue.where(severity='error' or severity='fatal').count()=0",
        "description": "Confirm that we have no errors.",
        "warningOnly": false
      }
    }, {
      "assert": {
        "value": "true",
        "expression": "issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: gln-modulus-10:')).count() = 1",
        "description": "Check Constraint failed: gln-modulus-10",
        "warningOnly": false
      }
    }, {
      "assert": {
        "value": "true",
        "expression": "issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: gln-startswith76:')).count() = 1",
        "description": "Check Constraint failed: gln-startswith76",
        "warningOnly": false
      }
    }, {
      "assert": {
        "value": "true",
        "expression": "issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: ber-length')).count() = 1",
        "description": "Check Constraint failed: ber-length",
        "warningOnly": false
      }
    }, {
      "assert": {
        "value": "true",
        "expression": "issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: ber-modulus-11')).count() = 1",
        "description": "Check Constraint failed: ber-modulus-11",
        "warningOnly": false
      }
    }, {
      "assert": {
        "value": "true",
        "expression": "issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: uidb-length')).count() = 1",
        "description": "Check Constraint failed: uidb-length",
        "warningOnly": false
      }
    }, {
      "assert": {
        "value": "true",
        "expression": "issue.where(severity='warning' and diagnostics.startsWith('Constraint failed: uidb-modulus-11')).count() = 1",
        "description": "Check Constraint failed: uidb-modulus-11",
        "warningOnly": false
      }
    } ],
    "description": "Test92: Verify that warnings for incorrect BER, UID and GLN are raised"
  } ]
}