POST api/Records/Create
Add a new record from a wearable device
Request Information
URI Parameters
None.
Body Parameters
Record model
WearableRecordModelName | Description | Type | Additional information |
---|---|---|---|
ID |
Record ID |
globally unique identifier |
None. |
AccountID |
ID for the account |
globally unique identifier |
None. |
RecordDate |
Record Date |
date |
None. |
Category |
Record Category |
string |
None. |
Reading |
Reading value |
decimal number |
None. |
SNOMEDCode |
The SNOMED Code for the record |
string |
None. |
Unit |
Reading Unit |
string |
None. |
Device |
Device the data came from |
string |
None. |
Data |
Text data value |
string |
None. |
Title |
Record title |
string |
None. |
UserAccount |
Details of the account |
AccountModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "ID": "ddfe3b46-a09f-49ff-beda-5d42129f4cca", "AccountID": "3d0013b2-1c09-436d-8466-4b23dcdde3e5", "RecordDate": "2024-03-17T02:36:23.7901716+00:00", "Category": "sample string 4", "Reading": 5.0, "SNOMEDCode": "sample string 6", "Unit": "sample string 7", "Device": "sample string 8", "Data": "sample string 9", "Title": "sample string 10", "UserAccount": { "ID": "90e84da9-f9fa-48ac-a85f-e481ed78d770", "ExternalID": "sample string 2", "Name": "sample string 3", "DOB": "2024-03-17T02:36:23.7901716+00:00", "Gender": "sample string 4", "Devices": "sample string 5", "Country": "sample string 6", "Age": 1, "Location": "sample string 8", "Created": "2024-03-17T02:36:23.7901716+00:00", "HasDevices": true, "OrganisationName": "sample string 9" } }
application/xml, text/xml
Sample:
<WearableRecordModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tekasco.HealthStream.Models.Records"> <AccountID>3d0013b2-1c09-436d-8466-4b23dcdde3e5</AccountID> <Category>sample string 4</Category> <Data>sample string 9</Data> <Device>sample string 8</Device> <ID>ddfe3b46-a09f-49ff-beda-5d42129f4cca</ID> <Reading>5</Reading> <RecordDate>2024-03-17T02:36:23.7901716+00:00</RecordDate> <SNOMEDCode>sample string 6</SNOMEDCode> <Title>sample string 10</Title> <Unit>sample string 7</Unit> <UserAccount xmlns:d2p1="http://schemas.datacontract.org/2004/07/Tekasco.HealthStream.Models.Accounts"> <d2p1:Age>1</d2p1:Age> <d2p1:Country>sample string 6</d2p1:Country> <d2p1:Created>2024-03-17T02:36:23.7901716+00:00</d2p1:Created> <d2p1:DOB>2024-03-17T02:36:23.7901716+00:00</d2p1:DOB> <d2p1:Devices>sample string 5</d2p1:Devices> <d2p1:ExternalID>sample string 2</d2p1:ExternalID> <d2p1:Gender>sample string 4</d2p1:Gender> <d2p1:HasDevices>true</d2p1:HasDevices> <d2p1:ID>90e84da9-f9fa-48ac-a85f-e481ed78d770</d2p1:ID> <d2p1:Location>sample string 8</d2p1:Location> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:OrganisationID>55917f21-002c-45e9-83d4-ecca2326ccd8</d2p1:OrganisationID> <d2p1:OrganisationName>sample string 9</d2p1:OrganisationName> </UserAccount> </WearableRecordModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Added record
WearableRecordModelName | Description | Type | Additional information |
---|---|---|---|
ID |
Record ID |
globally unique identifier |
None. |
AccountID |
ID for the account |
globally unique identifier |
None. |
RecordDate |
Record Date |
date |
None. |
Category |
Record Category |
string |
None. |
Reading |
Reading value |
decimal number |
None. |
SNOMEDCode |
The SNOMED Code for the record |
string |
None. |
Unit |
Reading Unit |
string |
None. |
Device |
Device the data came from |
string |
None. |
Data |
Text data value |
string |
None. |
Title |
Record title |
string |
None. |
UserAccount |
Details of the account |
AccountModel |
None. |
Response Formats
application/json, text/json
Sample:
{ "ID": "667d732b-acfd-4bb8-b142-fd8d7cd5e874", "AccountID": "abbbb058-412c-48c9-9f33-71052ed3fd34", "RecordDate": "2024-03-17T02:36:23.7901716+00:00", "Category": "sample string 4", "Reading": 5.0, "SNOMEDCode": "sample string 6", "Unit": "sample string 7", "Device": "sample string 8", "Data": "sample string 9", "Title": "sample string 10", "UserAccount": { "ID": "57151f89-cd05-48bc-9092-0aaf8f63f627", "ExternalID": "sample string 2", "Name": "sample string 3", "DOB": "2024-03-17T02:36:23.7901716+00:00", "Gender": "sample string 4", "Devices": "sample string 5", "Country": "sample string 6", "Age": 1, "Location": "sample string 8", "Created": "2024-03-17T02:36:23.7901716+00:00", "HasDevices": true, "OrganisationName": "sample string 9" } }
application/xml, text/xml
Sample:
<WearableRecordModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tekasco.HealthStream.Models.Records"> <AccountID>abbbb058-412c-48c9-9f33-71052ed3fd34</AccountID> <Category>sample string 4</Category> <Data>sample string 9</Data> <Device>sample string 8</Device> <ID>667d732b-acfd-4bb8-b142-fd8d7cd5e874</ID> <Reading>5</Reading> <RecordDate>2024-03-17T02:36:23.7901716+00:00</RecordDate> <SNOMEDCode>sample string 6</SNOMEDCode> <Title>sample string 10</Title> <Unit>sample string 7</Unit> <UserAccount xmlns:d2p1="http://schemas.datacontract.org/2004/07/Tekasco.HealthStream.Models.Accounts"> <d2p1:Age>1</d2p1:Age> <d2p1:Country>sample string 6</d2p1:Country> <d2p1:Created>2024-03-17T02:36:23.7901716+00:00</d2p1:Created> <d2p1:DOB>2024-03-17T02:36:23.7901716+00:00</d2p1:DOB> <d2p1:Devices>sample string 5</d2p1:Devices> <d2p1:ExternalID>sample string 2</d2p1:ExternalID> <d2p1:Gender>sample string 4</d2p1:Gender> <d2p1:HasDevices>true</d2p1:HasDevices> <d2p1:ID>57151f89-cd05-48bc-9092-0aaf8f63f627</d2p1:ID> <d2p1:Location>sample string 8</d2p1:Location> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:OrganisationID>06620669-1496-49ec-95a5-00e443596341</d2p1:OrganisationID> <d2p1:OrganisationName>sample string 9</d2p1:OrganisationName> </UserAccount> </WearableRecordModel>