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": "67a5e645-626a-41c2-8f28-aaf98643dd5b", "AccountID": "95d0a0a6-1890-4732-bf20-fbac4032fa12", "RecordDate": "2023-09-14T07:52:39.9673203+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": "6ac98e98-65c4-4773-b439-8f594da3dc93", "ExternalID": "sample string 2", "Name": "sample string 3", "DOB": "2023-09-14T07:52:39.9673203+00:00", "Gender": "sample string 4", "Devices": "sample string 5", "Country": "sample string 6", "Age": 1, "Location": "sample string 8", "Created": "2023-09-14T07:52:39.9673203+00:00", "HasDevices": true, "OrganisationName": "sample string 9" } }, { "ID": "67a5e645-626a-41c2-8f28-aaf98643dd5b", "AccountID": "95d0a0a6-1890-4732-bf20-fbac4032fa12", "RecordDate": "2023-09-14T07:52:39.9673203+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": "6ac98e98-65c4-4773-b439-8f594da3dc93", "ExternalID": "sample string 2", "Name": "sample string 3", "DOB": "2023-09-14T07:52:39.9673203+00:00", "Gender": "sample string 4", "Devices": "sample string 5", "Country": "sample string 6", "Age": 1, "Location": "sample string 8", "Created": "2023-09-14T07:52:39.9673203+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>95d0a0a6-1890-4732-bf20-fbac4032fa12</AccountID> <Category>sample string 4</Category> <Data>sample string 9</Data> <Device>sample string 8</Device> <ID>67a5e645-626a-41c2-8f28-aaf98643dd5b</ID> <Reading>5</Reading> <RecordDate>2023-09-14T07:52:39.9673203+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>2023-09-14T07:52:39.9673203+00:00</d3p1:Created> <d3p1:DOB>2023-09-14T07:52:39.9673203+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>6ac98e98-65c4-4773-b439-8f594da3dc93</d3p1:ID> <d3p1:Location>sample string 8</d3p1:Location> <d3p1:Name>sample string 3</d3p1:Name> <d3p1:OrganisationID>c07f821e-b47a-40c7-a36a-8f5c2c307dab</d3p1:OrganisationID> <d3p1:OrganisationName>sample string 9</d3p1:OrganisationName> </UserAccount> </WearableRecordModel> <WearableRecordModel> <AccountID>95d0a0a6-1890-4732-bf20-fbac4032fa12</AccountID> <Category>sample string 4</Category> <Data>sample string 9</Data> <Device>sample string 8</Device> <ID>67a5e645-626a-41c2-8f28-aaf98643dd5b</ID> <Reading>5</Reading> <RecordDate>2023-09-14T07:52:39.9673203+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>2023-09-14T07:52:39.9673203+00:00</d3p1:Created> <d3p1:DOB>2023-09-14T07:52:39.9673203+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>6ac98e98-65c4-4773-b439-8f594da3dc93</d3p1:ID> <d3p1:Location>sample string 8</d3p1:Location> <d3p1:Name>sample string 3</d3p1:Name> <d3p1:OrganisationID>c07f821e-b47a-40c7-a36a-8f5c2c307dab</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": "ab78d6a4-be31-4bc7-a5f7-f232ec26fe8f", "AccountID": "36dc9e56-21b2-44ec-a2ae-4d234ecccc68", "RecordDate": "2023-09-14T07:52:40.0443732+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": "ca4fe302-faca-4219-8aae-e11dff5caaa0", "ExternalID": "sample string 2", "Name": "sample string 3", "DOB": "2023-09-14T07:52:40.0443732+00:00", "Gender": "sample string 4", "Devices": "sample string 5", "Country": "sample string 6", "Age": 1, "Location": "sample string 8", "Created": "2023-09-14T07:52:40.0443732+00:00", "HasDevices": true, "OrganisationName": "sample string 9" } }, { "ID": "ab78d6a4-be31-4bc7-a5f7-f232ec26fe8f", "AccountID": "36dc9e56-21b2-44ec-a2ae-4d234ecccc68", "RecordDate": "2023-09-14T07:52:40.0443732+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": "ca4fe302-faca-4219-8aae-e11dff5caaa0", "ExternalID": "sample string 2", "Name": "sample string 3", "DOB": "2023-09-14T07:52:40.0443732+00:00", "Gender": "sample string 4", "Devices": "sample string 5", "Country": "sample string 6", "Age": 1, "Location": "sample string 8", "Created": "2023-09-14T07:52:40.0443732+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>36dc9e56-21b2-44ec-a2ae-4d234ecccc68</AccountID> <Category>sample string 4</Category> <Data>sample string 9</Data> <Device>sample string 8</Device> <ID>ab78d6a4-be31-4bc7-a5f7-f232ec26fe8f</ID> <Reading>5</Reading> <RecordDate>2023-09-14T07:52:40.0443732+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>2023-09-14T07:52:40.0443732+00:00</d3p1:Created> <d3p1:DOB>2023-09-14T07:52:40.0443732+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>ca4fe302-faca-4219-8aae-e11dff5caaa0</d3p1:ID> <d3p1:Location>sample string 8</d3p1:Location> <d3p1:Name>sample string 3</d3p1:Name> <d3p1:OrganisationID>df86eb99-0a48-499e-92e4-c4798751f07a</d3p1:OrganisationID> <d3p1:OrganisationName>sample string 9</d3p1:OrganisationName> </UserAccount> </WearableRecordModel> <WearableRecordModel> <AccountID>36dc9e56-21b2-44ec-a2ae-4d234ecccc68</AccountID> <Category>sample string 4</Category> <Data>sample string 9</Data> <Device>sample string 8</Device> <ID>ab78d6a4-be31-4bc7-a5f7-f232ec26fe8f</ID> <Reading>5</Reading> <RecordDate>2023-09-14T07:52:40.0443732+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>2023-09-14T07:52:40.0443732+00:00</d3p1:Created> <d3p1:DOB>2023-09-14T07:52:40.0443732+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>ca4fe302-faca-4219-8aae-e11dff5caaa0</d3p1:ID> <d3p1:Location>sample string 8</d3p1:Location> <d3p1:Name>sample string 3</d3p1:Name> <d3p1:OrganisationID>df86eb99-0a48-499e-92e4-c4798751f07a</d3p1:OrganisationID> <d3p1:OrganisationName>sample string 9</d3p1:OrganisationName> </UserAccount> </WearableRecordModel> </ArrayOfWearableRecordModel>