curl --request GET \
--url https://api.byblend.com/api/v1/patients/{patient_id}/risk_factors \
--header 'Authorization: Bearer <token>'{
"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"
}
}
]
}Retrieve all risk factors, or risk factors of a specific type, for a patient.
curl --request GET \
--url https://api.byblend.com/api/v1/patients/{patient_id}/risk_factors \
--header 'Authorization: Bearer <token>'{
"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"
}
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier for the patient, either UUID or external ID (e.g. my-patients-128318AA2) if you have provided one during patient creation or update.
"98cae3a3-996c-4bf5-9143-0ab6d98bc1d0"
Type of risk factor to retrieve, either 'allergy', 'condition', or 'medication'
"allergy"
Successful response with all risk factors, or specific type of risk factors.
Show child attributes
Unique identifier
"0227d1e5-ba9a-42b5-8fe2-38882aa65708"
Name of the allergy
"Penicillin"
"allergy"
Whether the allergy has been matched to a known allergen in the Blend database
true
Original freeform text of the allergy, if matched
"Peniccillin"
Show child attributes
Unique identifier
"0227d1e5-ba9a-42b5-8fe2-38882aa65708"
Name of the condition
"Diabetes mellitus"
"condition"
Whether the condition has been matched to a known condition in the Blend database
true
Original freeform text of the condition, if matched
"diabetes"
Show child attributes
Unique identifier
"0227d1e5-ba9a-42b5-8fe2-38882aa65708"
Date and time of creation
"2025-03-15T12:00:00Z"
Date and time of last update
"2025-03-15T12:00:00Z"
Reference ID for the Blend database entry for this unique risk factor
"0227d1e5-ba9a-42b5-8fe2-38882aa65708"
If matched, confidence score for the risk factor match
0.95
Whether the risk factor is active. Risk factors can be manually deactivated if not applicable.
true
Source of the match, one of autocomplete, text, or manual.
"autocomplete"
For medications, type of match.
"product"
If the risk factor has been matched to a representative entry. Autocomplete matches are always true, as are 1.0 confidence matches, and manual confirmations.
true
If the risk factor was matched via a synonym lookup to a representative entry.
false
ID of the patient associated with the risk factor
"0227d1e5-ba9a-42b5-8fe2-38882aa65708"
If applicable, reference ID for the freeform text entry that produced this risk factor
"0227d1e5-ba9a-42b5-8fe2-38882aa65708"
If applicable, the matching text chunk from the freeform text
"liothyronine"
Show child attributes
Brand name, if applicable, of the medication
"Benadryl"
RXNorm CUI of the clinical product, if applicable
"978941"
If applicable, ingredient name
"diphenhydramine"
RXNorm CUI of the ingredient, if applicable
"4083"
Representative name of the medication, typically ignored in DUR in favor of the clinical drug form
"estradiol valerate 3 MG Oral Tablet"
Normalization key used to identify appropriate matches
"SCDG:1165185|generic"
RxNorm CUI of the product, if applicable
"978941"
SCDF (Semantic Clinical Drug Form) name of the medication, if applicable
"estradiol Oral Tablet"
SCDF (Semantic Clinical Drug Form) RXCUI of the medication, if applicable
"372078"
SCDG (Semantic Clinical Drug Group) name of the medication, if applicable
"estradiol Oral Product"
SCDG (Semantic Clinical Drug Group) RXCUI of the medication, if applicable
"1165185"