POST api/Records/CreateMultiple
Add a new records from a wearable device
Request Information
URI Parameters
None.
Body Parameters
List of records
Collection of 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": "85cde2c7-b8ec-42dc-8aef-dff5791a0d88", "AccountID": "30a2fe2d-862d-4358-b9ec-43ad9a827cd4", "RecordDate": "2024-04-04T15:24:42.90845+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": "0c961faa-9d7f-4872-b0fa-06113a9b7da9", "ExternalID": "sample string 2", "Name": "sample string 3", "DOB": "2024-04-04T15:24:42.90845+00:00", "Gender": "sample string 4", "Devices": "sample string 5", "Country": "sample string 6", "Age": 1, "Location": "sample string 8", "Created": "2024-04-04T15:24:42.90845+00:00", "HasDevices": true, "OrganisationName": "sample string 9" } }, { "ID": "85cde2c7-b8ec-42dc-8aef-dff5791a0d88", "AccountID": "30a2fe2d-862d-4358-b9ec-43ad9a827cd4", "RecordDate": "2024-04-04T15:24:42.90845+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": "0c961faa-9d7f-4872-b0fa-06113a9b7da9", "ExternalID": "sample string 2", "Name": "sample string 3", "DOB": "2024-04-04T15:24:42.90845+00:00", "Gender": "sample string 4", "Devices": "sample string 5", "Country": "sample string 6", "Age": 1, "Location": "sample string 8", "Created": "2024-04-04T15:24:42.90845+00:00", "HasDevices": true, "OrganisationName": "sample string 9" } } ]
application/xml, text/xml
Sample:
<ArrayOfWearableRecordModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tekasco.HealthStream.Models.Records"> <WearableRecordModel> <AccountID>30a2fe2d-862d-4358-b9ec-43ad9a827cd4</AccountID> <Category>sample string 4</Category> <Data>sample string 9</Data> <Device>sample string 8</Device> <ID>85cde2c7-b8ec-42dc-8aef-dff5791a0d88</ID> <Reading>5</Reading> <RecordDate>2024-04-04T15:24:42.90845+00:00</RecordDate> <SNOMEDCode>sample string 6</SNOMEDCode> <Title>sample string 10</Title> <Unit>sample string 7</Unit> <UserAccount xmlns:d3p1="http://schemas.datacontract.org/2004/07/Tekasco.HealthStream.Models.Accounts"> <d3p1:Age>1</d3p1:Age> <d3p1:Country>sample string 6</d3p1:Country> <d3p1:Created>2024-04-04T15:24:42.90845+00:00</d3p1:Created> <d3p1:DOB>2024-04-04T15:24:42.90845+00:00</d3p1:DOB> <d3p1:Devices>sample string 5</d3p1:Devices> <d3p1:ExternalID>sample string 2</d3p1:ExternalID> <d3p1:Gender>sample string 4</d3p1:Gender> <d3p1:HasDevices>true</d3p1:HasDevices> <d3p1:ID>0c961faa-9d7f-4872-b0fa-06113a9b7da9</d3p1:ID> <d3p1:Location>sample string 8</d3p1:Location> <d3p1:Name>sample string 3</d3p1:Name> <d3p1:OrganisationID>b01a9385-ae7e-46c9-9f72-b54f1c86d1b9</d3p1:OrganisationID> <d3p1:OrganisationName>sample string 9</d3p1:OrganisationName> </UserAccount> </WearableRecordModel> <WearableRecordModel> <AccountID>30a2fe2d-862d-4358-b9ec-43ad9a827cd4</AccountID> <Category>sample string 4</Category> <Data>sample string 9</Data> <Device>sample string 8</Device> <ID>85cde2c7-b8ec-42dc-8aef-dff5791a0d88</ID> <Reading>5</Reading> <RecordDate>2024-04-04T15:24:42.90845+00:00</RecordDate> <SNOMEDCode>sample string 6</SNOMEDCode> <Title>sample string 10</Title> <Unit>sample string 7</Unit> <UserAccount xmlns:d3p1="http://schemas.datacontract.org/2004/07/Tekasco.HealthStream.Models.Accounts"> <d3p1:Age>1</d3p1:Age> <d3p1:Country>sample string 6</d3p1:Country> <d3p1:Created>2024-04-04T15:24:42.90845+00:00</d3p1:Created> <d3p1:DOB>2024-04-04T15:24:42.90845+00:00</d3p1:DOB> <d3p1:Devices>sample string 5</d3p1:Devices> <d3p1:ExternalID>sample string 2</d3p1:ExternalID> <d3p1:Gender>sample string 4</d3p1:Gender> <d3p1:HasDevices>true</d3p1:HasDevices> <d3p1:ID>0c961faa-9d7f-4872-b0fa-06113a9b7da9</d3p1:ID> <d3p1:Location>sample string 8</d3p1:Location> <d3p1:Name>sample string 3</d3p1:Name> <d3p1:OrganisationID>b01a9385-ae7e-46c9-9f72-b54f1c86d1b9</d3p1:OrganisationID> <d3p1:OrganisationName>sample string 9</d3p1:OrganisationName> </UserAccount> </WearableRecordModel> </ArrayOfWearableRecordModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Added list of records
Collection of 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": "3fcccc1f-70af-4595-91aa-3023e446de7d", "AccountID": "eaf9379a-7d84-4a82-951b-323cd0b908bc", "RecordDate": "2024-04-04T15:24:42.9396976+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": "896d2f34-2d3c-4c64-b6ba-718d36aa3f86", "ExternalID": "sample string 2", "Name": "sample string 3", "DOB": "2024-04-04T15:24:42.9396976+00:00", "Gender": "sample string 4", "Devices": "sample string 5", "Country": "sample string 6", "Age": 1, "Location": "sample string 8", "Created": "2024-04-04T15:24:42.9396976+00:00", "HasDevices": true, "OrganisationName": "sample string 9" } }, { "ID": "3fcccc1f-70af-4595-91aa-3023e446de7d", "AccountID": "eaf9379a-7d84-4a82-951b-323cd0b908bc", "RecordDate": "2024-04-04T15:24:42.9396976+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": "896d2f34-2d3c-4c64-b6ba-718d36aa3f86", "ExternalID": "sample string 2", "Name": "sample string 3", "DOB": "2024-04-04T15:24:42.9396976+00:00", "Gender": "sample string 4", "Devices": "sample string 5", "Country": "sample string 6", "Age": 1, "Location": "sample string 8", "Created": "2024-04-04T15:24:42.9396976+00:00", "HasDevices": true, "OrganisationName": "sample string 9" } } ]
application/xml, text/xml
Sample:
<ArrayOfWearableRecordModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tekasco.HealthStream.Models.Records"> <WearableRecordModel> <AccountID>eaf9379a-7d84-4a82-951b-323cd0b908bc</AccountID> <Category>sample string 4</Category> <Data>sample string 9</Data> <Device>sample string 8</Device> <ID>3fcccc1f-70af-4595-91aa-3023e446de7d</ID> <Reading>5</Reading> <RecordDate>2024-04-04T15:24:42.9396976+00:00</RecordDate> <SNOMEDCode>sample string 6</SNOMEDCode> <Title>sample string 10</Title> <Unit>sample string 7</Unit> <UserAccount xmlns:d3p1="http://schemas.datacontract.org/2004/07/Tekasco.HealthStream.Models.Accounts"> <d3p1:Age>1</d3p1:Age> <d3p1:Country>sample string 6</d3p1:Country> <d3p1:Created>2024-04-04T15:24:42.9396976+00:00</d3p1:Created> <d3p1:DOB>2024-04-04T15:24:42.9396976+00:00</d3p1:DOB> <d3p1:Devices>sample string 5</d3p1:Devices> <d3p1:ExternalID>sample string 2</d3p1:ExternalID> <d3p1:Gender>sample string 4</d3p1:Gender> <d3p1:HasDevices>true</d3p1:HasDevices> <d3p1:ID>896d2f34-2d3c-4c64-b6ba-718d36aa3f86</d3p1:ID> <d3p1:Location>sample string 8</d3p1:Location> <d3p1:Name>sample string 3</d3p1:Name> <d3p1:OrganisationID>7f13c6c0-ade3-4d4c-944c-c975a86e5c81</d3p1:OrganisationID> <d3p1:OrganisationName>sample string 9</d3p1:OrganisationName> </UserAccount> </WearableRecordModel> <WearableRecordModel> <AccountID>eaf9379a-7d84-4a82-951b-323cd0b908bc</AccountID> <Category>sample string 4</Category> <Data>sample string 9</Data> <Device>sample string 8</Device> <ID>3fcccc1f-70af-4595-91aa-3023e446de7d</ID> <Reading>5</Reading> <RecordDate>2024-04-04T15:24:42.9396976+00:00</RecordDate> <SNOMEDCode>sample string 6</SNOMEDCode> <Title>sample string 10</Title> <Unit>sample string 7</Unit> <UserAccount xmlns:d3p1="http://schemas.datacontract.org/2004/07/Tekasco.HealthStream.Models.Accounts"> <d3p1:Age>1</d3p1:Age> <d3p1:Country>sample string 6</d3p1:Country> <d3p1:Created>2024-04-04T15:24:42.9396976+00:00</d3p1:Created> <d3p1:DOB>2024-04-04T15:24:42.9396976+00:00</d3p1:DOB> <d3p1:Devices>sample string 5</d3p1:Devices> <d3p1:ExternalID>sample string 2</d3p1:ExternalID> <d3p1:Gender>sample string 4</d3p1:Gender> <d3p1:HasDevices>true</d3p1:HasDevices> <d3p1:ID>896d2f34-2d3c-4c64-b6ba-718d36aa3f86</d3p1:ID> <d3p1:Location>sample string 8</d3p1:Location> <d3p1:Name>sample string 3</d3p1:Name> <d3p1:OrganisationID>7f13c6c0-ade3-4d4c-944c-c975a86e5c81</d3p1:OrganisationID> <d3p1:OrganisationName>sample string 9</d3p1:OrganisationName> </UserAccount> </WearableRecordModel> </ArrayOfWearableRecordModel>