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": "429e8493-df2a-4442-a033-daa59dc7fa94", "AccountID": "acc83407-0a6f-49a8-81fc-412a2a40967b", "RecordDate": "2024-04-01T12:25:33.8323637+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": "8e0b15f4-8981-4ecc-8000-6dcce07cea13", "ExternalID": "sample string 2", "Created": "2024-04-01T12:25:33.8323637+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": "429e8493-df2a-4442-a033-daa59dc7fa94", "AccountID": "acc83407-0a6f-49a8-81fc-412a2a40967b", "RecordDate": "2024-04-01T12:25:33.8323637+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": "8e0b15f4-8981-4ecc-8000-6dcce07cea13", "ExternalID": "sample string 2", "Created": "2024-04-01T12:25:33.8323637+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>acc83407-0a6f-49a8-81fc-412a2a40967b</AccountID> <Category>sample string 4</Category> <Data>sample string 9</Data> <Device>sample string 8</Device> <ID>429e8493-df2a-4442-a033-daa59dc7fa94</ID> <Reading>5</Reading> <RecordDate>2024-04-01T12:25:33.8323637+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>2024-04-01T12:25:33.8323637+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>8e0b15f4-8981-4ecc-8000-6dcce07cea13</d3p1:ID> <d3p1:Location>sample string 6</d3p1:Location> <d3p1:Name>sample string 4</d3p1:Name> </UserAccount> </WearableDataResponse> <WearableDataResponse> <AccountID>acc83407-0a6f-49a8-81fc-412a2a40967b</AccountID> <Category>sample string 4</Category> <Data>sample string 9</Data> <Device>sample string 8</Device> <ID>429e8493-df2a-4442-a033-daa59dc7fa94</ID> <Reading>5</Reading> <RecordDate>2024-04-01T12:25:33.8323637+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>2024-04-01T12:25:33.8323637+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>8e0b15f4-8981-4ecc-8000-6dcce07cea13</d3p1:ID> <d3p1:Location>sample string 6</d3p1:Location> <d3p1:Name>sample string 4</d3p1:Name> </UserAccount> </WearableDataResponse> </ArrayOfWearableDataResponse>