BundleNews2

Introduction

The BundleNews2 profile may be used as a container for sending a NEWS2 and the vital signs used to calculate the NEWS2 to COSMIC. The bundle should contain all vital sign profiles used for calculating a NEWS2 and an observation profile for the NEWS2. The BundleNews2 profile is created from the Bundle resource in FHIR R4 edition.

Intended Use

If the NEWS2 observation is sent in a Bundle where all resources related to the NEWS2 observation are included, the Mediator construct an observation with resources from the bundle as contained resources. When the Observation has been resolved, the Mediator calls the Clinical care module (CCM) to create the NEWS2 score in COSMIC. In COSMIC CCM, the related vital sign resources are used to calculate a NEWS2 total score. If no NEWS2 total score is included in the observation the calculated score is saved on the contact. If the NEWS2 observation includes a NEWS2 total score, this score is validated with the use of the calculated score. If they do not match, an error is sent back to the sending system.

When a NEWS2 observation is created, the internal id of this observation (COSMIC care entry) is included in the content-location header in the response from Mediator. This id can then be used for updating an existing NEWS2 observation. By including the id as an identifier in the request, the old observation with that id will be invalidated and a new one created. The identifier must use following system.

Lock Functionality

If a certain type of resource is updated, but with the same (or older) lastUpdatedTime, the update will fail. The code which is returned is 200 OK. If the header prefer:return=OperationOutcome is added, a message will be received describing the error.

Specific Rules and Limitations

Type Description
Rule For creating a NEWS2 the external user must not be the patient. E.g. A healthcare professional is the intended user to create a NEWS2 with this API.

Profile Overview

BundleNews2

idΣ0..1string
id0..1string
extensionI0..*Extension
versionIdΣ0..1id
lastUpdatedΣ0..1instant
sourceS Σ0..1uri
profileΣ1..1canonical(StructureDefinition)
securityΣ0..*CodingBinding
tagΣ0..*Coding
implicitRulesΣ ?!0..1uri
language0..1codeBinding
identifierΣ0..1Identifier
typeΣ1..1codeBindingFixed Value
timestampΣ0..1instant
totalΣ I0..1unsignedInt
id0..1string
extensionI0..*Extension
modifierExtensionΣ ?! I0..*Extension
relationΣ1..1string
urlΣ1..1uri
id0..1string
extensionI0..*Extension
modifierExtensionΣ ?! I0..*Extension
fullUrlΣ0..1uri
resourceΣ0..1Resource
id0..1string
extensionI0..*Extension
modifierExtensionΣ ?! I0..*Extension
modeΣ0..1codeBinding
scoreΣ0..1decimal
id0..1string
extensionI0..*Extension
modifierExtensionΣ ?! I0..*Extension
methodΣ1..1codeBinding
urlΣ1..1uri
ifNoneMatchΣ0..1string
ifModifiedSinceΣ0..1instant
ifMatchΣ0..1string
ifNoneExistΣ0..1string
id0..1string
extensionI0..*Extension
modifierExtensionΣ ?! I0..*Extension
statusΣ1..1string
locationΣ0..1uri
etagΣ0..1string
lastModifiedΣ0..1instant
outcomeΣ0..1Resource
signatureΣ0..1Signature

Versions

COS version Profile version Required COSMIC version Date Description
3.0.0 1.0.0 R8.3.05 June 2021 Initial version, support for PUT.

Supported Operations

HTTP Methods

Method Description
PUT Create and update the NEWS2 score

Query Operations

Supported Queries

  1. PUT [baseURL]/Bundle/external-ID (create/update)

Error Codes

Specific error messages for Bundle are listed below.

Code Description Comment
400 Bundle entries may only contain Observations The NEWS2 bundle may only contain resources of type Observation
400 NEWS2 Observation must contain references to observations in the bundle The NEWS2 Observation may only contain references to observations that exist in the NEWS2 bundle
400 NEWS2 Observation can only contain references to the following observations: ACVPU, Blood pressure, Body temperature, Heart rate, Oxygen saturation, Respiratory rate The News2 observation may only contain references to one of each of the stated observations
400 News2 observation must be included. The NEWS2 bundle must contain a NEWS2 Observation
400 NEWS2 total score is invalid The NEWS2 score provided in the request does not match with the value calculated by COSMIC
400 The Snomed Code for […] could not be translated There is no mapping between the entered SNOMED code and the corresponding OpenEHR code on the FHIR server