POST api/Records/Direct
fetch records for an account directly
Request Information
URI Parameters
None.
Body Parameters
Data request model
DirectWearableDataRequestName | Description | Type | Additional information |
---|---|---|---|
DateFrom |
Date From |
string |
None. |
DateTo |
Date To |
string |
None. |
ExternalID |
External ID of the user / account |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "DateFrom": "sample string 1", "DateTo": "sample string 2", "ExternalID": "sample string 3" }
application/xml, text/xml
Sample:
<DirectWearableDataRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tekasco.HealthStream.Models.Records"> <DateFrom>sample string 1</DateFrom> <DateTo>sample string 2</DateTo> <ExternalID>sample string 3</ExternalID> </DirectWearableDataRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of WearableDataResponseName | 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 |
AccountDataResponse |
None. |
Response Formats
application/json, text/json
Sample:
[ { "ID": "ec07d9ae-96e0-4870-8939-7e46741d7d7b", "AccountID": "45341390-9f11-46a4-ab39-bbcfb0d5bf24", "RecordDate": "2023-05-22T09:27:48.2434053+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": "e7881280-ae18-4366-b071-c76c9c618691", "ExternalID": "sample string 2", "Created": "2023-05-22T09:27:48.2434053+00:00", "Country": "sample string 3", "Name": "sample string 4", "Age": "sample string 5", "Location": "sample string 6", "DateOfBirth": "sample string 7", "Gender": "sample string 8" } }, { "ID": "ec07d9ae-96e0-4870-8939-7e46741d7d7b", "AccountID": "45341390-9f11-46a4-ab39-bbcfb0d5bf24", "RecordDate": "2023-05-22T09:27:48.2434053+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": "e7881280-ae18-4366-b071-c76c9c618691", "ExternalID": "sample string 2", "Created": "2023-05-22T09:27:48.2434053+00:00", "Country": "sample string 3", "Name": "sample string 4", "Age": "sample string 5", "Location": "sample string 6", "DateOfBirth": "sample string 7", "Gender": "sample string 8" } } ]
application/xml, text/xml
Sample:
<ArrayOfWearableDataResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tekasco.HealthStream.Models.Records"> <WearableDataResponse> <AccountID>45341390-9f11-46a4-ab39-bbcfb0d5bf24</AccountID> <Category>sample string 4</Category> <Data>sample string 9</Data> <Device>sample string 8</Device> <ID>ec07d9ae-96e0-4870-8939-7e46741d7d7b</ID> <Reading>5</Reading> <RecordDate>2023-05-22T09:27:48.2434053+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>sample string 5</d3p1:Age> <d3p1:Country>sample string 3</d3p1:Country> <d3p1:Created>2023-05-22T09:27:48.2434053+00:00</d3p1:Created> <d3p1:DateOfBirth>sample string 7</d3p1:DateOfBirth> <d3p1:ExternalID>sample string 2</d3p1:ExternalID> <d3p1:Gender>sample string 8</d3p1:Gender> <d3p1:ID>e7881280-ae18-4366-b071-c76c9c618691</d3p1:ID> <d3p1:Location>sample string 6</d3p1:Location> <d3p1:Name>sample string 4</d3p1:Name> </UserAccount> </WearableDataResponse> <WearableDataResponse> <AccountID>45341390-9f11-46a4-ab39-bbcfb0d5bf24</AccountID> <Category>sample string 4</Category> <Data>sample string 9</Data> <Device>sample string 8</Device> <ID>ec07d9ae-96e0-4870-8939-7e46741d7d7b</ID> <Reading>5</Reading> <RecordDate>2023-05-22T09:27:48.2434053+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>sample string 5</d3p1:Age> <d3p1:Country>sample string 3</d3p1:Country> <d3p1:Created>2023-05-22T09:27:48.2434053+00:00</d3p1:Created> <d3p1:DateOfBirth>sample string 7</d3p1:DateOfBirth> <d3p1:ExternalID>sample string 2</d3p1:ExternalID> <d3p1:Gender>sample string 8</d3p1:Gender> <d3p1:ID>e7881280-ae18-4366-b071-c76c9c618691</d3p1:ID> <d3p1:Location>sample string 6</d3p1:Location> <d3p1:Name>sample string 4</d3p1:Name> </UserAccount> </WearableDataResponse> </ArrayOfWearableDataResponse>