POST api/Records/Direct

fetch records for an account directly

Request Information

URI Parameters

None.

Body Parameters

DirectWearableDataRequest
NameDescriptionTypeAdditional 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">
  <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 WearableDataResponse
NameDescriptionTypeAdditional 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

AccountResponse

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ID": "d5f1443e-c3a2-4ffc-bc78-79a58227113a",
    "AccountID": "682fb365-8263-4c45-97f2-6c39848b6594",
    "RecordDate": "2021-10-18T16:50:11.472366+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": {
      "ExternalID": "sample string 1",
      "Created": "2021-10-18T16:50:11.472366+00:00",
      "Country": "sample string 2",
      "Name": "sample string 3",
      "Age": "sample string 4",
      "Location": "sample string 5",
      "DateOfBirth": "sample string 6",
      "Gender": "sample string 7",
      "ID": "58ab4642-9e31-48ec-838e-e273f23e6916"
    }
  },
  {
    "ID": "d5f1443e-c3a2-4ffc-bc78-79a58227113a",
    "AccountID": "682fb365-8263-4c45-97f2-6c39848b6594",
    "RecordDate": "2021-10-18T16:50:11.472366+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": {
      "ExternalID": "sample string 1",
      "Created": "2021-10-18T16:50:11.472366+00:00",
      "Country": "sample string 2",
      "Name": "sample string 3",
      "Age": "sample string 4",
      "Location": "sample string 5",
      "DateOfBirth": "sample string 6",
      "Gender": "sample string 7",
      "ID": "58ab4642-9e31-48ec-838e-e273f23e6916"
    }
  }
]

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">
  <WearableDataResponse>
    <AccountID>682fb365-8263-4c45-97f2-6c39848b6594</AccountID>
    <Category>sample string 4</Category>
    <Data>sample string 9</Data>
    <Device>sample string 8</Device>
    <ID>d5f1443e-c3a2-4ffc-bc78-79a58227113a</ID>
    <Reading>5</Reading>
    <RecordDate>2021-10-18T16:50:11.472366+00:00</RecordDate>
    <SNOMEDCode>sample string 6</SNOMEDCode>
    <Title>sample string 10</Title>
    <Unit>sample string 7</Unit>
    <UserAccount>
      <Age>sample string 4</Age>
      <Country>sample string 2</Country>
      <Created>2021-10-18T16:50:11.472366+00:00</Created>
      <DateOfBirth>sample string 6</DateOfBirth>
      <ExternalID>sample string 1</ExternalID>
      <Gender>sample string 7</Gender>
      <ID>58ab4642-9e31-48ec-838e-e273f23e6916</ID>
      <Location>sample string 5</Location>
      <Name>sample string 3</Name>
    </UserAccount>
  </WearableDataResponse>
  <WearableDataResponse>
    <AccountID>682fb365-8263-4c45-97f2-6c39848b6594</AccountID>
    <Category>sample string 4</Category>
    <Data>sample string 9</Data>
    <Device>sample string 8</Device>
    <ID>d5f1443e-c3a2-4ffc-bc78-79a58227113a</ID>
    <Reading>5</Reading>
    <RecordDate>2021-10-18T16:50:11.472366+00:00</RecordDate>
    <SNOMEDCode>sample string 6</SNOMEDCode>
    <Title>sample string 10</Title>
    <Unit>sample string 7</Unit>
    <UserAccount>
      <Age>sample string 4</Age>
      <Country>sample string 2</Country>
      <Created>2021-10-18T16:50:11.472366+00:00</Created>
      <DateOfBirth>sample string 6</DateOfBirth>
      <ExternalID>sample string 1</ExternalID>
      <Gender>sample string 7</Gender>
      <ID>58ab4642-9e31-48ec-838e-e273f23e6916</ID>
      <Location>sample string 5</Location>
      <Name>sample string 3</Name>
    </UserAccount>
  </WearableDataResponse>
</ArrayOfWearableDataResponse>