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": "eeb86972-48eb-43c4-a0d9-e0c08d79a9bb", "AccountID": "ce668e2d-ef54-4d4d-8e1b-9646f845853d", "RecordDate": "2023-05-22T06:21:18.2996916+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": "a49c9a32-5e62-41ef-b2ec-2bb103be3bcb", "ExternalID": "sample string 2", "Name": "sample string 3", "DOB": "2023-05-22T06:21:18.2996916+00:00", "Gender": "sample string 4", "Devices": "sample string 5", "Country": "sample string 6", "Age": 1, "Location": "sample string 8", "Created": "2023-05-22T06:21:18.2996916+00:00", "HasDevices": true, "OrganisationName": "sample string 9" } }, { "ID": "eeb86972-48eb-43c4-a0d9-e0c08d79a9bb", "AccountID": "ce668e2d-ef54-4d4d-8e1b-9646f845853d", "RecordDate": "2023-05-22T06:21:18.2996916+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": "a49c9a32-5e62-41ef-b2ec-2bb103be3bcb", "ExternalID": "sample string 2", "Name": "sample string 3", "DOB": "2023-05-22T06:21:18.2996916+00:00", "Gender": "sample string 4", "Devices": "sample string 5", "Country": "sample string 6", "Age": 1, "Location": "sample string 8", "Created": "2023-05-22T06:21:18.2996916+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>ce668e2d-ef54-4d4d-8e1b-9646f845853d</AccountID> <Category>sample string 4</Category> <Data>sample string 9</Data> <Device>sample string 8</Device> <ID>eeb86972-48eb-43c4-a0d9-e0c08d79a9bb</ID> <Reading>5</Reading> <RecordDate>2023-05-22T06:21:18.2996916+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-05-22T06:21:18.2996916+00:00</d3p1:Created> <d3p1:DOB>2023-05-22T06:21:18.2996916+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>a49c9a32-5e62-41ef-b2ec-2bb103be3bcb</d3p1:ID> <d3p1:Location>sample string 8</d3p1:Location> <d3p1:Name>sample string 3</d3p1:Name> <d3p1:OrganisationID>6a0e9f04-fba1-4d19-b845-d8034272e22d</d3p1:OrganisationID> <d3p1:OrganisationName>sample string 9</d3p1:OrganisationName> </UserAccount> </WearableRecordModel> <WearableRecordModel> <AccountID>ce668e2d-ef54-4d4d-8e1b-9646f845853d</AccountID> <Category>sample string 4</Category> <Data>sample string 9</Data> <Device>sample string 8</Device> <ID>eeb86972-48eb-43c4-a0d9-e0c08d79a9bb</ID> <Reading>5</Reading> <RecordDate>2023-05-22T06:21:18.2996916+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-05-22T06:21:18.2996916+00:00</d3p1:Created> <d3p1:DOB>2023-05-22T06:21:18.2996916+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>a49c9a32-5e62-41ef-b2ec-2bb103be3bcb</d3p1:ID> <d3p1:Location>sample string 8</d3p1:Location> <d3p1:Name>sample string 3</d3p1:Name> <d3p1:OrganisationID>6a0e9f04-fba1-4d19-b845-d8034272e22d</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": "b27b8149-c883-4ba6-bc47-e2f3225e7a3e", "AccountID": "45a8fd7f-c325-47e1-93a6-062afa37aec9", "RecordDate": "2023-05-22T06:21:18.4281218+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": "762dba67-31b4-4f56-a404-7953c2eb5157", "ExternalID": "sample string 2", "Name": "sample string 3", "DOB": "2023-05-22T06:21:18.4281218+00:00", "Gender": "sample string 4", "Devices": "sample string 5", "Country": "sample string 6", "Age": 1, "Location": "sample string 8", "Created": "2023-05-22T06:21:18.4281218+00:00", "HasDevices": true, "OrganisationName": "sample string 9" } }, { "ID": "b27b8149-c883-4ba6-bc47-e2f3225e7a3e", "AccountID": "45a8fd7f-c325-47e1-93a6-062afa37aec9", "RecordDate": "2023-05-22T06:21:18.4281218+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": "762dba67-31b4-4f56-a404-7953c2eb5157", "ExternalID": "sample string 2", "Name": "sample string 3", "DOB": "2023-05-22T06:21:18.4281218+00:00", "Gender": "sample string 4", "Devices": "sample string 5", "Country": "sample string 6", "Age": 1, "Location": "sample string 8", "Created": "2023-05-22T06:21:18.4281218+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>45a8fd7f-c325-47e1-93a6-062afa37aec9</AccountID> <Category>sample string 4</Category> <Data>sample string 9</Data> <Device>sample string 8</Device> <ID>b27b8149-c883-4ba6-bc47-e2f3225e7a3e</ID> <Reading>5</Reading> <RecordDate>2023-05-22T06:21:18.4281218+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-05-22T06:21:18.4281218+00:00</d3p1:Created> <d3p1:DOB>2023-05-22T06:21:18.4281218+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>762dba67-31b4-4f56-a404-7953c2eb5157</d3p1:ID> <d3p1:Location>sample string 8</d3p1:Location> <d3p1:Name>sample string 3</d3p1:Name> <d3p1:OrganisationID>48a6bc48-f2ba-48bf-9384-249594f4bb99</d3p1:OrganisationID> <d3p1:OrganisationName>sample string 9</d3p1:OrganisationName> </UserAccount> </WearableRecordModel> <WearableRecordModel> <AccountID>45a8fd7f-c325-47e1-93a6-062afa37aec9</AccountID> <Category>sample string 4</Category> <Data>sample string 9</Data> <Device>sample string 8</Device> <ID>b27b8149-c883-4ba6-bc47-e2f3225e7a3e</ID> <Reading>5</Reading> <RecordDate>2023-05-22T06:21:18.4281218+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-05-22T06:21:18.4281218+00:00</d3p1:Created> <d3p1:DOB>2023-05-22T06:21:18.4281218+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>762dba67-31b4-4f56-a404-7953c2eb5157</d3p1:ID> <d3p1:Location>sample string 8</d3p1:Location> <d3p1:Name>sample string 3</d3p1:Name> <d3p1:OrganisationID>48a6bc48-f2ba-48bf-9384-249594f4bb99</d3p1:OrganisationID> <d3p1:OrganisationName>sample string 9</d3p1:OrganisationName> </UserAccount> </WearableRecordModel> </ArrayOfWearableRecordModel>