metric

Create patient health metrics

Create one or more patient health metrics.

Example for creating a patient health result with a patient specified using meta.query instead of id:

  {
    "data": {
      "type": "patient_health_metric",
       "attributes": {
         "code": {
           "system": "LOINC",
           "value": "13457-7"
         },
         "type": "ldl_cholesterol",
         "occurred_at": "2017-03-14T11:00:57.000Z",
         "value": 121,
         "unit": "mg/dl"
      },
      "relationships": {
        "patient": {
          "data": {
            "type": "patient",
            "meta": {
              "query": {
                "identifier": {
                  "system": "medical-record-number",
                  "value": "121212"
                },
                "organization": "58c4554710123c5c40dbab81"
              }
            }
          }
        }
      }
    }
  }
post/patient_health_metric

Request

  • Base URL
    https://api.twinehealth.com/pub
  • Auth
    none declared

Request body

Example request

{
  "data": {
    "data": {
      "type": "patient_health_metric",
      "attributes": {
        "code": {
          "system": "LOINC",
          "value": "13457-7"
        },
        "type": "ldl_cholesterol",
        "occurred_at": "2017-03-14T11:00:57.000Z",
        "value": 121,
        "unit": "mg/dl"
      },
      "relationships": {
        "patient": {
          "data": {
            "type": "patient",
            "id": ""
          }
        }
      }
    }
  }
}

Response

OK

Example response

{
  "data": {
    "data": {
      "type": "patient_health_metric",
      "attributes": {
        "code": {
          "system": "LOINC",
          "value": "13457-7"
        },
        "type": "ldl_cholesterol",
        "occurred_at": "2017-03-14T11:00:57.000Z",
        "value": 121,
        "unit": "mg/dl"
      },
      "relationships": {
        "patient": {
          "data": {
            "type": "patient",
            "id": ""
          }
        }
      }
    }
  }
}

Changes

No recorded changes to this operation across all 70 revisions of this API.