PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch-elm@1.4.0
    http://fhir.ch/ig/ch-elm/TestScript/Test93-Error-FullName-Influenca
{
  "description": null,
  "_filename": "example/TestScript-Test93-Error-FullName-Influenca.json",
  "package_name": "ch.fhir.ig.ch-elm",
  "date": "2024-08-20T16:24:59+00:00",
  "publisher": "Federal Office of Public Health FOPH",
  "jurisdiction": [ {
    "coding": [ {
      "code": "CHE",
      "system": "urn:iso:std:iso:3166"
    } ]
  } ],
  "name": "Test93ErrorFullNameInfluenca",
  "copyright": "CC0-1.0",
  "type": null,
  "experimental": null,
  "resourceType": "TestScript",
  "title": null,
  "package_version": "1.4.0",
  "status": "active",
  "id": "19a3f8ee-1246-4dc7-ba99-230c318ebd3e",
  "kind": null,
  "url": "http://fhir.ch/ig/ch-elm/TestScript/Test93-Error-FullName-Influenca",
  "fixture": [ {
    "id": "inputdata",
    "resource": {
      "reference": "Binary/Test93-DocumentReference-Error-FullName-Influenca"
    },
    "autocreate": false,
    "autodelete": false
  } ],
  "version": "1.4.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": "Test93",
    "action": [ {
      "operation": {
        "type": {
          "code": "validate",
          "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"
        },
        "params": "profile=http://fhir.ch/ig/ch-elm/StructureDefinition/PublishDocumentReference",
        "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 at least one error",
        "warningOnly": false
      }
    }, {
      "assert": {
        "value": "true",
        "expression": "issue.where(severity='error' and diagnostics.startsWith('Slice \\'DocumentReference.contained:document\\': minimum required = 1, but only found 0')).count() > 0",
        "description": "Check slicing fails",
        "warningOnly": false
      }
    } ],
    "description": "Test script to verify error if full name is provided by Influenca (must be initials)"
  } ]
}