Test97-CoaxiellaNoRatio
type: TestScript
node role: treeRoot
id:
  v: Test97-CoaxiellaNoRatio
text:
  status:
    v: generated
  div:
    v: Generated Narrative: TestScript Test97-CoaxiellaNoRatio url: TestScript Test97CoaxiellaNoRatio version: 1.14.0 name: Test97CoaxiellaNoRatio status: Active date: 2026-05-26 14:50:18+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 description: Test97: Verify that error for missing ratio is raised jurisdiction: Switzerland copyright: CC0-1.0 fixture id inputdata autocreate: false autodelete: false resource: Binary: application/fhir+xml (13560 bytes base64) test name: Test97 description: Test97: Verify that error for missing ratio is 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 errors. issue.where(severity='error' or severity='fatal').count()>0 true false action Asserts - Description Expression Value WarningOnly * Check Constraint failed: ch-elm-observation-profile-loinc issue.where(diagnostics.matches('Constraint failed: ch-elm-observation-profile-loinc')).count() > 0 true false
url:
  v: http://fhir.ch/ig/ch-elm/TestScript/Test97-CoaxiellaNoRatio
  l: Test97-CoaxiellaNoRatio
version:
  v: 1.14.0
name:
  v: Test97CoaxiellaNoRatio
status:
  v: active
date:
  v: 2026-05-26T14:50:18+00:00
publisher:
  v: Federal Office of Public Health FOPH
contact:
  name:
    v: Federal Office of Public Health FOPH
  telecom:
    system:
      v: url
    value:
      v: https://www.bag.admin.ch/bag/en/home/das-bag/kontakt-standort.html
description:
  v: Test97: Verify that error for missing ratio is raised
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
      l: 3166
    code:
      v: CH
copyright:
  v: CC0-1.0
fixture:
  id:
    v: inputdata
  autocreate:
    v: false
  autodelete:
    v: false
  resource:
    l: Test97-Bundle-CoaxiellaNoRatio
    reference:
      v: Binary/Test97-Bundle-CoaxiellaNoRatio
test:
  name:
    v: Test97
  description:
    v: Test97: Verify that error for missing ratio is raised
  action:
    operation:
      description:
        v: validate
      content type:
        v: application/fhir+json
      encode request url:
        v: true
      params:
        v: profile=http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-document-strict
      source id:
        v: inputdata
  action:
    assert:
      description:
        v: Confirm that the returned HTTP status is 200(OK).
      direction:
        v: response
      response code:
        v: 200
      warning only:
        v: false
  action:
    assert:
      description:
        v: Confirm that the returned resource is an OperationOutcome.
      expression:
        v: is(FHIR.OperationOutcome)
      value:
        v: true
      warning only:
        v: false
  action:
    assert:
      description:
        v: Confirm that we have errors.
      expression:
        v: issue.where(severity='error' or severity='fatal').count()>0
      value:
        v: true
      warning only:
        v: false
  action:
    assert:
      description:
        v: Check Constraint failed: ch-elm-observation-profile-loinc
      expression:
        v: issue.where(diagnostics.matches('Constraint failed: ch-elm-observation-profile-loinc')).count() > 0
      value:
        v: true
      warning only:
        v: false

v: validate