Skip to main content

DataSample

@icure/medical-device-sdk / DataSample

Class: DataSample

An Observation represents a medical information, provided by a Data Owner concerning one specific [Patient], for a T moment. Provided by a Data Owner means that the observation may have been either provided by a [HealthcareProfessional] or a [Patient], either collected by a [MedicalDevice]. Observations provided by the patient include subjective information, such as complaints, reason for visit, feelings, etc. or objective information like bio-metric measures (blood pressure, temperature, heart beat, etc.), or physical exam description, diagnosis, prescription, integration of lab reports from another [HealthcareProfessional], action plan, etc. Any action performed by the [HealthcareProfessional] (which is relevant for a [HealthcareElement] of a [Patient]) is considered as a [DataSample]. The observations can be linked to conditions or other structuring elements of the medical record

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new DataSample(json)

Parameters

NameType
jsonIDataSample

Defined in

src/models/DataSample.ts:23

Properties

author

Optional author: string

The id of the [User] that created this observation. When creating the observation, will be filled automatically by the current user id if not provided.

Defined in

src/models/DataSample.ts:96


batchId

Optional batchId: string

Id of the batch that embeds this observation

Defined in

src/models/DataSample.ts:52


canvasesIds

Optional canvasesIds: Set<string>

List of Ids of all canvases linked to the Observation. Only used when the Observation is emitted outside of its batch.

Defined in

src/models/DataSample.ts:60


closingDate

Optional closingDate: number

The date (YYYYMMDDhhmmss) marking the end of the Observation

Defined in

src/models/DataSample.ts:80


codes

codes: Set<CodingReference>

A code is an item from a codification system that qualifies the content of this observation. SNOMED-CT, ICPC-2 or ICD-10 codifications systems can be used for codes

Defined in

src/models/DataSample.ts:112


comment

Optional comment: string

Text, comments on the Observation provided

Defined in

src/models/DataSample.ts:104


content

content: Object

Information contained in the observation (Measure, number, ...). Content is localized, using ISO language code as key

Index signature

[key: string]: Content

Defined in

src/models/DataSample.ts:68


created

Optional created: number

The timestamp (unix epoch in ms) of creation of this observation in iCure system. Will be filled automatically if not provided.

Defined in

src/models/DataSample.ts:84


endOfLife

Optional endOfLife: number

Soft delete (unix epoch in ms) timestamp of the observation

Defined in

src/models/DataSample.ts:92


healthcareElementIds

Optional healthcareElementIds: Set<string>

List of IDs of all conditions for which the observation is provided. Only used when the Observation is emitted outside of its batch

Defined in

src/models/DataSample.ts:56


id

Optional id: string

The Id of the Observation. We encourage using either a v4 UUID or a HL7 Id.

Defined in

src/models/DataSample.ts:40


identifiers

identifiers: Identifier[]

Typically used for business / client identifiers. An identifier should identify an observation uniquely and unambiguously. However, iCure can't guarantee the uniqueness of those identifiers : This is something you need to take care of.

Defined in

src/models/DataSample.ts:48


index

Optional index: number

Used for sorting observations inside an upper object (A batch, a transaction, a FHIR bundle, ...)

Defined in

src/models/DataSample.ts:64


labels

labels: Set<CodingReference>

A label is an item from a codification system that qualifies an observation as being member of a certain class, whatever the value it might have taken. If the label qualifies the content of a field, it means that whatever the content of the field, the label will always apply. LOINC is a codification system typically used for labels.

Defined in

src/models/DataSample.ts:116


modified

Optional modified: number

The timestamp (unix epoch in ms) of the latest modification of this observation in iCure system. Will be filled automatically if not provided.

Defined in

src/models/DataSample.ts:88


openingDate

Optional openingDate: number

The date (YYYYMMDDhhmmss) of the start of the Observation

Defined in

src/models/DataSample.ts:76


qualifiedLinks: Object

Links towards related observations (possibly in other batches)

Index signature

[key: string]: { [key: string]: string; }

Defined in

src/models/DataSample.ts:108


responsible

Optional responsible: string

The id of the data owner that is responsible of this observation. When creating the observation, will be filled automatically by the current user data owner id ([HealthcareProfessional], [Patient] or [MedicalDevice]) if missing

Defined in

src/models/DataSample.ts:100


systemMetaData

Optional systemMetaData: SystemMetaDataEncrypted

Defined in

src/models/DataSample.ts:117


transactionId

Optional transactionId: string

The transactionId is used when a single observation had to be split into parts for technical reasons. Several observations with the same non null transaction id form one single observation

Defined in

src/models/DataSample.ts:44


valueDate

Optional valueDate: number

The date (YYYYMMDDhhmmss) when the Observation is noted to have started and also closes on the same date

Defined in

src/models/DataSample.ts:72

Methods

marshal

marshal(): IDataSample

Returns

IDataSample

Defined in

src/models/DataSample.ts:119