POST
/
api
/
v1
/
patients
/
{patient_id}
/
risk_factors
curl --request POST \
  --url https://api.byblend.com/api/v1/patients/{patient_id}/risk_factors \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "type": "medication",
    "confidence": 0.95,
    "is_active": true,
    "match_source": "autocomplete",
    "match_type": "product",
    "matched": true,
    "matched_via_synonym": false,
    "patient_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
    "risk_factor_text_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
    "text_chunk": "liothyronine",
    "brand_name": "Benadryl",
    "clinical_product_rxcui": "978941",
    "ingredient_name": "diphenhydramine",
    "ingredient_rxcui": "4083",
    "name": "estradiol valerate 3 MG Oral Tablet",
    "normalization_key": "SCDG:1165185|generic",
    "product_rxcui": "978941",
    "scdf_name": "estradiol Oral Tablet",
    "scdf_rxcui": "372078",
    "scdg_name": "estradiol Oral Product",
    "scdg_rxcui": "1165185"
  }
]'
{
  "allergies": [
    {
      "id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
      "name": "Penicillin",
      "type": "allergy",
      "matched": true,
      "original_name": "Peniccillin"
    }
  ],
  "conditions": [
    {
      "id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
      "name": "Diabetes mellitus",
      "type": "condition",
      "matched": true,
      "original_name": "diabetes"
    }
  ],
  "medications": [
    {
      "id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
      "created_at": "2025-03-15T12:00:00Z",
      "updated_at": "2025-03-15T12:00:00Z",
      "risk_factor_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
      "confidence": 0.95,
      "is_active": true,
      "match_source": "autocomplete",
      "match_type": "product",
      "matched": true,
      "matched_via_synonym": false,
      "patient_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
      "risk_factor_text_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
      "text_chunk": "liothyronine",
      "medication_detail": {
        "brand_name": "Benadryl",
        "clinical_product_rxcui": "978941",
        "ingredient_name": "diphenhydramine",
        "ingredient_rxcui": "4083",
        "name": "estradiol valerate 3 MG Oral Tablet",
        "normalization_key": "SCDG:1165185|generic",
        "product_rxcui": "978941",
        "scdf_name": "estradiol Oral Tablet",
        "scdf_rxcui": "372078",
        "scdg_name": "estradiol Oral Product",
        "scdg_rxcui": "1165185"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

patient_id
string
required

Unique (UUID) identifier for the patient

Body

application/json · object[]

The body is of type object[].

Response

201 - application/json

Risk factor created successfully

The response is of type object.