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

FHIR IG Statistics: TestScript/BundleTimestamp-Not-Equal-To-CompositionDate

Packagemedcom.fhir.dk.conditionlisttestscripts
Resource TypeTestScript
IdBundleTimestamp-Not-Equal-To-CompositionDate
FHIR VersionR4
Sourcehttp://medcomfhir.dk/ig/conditionlisttestscripts/https://build.fhir.org/ig/medcomdk/dk-medcom-ConditionList-test-scripts/TestScript-BundleTimestamp-Not-Equal-To-CompositionDate.html
URLhttp://medcomfhir.dk/ig/conditionlisttestscript/BundleTimestamp-Not-Equal-To-CompositionDate
Version0.1.0
Statusactive
Date2025-04-01
NameConditionListTestScript
TitleSend: ConditionList_Testscript_Send-BundleTimestamp-Not-Equal-To-CompositionDate
Realmdk
DescriptionValidate that Conditionlist Bundle timestamp is not equal to the composition date
CopyrightMedCom 2025

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 BundleTimestamp-Not-Equal-To-CompositionDate

Profile: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript

url: TestScript Send: ConditionList_Testscript_Send-BundleTimestamp-Not-Equal-To-CompositionDate

version: 0.1.0

name: ConditionListTestScript

title: Send: ConditionList_Testscript_Send-BundleTimestamp-Not-Equal-To-CompositionDate

status: Active

date: 2025-04-01

publisher: MedCom

contact: MedCom: www.medcom.dk

description:

Validate that Conditionlist Bundle timestamp is not equal to the composition date

copyright:

MedCom 2025

Origins

-IndexProfile
*1Test script profile origin type FHIR-Client: FHIR Client

Destinations

-IndexProfile
*1Test script profile destination type FHIR-Server: FHIR Server

fixture

id

create-CList-01

autocreate: false

autodelete: false

resource: ./fixtures/fixtures.json

profile: http://medcomfhir.dk/ig/conditionlist/StructureDefinition/medcom-conditionlist-bundle

test

id

ConditionList-create-CList-01

name: Create a ConditionList CList Message 01

description: Post ConditionList to the server.

action

Operations

-TypeResourceDescriptionDestinationEncodeRequestUrlOriginResponseIdSourceId
*Test script operation code create: CreateBundlePost a ConditionList1true1create-message-CListcreate-CList-01

action

Asserts

-DescriptionDirectionResourceWarningOnly
*Confirm that the client request payload contains a Bundle resource type.requestBundlefalse

action

Asserts

-DescriptionDirectionOperatorResponseCodeWarningOnly
*Confirm that the returned HTTP status is okay or created.responsein200,201false

action

Asserts

-DescriptionDirectionValidateProfileIdWarningOnly
*Validate the bundle against medcomConditionList profilerequestMedComConditionListBundlefalse

action

Asserts

-DescriptionDirectionExpressionWarningOnly
*Validate that the bundle.timestamp is different from composition.daterequestBundle.timestamp != Bundle.entry.resource.ofType(Composition).datefalse

Source

{
  "resourceType": "TestScript",
  "id": "BundleTimestamp-Not-Equal-To-CompositionDate",
  "meta": {
    "profile": [
      "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript"
    ]
  },
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "url": "http://medcomfhir.dk/ig/conditionlisttestscript/BundleTimestamp-Not-Equal-To-CompositionDate",
  "version": "0.1.0",
  "name": "ConditionListTestScript",
  "title": "Send: ConditionList_Testscript_Send-BundleTimestamp-Not-Equal-To-CompositionDate",
  "status": "active",
  "date": "2025-04-01",
  "publisher": "MedCom",
  "contact": [
    {
      "name": "MedCom",
      "telecom": [
        {
          "system": "url",
          "value": "www.medcom.dk"
        }
      ]
    }
  ],
  "description": "Validate that Conditionlist Bundle timestamp is not equal to the composition date",
  "copyright": "MedCom 2025",
  "origin": [
    {
      "index": 1,
      "profile": {
        "system": "http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types",
        "code": "FHIR-Client"
      }
    }
  ],
  "destination": [
    {
      "index": 1,
      "profile": {
        "system": "http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types",
        "code": "FHIR-Server"
      }
    }
  ],
  "fixture": [
    {
      "id": "create-CList-01",
      "autocreate": false,
      "autodelete": false,
      "resource": {
        "reference": "./fixtures/fixtures.json"
      }
    }
  ],
  "profile": [
    {
      "id": "MedComConditionListBundle",
      "reference": "http://medcomfhir.dk/ig/conditionlist/StructureDefinition/medcom-conditionlist-bundle"
    }
  ],
  "test": [
    {
      "id": "ConditionList-create-CList-01",
      "name": "Create a ConditionList CList Message 01",
      "description": "Post ConditionList to the server.",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "create"
            },
            "resource": "Bundle",
            "description": "Post a ConditionList",
            "destination": 1,
            "encodeRequestUrl": true,
            "origin": 1,
            "responseId": "create-message-CList",
            "sourceId": "create-CList-01"
          }
        },
        {
          "assert": {
            "description": "Confirm that the client request payload contains a Bundle resource type.",
            "direction": "request",
            "resource": "Bundle",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "description": "Confirm that the returned HTTP status is okay or created.",
            "direction": "response",
            "operator": "in",
            "responseCode": "200,201",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "description": "Validate the bundle against medcomConditionList profile",
            "direction": "request",
            "validateProfileId": "MedComConditionListBundle",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "description": "Validate that the bundle.timestamp is different from composition.date",
            "direction": "request",
            "expression": "Bundle.timestamp != Bundle.entry.resource.ofType(Composition).date",
            "warningOnly": false
          }
        }
      ]
    }
  ]
}