FHIR © HL7.org  |  Server Home  |  XIG Home  |  XIG Stats  |  Server Source  |  FHIR  

FHIR IG Statistics: TestScript/Test96-Ignore-Slice-Patient-Eu-Lab-Information

Packagech.fhir.ig.ch-elm
Resource TypeTestScript
IdTest96-Ignore-Slice-Patient-Eu-Lab-Information
FHIR VersionR4
Sourcehttp://fhir.ch/ig/ch-elm/https://build.fhir.org/ig/ahdis/ch-elm/TestScript-Test96-Ignore-Slice-Patient-Eu-Lab-Information.html
URLhttp://fhir.ch/ig/ch-elm/TestScript/Test96-Ignore-Slice-Patient-Eu-Lab-Information
Version1.10.0
Statusactive
Date2025-06-23T20:27:52+00:00
NameTest96IgnoreObservationInterpretationCodesInformation
Realmch
Authorityhl7
CopyrightCC0-1.0

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: TestScript Test96-Ignore-Slice-Patient-Eu-Lab-Information

url: TestScript Test96IgnoreObservationInterpretationCodesInformation

version: 1.10.0

name: Test96IgnoreObservationInterpretationCodesInformation

status: Active

date: 2025-06-23 20:27:52+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:1cf9f2c3-7d6f-4b82-86ea-77b048bb4fdc; status = current

test

name: Test96

description: Test script to verify that Information This element does not match any known slice defined in the profile http://hl7.eu/fhir/laboratory/StructureDefinition/Patient-eu-lab is ignored

action

Operations

-TypeDescriptionContentTypeEncodeRequestUrlParamsSourceId
*Test script operation code validate: $validatevalidateapplication/fhir+jsontrueprofile=http://fhir.ch/ig/ch-elm/StructureDefinition/PublishDocumentReferenceinputdata

action

Asserts

-DescriptionDirectionResponseCodeWarningOnly
*Confirm that the returned HTTP status is 200(OK).response200false

action

Asserts

-DescriptionExpressionValueWarningOnly
*Confirm that the returned resource is an OperationOutcome.is(FHIR.OperationOutcome)truefalse

action

Asserts

-DescriptionExpressionValueWarningOnly
*Confirm that we have no errors.issue.where(severity='error' or severity='fatal').count()=0truefalse

action

Asserts

-DescriptionExpressionValueWarningOnly
*Check information ignoredissue.where(severity='information' and diagnostics.matches('This element does not match any known slice defined in the profile http://hl7.eu/fhir/laboratory/StructureDefinition/Patient-eu-lab(.+)')).count() = 0truefalse

Source

{
  "resourceType": "TestScript",
  "id": "Test96-Ignore-Slice-Patient-Eu-Lab-Information",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "url": "http://fhir.ch/ig/ch-elm/TestScript/Test96-Ignore-Slice-Patient-Eu-Lab-Information",
  "version": "1.10.0",
  "name": "Test96IgnoreObservationInterpretationCodesInformation",
  "status": "active",
  "date": "2025-06-23T20:27:52+00:00",
  "publisher": "Federal Office of Public Health FOPH",
  "contact": [
    {
      "name": "Federal Office of Public Health FOPH",
      "telecom": [
        {
          "system": "url",
          "value": "https://www.bag.admin.ch/bag/en/home/das-bag/kontakt-standort.html"
        }
      ]
    }
  ],
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "CH"
        }
      ]
    }
  ],
  "copyright": "CC0-1.0",
  "fixture": [
    {
      "id": "inputdata",
      "autocreate": false,
      "autodelete": false,
      "resource": {
        "reference": "DocumentReference/Publish-2Doc-ChlamydiaTrachomatis-Vct"
      }
    }
  ],
  "test": [
    {
      "name": "Test96",
      "description": "Test script to verify that Information This element does not match any known slice defined in the profile http://hl7.eu/fhir/laboratory/StructureDefinition/Patient-eu-lab is ignored",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "validate"
            },
            "description": "validate",
            "contentType": "application/fhir+json",
            "encodeRequestUrl": true,
            "params": "profile=http://fhir.ch/ig/ch-elm/StructureDefinition/PublishDocumentReference",
            "sourceId": "inputdata"
          }
        },
        {
          "assert": {
            "description": "Confirm that the returned HTTP status is 200(OK).",
            "direction": "response",
            "responseCode": "200",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "description": "Confirm that the returned resource is an OperationOutcome.",
            "expression": "is(FHIR.OperationOutcome)",
            "value": "true",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "description": "Confirm that we have no errors.",
            "expression": "issue.where(severity='error' or severity='fatal').count()=0",
            "value": "true",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "description": "Check information ignored",
            "expression": "issue.where(severity='information' and diagnostics.matches('This element does not match any known slice defined in the profile http://hl7.eu/fhir/laboratory/StructureDefinition/Patient-eu-lab(.+)')).count() = 0",
            "value": "true",
            "warningOnly": false
          }
        }
      ]
    }
  ]
}