saferx-pharma-sdk 0.0.11 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/types/Alert.d.ts +3 -1
- package/dist/cjs/api/types/ClinicalAlert.d.ts +1 -1
- package/dist/cjs/api/types/ClinicalData.d.ts +1 -1
- package/dist/cjs/api/types/FoodConflict.d.ts +11 -3
- package/dist/cjs/api/types/Interaction.d.ts +34 -9
- package/dist/cjs/api/types/ReproductiveSafetyData.d.ts +30 -2
- package/dist/cjs/api/types/ReproductiveWarning.d.ts +5 -3
- package/dist/cjs/api/types/ResolvedDrug.d.ts +19 -4
- package/dist/cjs/api/types/SafetyData.d.ts +4 -4
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/types/Alert.d.mts +3 -1
- package/dist/esm/api/types/ClinicalAlert.d.mts +1 -1
- package/dist/esm/api/types/ClinicalData.d.mts +1 -1
- package/dist/esm/api/types/FoodConflict.d.mts +11 -3
- package/dist/esm/api/types/Interaction.d.mts +34 -9
- package/dist/esm/api/types/ReproductiveSafetyData.d.mts +30 -2
- package/dist/esm/api/types/ReproductiveWarning.d.mts +5 -3
- package/dist/esm/api/types/ResolvedDrug.d.mts +19 -4
- package/dist/esm/api/types/SafetyData.d.mts +4 -4
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "saferx-pharma-sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "0.0.
|
|
47
|
-
"User-Agent": "saferx-pharma-sdk/0.0.
|
|
46
|
+
"X-Fern-SDK-Version": "0.0.18",
|
|
47
|
+
"User-Agent": "saferx-pharma-sdk/0.0.18",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -21,8 +21,10 @@ export interface Alert {
|
|
|
21
21
|
* - `clinical_population` — Clinical population severity >= 4
|
|
22
22
|
*/
|
|
23
23
|
type: Alert.Type;
|
|
24
|
-
/** Human-readable alert message */
|
|
24
|
+
/** Human-readable alert message (English) */
|
|
25
25
|
message: string;
|
|
26
|
+
/** Human-readable alert message (Arabic) */
|
|
27
|
+
message_ar?: string | undefined;
|
|
26
28
|
/** Drug names involved in this alert */
|
|
27
29
|
drugs_involved: string[];
|
|
28
30
|
}
|
|
@@ -5,7 +5,7 @@ import type * as SafeRx from "../index.js";
|
|
|
5
5
|
* is provided in the request.
|
|
6
6
|
*/
|
|
7
7
|
export interface ClinicalData {
|
|
8
|
-
/** Per-drug clinical data keyed by
|
|
8
|
+
/** Per-drug clinical data keyed by sfrx_id */
|
|
9
9
|
drug_specific?: Record<string, SafeRx.DrugClinicalData> | undefined;
|
|
10
10
|
/** Cross-drug condition-related alerts (requires `patient_profile.conditions`) */
|
|
11
11
|
condition_alerts?: SafeRx.ClinicalAlert[] | undefined;
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A specific food-drug interaction
|
|
2
|
+
* A specific food-drug interaction (bilingual)
|
|
3
3
|
*/
|
|
4
4
|
export interface FoodConflict {
|
|
5
5
|
/** Food item or food category involved */
|
|
6
6
|
food?: string | undefined;
|
|
7
|
+
/** Food category identifier */
|
|
8
|
+
food_category?: string | undefined;
|
|
9
|
+
/** Specific foods affected */
|
|
10
|
+
affected_foods?: string[] | undefined;
|
|
7
11
|
/** Interaction severity (1-5) */
|
|
8
12
|
severity?: number | undefined;
|
|
9
13
|
/** Pharmacological interaction mechanism */
|
|
10
14
|
interaction_type?: string | undefined;
|
|
11
|
-
/**
|
|
12
|
-
|
|
15
|
+
/** Patient guidance in English */
|
|
16
|
+
brief_en?: string | undefined;
|
|
17
|
+
/** Patient guidance in Arabic */
|
|
18
|
+
brief_ar?: string | undefined;
|
|
19
|
+
/** Required patient action */
|
|
20
|
+
action_required?: string | undefined;
|
|
13
21
|
}
|
|
@@ -1,22 +1,47 @@
|
|
|
1
1
|
export interface Interaction {
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
|
|
2
|
+
/** sfrx_id of the first drug in the interaction pair */
|
|
3
|
+
sfrx_id_1?: string | undefined;
|
|
4
|
+
/** sfrx_id of the second drug in the interaction pair */
|
|
5
|
+
sfrx_id_2?: string | undefined;
|
|
6
6
|
/**
|
|
7
|
-
* Interaction severity level.
|
|
8
|
-
* - `
|
|
9
|
-
* - `
|
|
10
|
-
* - `
|
|
11
|
-
* - `
|
|
7
|
+
* Interaction severity level (clinical interactions only).
|
|
8
|
+
* - `1` — Minor: minimal clinical significance
|
|
9
|
+
* - `2` — Moderate: may require monitoring or dose adjustment
|
|
10
|
+
* - `3` — Major: avoid combination if possible, close monitoring required
|
|
11
|
+
* - `4` — Contraindicated: do not use together
|
|
12
|
+
*
|
|
13
|
+
* The API filters out noise interactions (severity ≤ 0) by default.
|
|
14
|
+
* The internal V8 scale extends to -3 (noise) and 0 (unknown),
|
|
15
|
+
* but these are never returned in the public response.
|
|
12
16
|
*/
|
|
13
17
|
severity?: number | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Original severity before route-based or noise adjustments.
|
|
20
|
+
* Uses the full V8 scale: -3 (decreased efficacy), -2 (pharmacokinetic),
|
|
21
|
+
* -1 (metabolic), 0 (unknown), 1-4 (clinical). May differ from
|
|
22
|
+
* `severity` when route adjustments apply.
|
|
23
|
+
*/
|
|
24
|
+
base_severity?: number | undefined;
|
|
14
25
|
/** Human-readable severity label */
|
|
15
26
|
severity_name?: Interaction.SeverityName | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Noise classification for this interaction, if applicable.
|
|
29
|
+
* Null for clinically significant interactions. Possible values:
|
|
30
|
+
* `"DECREASED_EFFICACY"`, `"PHARMACOKINETIC"`, `"METABOLIC"`.
|
|
31
|
+
*/
|
|
32
|
+
noise_type?: (string | null) | undefined;
|
|
16
33
|
/** Interaction mechanism or clinical description (English) */
|
|
17
34
|
description?: string | undefined;
|
|
18
35
|
/** Interaction description in Arabic */
|
|
19
36
|
description_ar?: string | undefined;
|
|
37
|
+
/** Expected clinical effect of the interaction (English) */
|
|
38
|
+
clinical_effect?: (string | null) | undefined;
|
|
39
|
+
/** Expected clinical effect in Arabic */
|
|
40
|
+
clinical_effect_ar?: (string | null) | undefined;
|
|
41
|
+
/** Clinical management strategy (English) */
|
|
42
|
+
management?: (string | null) | undefined;
|
|
43
|
+
/** Clinical management strategy in Arabic */
|
|
44
|
+
management_ar?: (string | null) | undefined;
|
|
20
45
|
/** Clinical recommendation for managing this interaction (English) */
|
|
21
46
|
recommendation?: string | undefined;
|
|
22
47
|
/** Clinical recommendation in Arabic */
|
|
@@ -21,10 +21,38 @@ export interface ReproductiveSafetyData {
|
|
|
21
21
|
lactation_risk_level?: number | undefined;
|
|
22
22
|
/** Human-readable lactation risk label */
|
|
23
23
|
lactation_risk_name?: string | undefined;
|
|
24
|
-
/** Clinical rationale for the pregnancy risk rating (
|
|
24
|
+
/** Clinical rationale for the pregnancy risk rating (English) */
|
|
25
25
|
pregnancy_rationale?: string | undefined;
|
|
26
|
-
/** Clinical rationale for the
|
|
26
|
+
/** Clinical rationale for the pregnancy risk rating (Arabic) */
|
|
27
|
+
pregnancy_rationale_ar?: string | undefined;
|
|
28
|
+
/** Clinical rationale for the lactation risk rating (English) */
|
|
27
29
|
lactation_rationale?: string | undefined;
|
|
30
|
+
/** Clinical rationale for the lactation risk rating (Arabic) */
|
|
31
|
+
lactation_rationale_ar?: string | undefined;
|
|
28
32
|
pregnancy_warning?: SafeRx.ReproductiveWarning | undefined;
|
|
29
33
|
lactation_warning?: SafeRx.ReproductiveWarning | undefined;
|
|
34
|
+
/** First trimester pregnancy risk classification */
|
|
35
|
+
preg_t1_risk?: (string | null) | undefined;
|
|
36
|
+
/** First trimester clinical note */
|
|
37
|
+
preg_t1_note?: (string | null) | undefined;
|
|
38
|
+
/** First trimester note in Arabic */
|
|
39
|
+
preg_t1_note_ar?: (string | null) | undefined;
|
|
40
|
+
/** Second trimester pregnancy risk classification */
|
|
41
|
+
preg_t2_risk?: (string | null) | undefined;
|
|
42
|
+
/** Second trimester clinical note */
|
|
43
|
+
preg_t2_note?: (string | null) | undefined;
|
|
44
|
+
/** Second trimester note in Arabic */
|
|
45
|
+
preg_t2_note_ar?: (string | null) | undefined;
|
|
46
|
+
/** Third trimester pregnancy risk classification */
|
|
47
|
+
preg_t3_risk?: (string | null) | undefined;
|
|
48
|
+
/** Third trimester clinical note */
|
|
49
|
+
preg_t3_note?: (string | null) | undefined;
|
|
50
|
+
/** Third trimester note in Arabic */
|
|
51
|
+
preg_t3_note_ar?: (string | null) | undefined;
|
|
52
|
+
/** Measured drug concentration in breast milk (mg/L) */
|
|
53
|
+
lact_milk_level_mgl?: (number | null) | undefined;
|
|
54
|
+
/** Milk-to-plasma concentration ratio */
|
|
55
|
+
lact_mp_ratio?: (number | null) | undefined;
|
|
56
|
+
/** Relative Infant Dose (%) — percentage of maternal dose received by infant */
|
|
57
|
+
lact_rid?: (number | null) | undefined;
|
|
30
58
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Pregnancy or lactation specific warning
|
|
2
|
+
* Pregnancy or lactation specific warning (bilingual)
|
|
3
3
|
*/
|
|
4
4
|
export interface ReproductiveWarning {
|
|
5
5
|
/** Whether a specific warning exists */
|
|
6
6
|
has_warning?: boolean | undefined;
|
|
7
|
-
/** Warning text
|
|
8
|
-
|
|
7
|
+
/** Warning text in English */
|
|
8
|
+
text_en?: (string | null) | undefined;
|
|
9
|
+
/** Warning text in Arabic */
|
|
10
|
+
text_ar?: (string | null) | undefined;
|
|
9
11
|
/** Warning categories */
|
|
10
12
|
categories?: string[] | undefined;
|
|
11
13
|
}
|
|
@@ -7,21 +7,36 @@ export interface ResolvedDrug {
|
|
|
7
7
|
* SafeRx product identifier. Primary key used across all safety
|
|
8
8
|
* domains. Format: `SRX-{category}-{sequence}`.
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
sfrx_id: string;
|
|
11
|
+
/**
|
|
12
|
+
* Parent product identifier for strength/pack variants of the same drug.
|
|
13
|
+
* Null if this product has no parent.
|
|
14
|
+
*/
|
|
15
|
+
parent_sfrx_id?: (string | null) | undefined;
|
|
11
16
|
/** Registered trade name with strength and pack size */
|
|
12
17
|
brand_name: string;
|
|
18
|
+
/** Arabic trade name */
|
|
19
|
+
brand_name_ar?: string | undefined;
|
|
13
20
|
/** Active pharmaceutical ingredient(s), pipe-separated for combinations */
|
|
14
21
|
active_ingredient: string;
|
|
22
|
+
/** Arabic active ingredient name */
|
|
23
|
+
active_ingredient_ar?: string | undefined;
|
|
24
|
+
/** Short generic drug name */
|
|
25
|
+
generic_name?: string | undefined;
|
|
26
|
+
/** Arabic generic drug name */
|
|
27
|
+
generic_name_ar?: string | undefined;
|
|
15
28
|
/** Pharmaceutical dosage form */
|
|
16
29
|
form: string;
|
|
30
|
+
/** Arabic dosage form */
|
|
31
|
+
form_ar?: string | undefined;
|
|
17
32
|
/** Marketing authorization holder */
|
|
18
|
-
|
|
33
|
+
manufacturer_en?: string | undefined;
|
|
19
34
|
/** ATC-based therapeutic classification, pipe-separated hierarchy */
|
|
20
35
|
therapeutic_class?: string | undefined;
|
|
21
36
|
/** Primary prescribing specialty */
|
|
22
37
|
medical_specialty?: string | undefined;
|
|
23
|
-
/** Distribution company (may be empty) */
|
|
24
|
-
|
|
38
|
+
/** Distribution/supply company (may be empty) */
|
|
39
|
+
supplier_en?: string | undefined;
|
|
25
40
|
/** Product barcode (may be empty) */
|
|
26
41
|
barcode?: string | undefined;
|
|
27
42
|
/** Current price in Egyptian Pounds (EGP) */
|
|
@@ -6,17 +6,17 @@ import type * as SafeRx from "../index.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export interface SafetyData {
|
|
8
8
|
/**
|
|
9
|
-
* Adverse effects data keyed by
|
|
9
|
+
* Adverse effects data keyed by sfrx_id. Includes risk level,
|
|
10
10
|
* Black Box Warnings, severe/common effects, monitoring, and
|
|
11
11
|
* dose classification.
|
|
12
12
|
*/
|
|
13
13
|
side_effects?: Record<string, SafeRx.SideEffectsData> | undefined;
|
|
14
14
|
interactions?: SafeRx.InteractionsData | undefined;
|
|
15
|
-
/** Pregnancy & lactation risk data keyed by
|
|
15
|
+
/** Pregnancy & lactation risk data keyed by sfrx_id */
|
|
16
16
|
reproductive_safety?: Record<string, SafeRx.ReproductiveSafetyData> | undefined;
|
|
17
|
-
/** Food-drug interaction data keyed by
|
|
17
|
+
/** Food-drug interaction data keyed by sfrx_id */
|
|
18
18
|
food?: Record<string, SafeRx.FoodData> | undefined;
|
|
19
19
|
clinical?: SafeRx.ClinicalData | undefined;
|
|
20
|
-
/** Maximum daily dose data keyed by
|
|
20
|
+
/** Maximum daily dose data keyed by sfrx_id */
|
|
21
21
|
dosing?: Record<string, SafeRx.DosingData> | undefined;
|
|
22
22
|
}
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.18";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "saferx-pharma-sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "0.0.
|
|
10
|
-
"User-Agent": "saferx-pharma-sdk/0.0.
|
|
9
|
+
"X-Fern-SDK-Version": "0.0.18",
|
|
10
|
+
"User-Agent": "saferx-pharma-sdk/0.0.18",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -21,8 +21,10 @@ export interface Alert {
|
|
|
21
21
|
* - `clinical_population` — Clinical population severity >= 4
|
|
22
22
|
*/
|
|
23
23
|
type: Alert.Type;
|
|
24
|
-
/** Human-readable alert message */
|
|
24
|
+
/** Human-readable alert message (English) */
|
|
25
25
|
message: string;
|
|
26
|
+
/** Human-readable alert message (Arabic) */
|
|
27
|
+
message_ar?: string | undefined;
|
|
26
28
|
/** Drug names involved in this alert */
|
|
27
29
|
drugs_involved: string[];
|
|
28
30
|
}
|
|
@@ -5,7 +5,7 @@ import type * as SafeRx from "../index.mjs";
|
|
|
5
5
|
* is provided in the request.
|
|
6
6
|
*/
|
|
7
7
|
export interface ClinicalData {
|
|
8
|
-
/** Per-drug clinical data keyed by
|
|
8
|
+
/** Per-drug clinical data keyed by sfrx_id */
|
|
9
9
|
drug_specific?: Record<string, SafeRx.DrugClinicalData> | undefined;
|
|
10
10
|
/** Cross-drug condition-related alerts (requires `patient_profile.conditions`) */
|
|
11
11
|
condition_alerts?: SafeRx.ClinicalAlert[] | undefined;
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A specific food-drug interaction
|
|
2
|
+
* A specific food-drug interaction (bilingual)
|
|
3
3
|
*/
|
|
4
4
|
export interface FoodConflict {
|
|
5
5
|
/** Food item or food category involved */
|
|
6
6
|
food?: string | undefined;
|
|
7
|
+
/** Food category identifier */
|
|
8
|
+
food_category?: string | undefined;
|
|
9
|
+
/** Specific foods affected */
|
|
10
|
+
affected_foods?: string[] | undefined;
|
|
7
11
|
/** Interaction severity (1-5) */
|
|
8
12
|
severity?: number | undefined;
|
|
9
13
|
/** Pharmacological interaction mechanism */
|
|
10
14
|
interaction_type?: string | undefined;
|
|
11
|
-
/**
|
|
12
|
-
|
|
15
|
+
/** Patient guidance in English */
|
|
16
|
+
brief_en?: string | undefined;
|
|
17
|
+
/** Patient guidance in Arabic */
|
|
18
|
+
brief_ar?: string | undefined;
|
|
19
|
+
/** Required patient action */
|
|
20
|
+
action_required?: string | undefined;
|
|
13
21
|
}
|
|
@@ -1,22 +1,47 @@
|
|
|
1
1
|
export interface Interaction {
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
|
|
2
|
+
/** sfrx_id of the first drug in the interaction pair */
|
|
3
|
+
sfrx_id_1?: string | undefined;
|
|
4
|
+
/** sfrx_id of the second drug in the interaction pair */
|
|
5
|
+
sfrx_id_2?: string | undefined;
|
|
6
6
|
/**
|
|
7
|
-
* Interaction severity level.
|
|
8
|
-
* - `
|
|
9
|
-
* - `
|
|
10
|
-
* - `
|
|
11
|
-
* - `
|
|
7
|
+
* Interaction severity level (clinical interactions only).
|
|
8
|
+
* - `1` — Minor: minimal clinical significance
|
|
9
|
+
* - `2` — Moderate: may require monitoring or dose adjustment
|
|
10
|
+
* - `3` — Major: avoid combination if possible, close monitoring required
|
|
11
|
+
* - `4` — Contraindicated: do not use together
|
|
12
|
+
*
|
|
13
|
+
* The API filters out noise interactions (severity ≤ 0) by default.
|
|
14
|
+
* The internal V8 scale extends to -3 (noise) and 0 (unknown),
|
|
15
|
+
* but these are never returned in the public response.
|
|
12
16
|
*/
|
|
13
17
|
severity?: number | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Original severity before route-based or noise adjustments.
|
|
20
|
+
* Uses the full V8 scale: -3 (decreased efficacy), -2 (pharmacokinetic),
|
|
21
|
+
* -1 (metabolic), 0 (unknown), 1-4 (clinical). May differ from
|
|
22
|
+
* `severity` when route adjustments apply.
|
|
23
|
+
*/
|
|
24
|
+
base_severity?: number | undefined;
|
|
14
25
|
/** Human-readable severity label */
|
|
15
26
|
severity_name?: Interaction.SeverityName | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Noise classification for this interaction, if applicable.
|
|
29
|
+
* Null for clinically significant interactions. Possible values:
|
|
30
|
+
* `"DECREASED_EFFICACY"`, `"PHARMACOKINETIC"`, `"METABOLIC"`.
|
|
31
|
+
*/
|
|
32
|
+
noise_type?: (string | null) | undefined;
|
|
16
33
|
/** Interaction mechanism or clinical description (English) */
|
|
17
34
|
description?: string | undefined;
|
|
18
35
|
/** Interaction description in Arabic */
|
|
19
36
|
description_ar?: string | undefined;
|
|
37
|
+
/** Expected clinical effect of the interaction (English) */
|
|
38
|
+
clinical_effect?: (string | null) | undefined;
|
|
39
|
+
/** Expected clinical effect in Arabic */
|
|
40
|
+
clinical_effect_ar?: (string | null) | undefined;
|
|
41
|
+
/** Clinical management strategy (English) */
|
|
42
|
+
management?: (string | null) | undefined;
|
|
43
|
+
/** Clinical management strategy in Arabic */
|
|
44
|
+
management_ar?: (string | null) | undefined;
|
|
20
45
|
/** Clinical recommendation for managing this interaction (English) */
|
|
21
46
|
recommendation?: string | undefined;
|
|
22
47
|
/** Clinical recommendation in Arabic */
|
|
@@ -21,10 +21,38 @@ export interface ReproductiveSafetyData {
|
|
|
21
21
|
lactation_risk_level?: number | undefined;
|
|
22
22
|
/** Human-readable lactation risk label */
|
|
23
23
|
lactation_risk_name?: string | undefined;
|
|
24
|
-
/** Clinical rationale for the pregnancy risk rating (
|
|
24
|
+
/** Clinical rationale for the pregnancy risk rating (English) */
|
|
25
25
|
pregnancy_rationale?: string | undefined;
|
|
26
|
-
/** Clinical rationale for the
|
|
26
|
+
/** Clinical rationale for the pregnancy risk rating (Arabic) */
|
|
27
|
+
pregnancy_rationale_ar?: string | undefined;
|
|
28
|
+
/** Clinical rationale for the lactation risk rating (English) */
|
|
27
29
|
lactation_rationale?: string | undefined;
|
|
30
|
+
/** Clinical rationale for the lactation risk rating (Arabic) */
|
|
31
|
+
lactation_rationale_ar?: string | undefined;
|
|
28
32
|
pregnancy_warning?: SafeRx.ReproductiveWarning | undefined;
|
|
29
33
|
lactation_warning?: SafeRx.ReproductiveWarning | undefined;
|
|
34
|
+
/** First trimester pregnancy risk classification */
|
|
35
|
+
preg_t1_risk?: (string | null) | undefined;
|
|
36
|
+
/** First trimester clinical note */
|
|
37
|
+
preg_t1_note?: (string | null) | undefined;
|
|
38
|
+
/** First trimester note in Arabic */
|
|
39
|
+
preg_t1_note_ar?: (string | null) | undefined;
|
|
40
|
+
/** Second trimester pregnancy risk classification */
|
|
41
|
+
preg_t2_risk?: (string | null) | undefined;
|
|
42
|
+
/** Second trimester clinical note */
|
|
43
|
+
preg_t2_note?: (string | null) | undefined;
|
|
44
|
+
/** Second trimester note in Arabic */
|
|
45
|
+
preg_t2_note_ar?: (string | null) | undefined;
|
|
46
|
+
/** Third trimester pregnancy risk classification */
|
|
47
|
+
preg_t3_risk?: (string | null) | undefined;
|
|
48
|
+
/** Third trimester clinical note */
|
|
49
|
+
preg_t3_note?: (string | null) | undefined;
|
|
50
|
+
/** Third trimester note in Arabic */
|
|
51
|
+
preg_t3_note_ar?: (string | null) | undefined;
|
|
52
|
+
/** Measured drug concentration in breast milk (mg/L) */
|
|
53
|
+
lact_milk_level_mgl?: (number | null) | undefined;
|
|
54
|
+
/** Milk-to-plasma concentration ratio */
|
|
55
|
+
lact_mp_ratio?: (number | null) | undefined;
|
|
56
|
+
/** Relative Infant Dose (%) — percentage of maternal dose received by infant */
|
|
57
|
+
lact_rid?: (number | null) | undefined;
|
|
30
58
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Pregnancy or lactation specific warning
|
|
2
|
+
* Pregnancy or lactation specific warning (bilingual)
|
|
3
3
|
*/
|
|
4
4
|
export interface ReproductiveWarning {
|
|
5
5
|
/** Whether a specific warning exists */
|
|
6
6
|
has_warning?: boolean | undefined;
|
|
7
|
-
/** Warning text
|
|
8
|
-
|
|
7
|
+
/** Warning text in English */
|
|
8
|
+
text_en?: (string | null) | undefined;
|
|
9
|
+
/** Warning text in Arabic */
|
|
10
|
+
text_ar?: (string | null) | undefined;
|
|
9
11
|
/** Warning categories */
|
|
10
12
|
categories?: string[] | undefined;
|
|
11
13
|
}
|
|
@@ -7,21 +7,36 @@ export interface ResolvedDrug {
|
|
|
7
7
|
* SafeRx product identifier. Primary key used across all safety
|
|
8
8
|
* domains. Format: `SRX-{category}-{sequence}`.
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
sfrx_id: string;
|
|
11
|
+
/**
|
|
12
|
+
* Parent product identifier for strength/pack variants of the same drug.
|
|
13
|
+
* Null if this product has no parent.
|
|
14
|
+
*/
|
|
15
|
+
parent_sfrx_id?: (string | null) | undefined;
|
|
11
16
|
/** Registered trade name with strength and pack size */
|
|
12
17
|
brand_name: string;
|
|
18
|
+
/** Arabic trade name */
|
|
19
|
+
brand_name_ar?: string | undefined;
|
|
13
20
|
/** Active pharmaceutical ingredient(s), pipe-separated for combinations */
|
|
14
21
|
active_ingredient: string;
|
|
22
|
+
/** Arabic active ingredient name */
|
|
23
|
+
active_ingredient_ar?: string | undefined;
|
|
24
|
+
/** Short generic drug name */
|
|
25
|
+
generic_name?: string | undefined;
|
|
26
|
+
/** Arabic generic drug name */
|
|
27
|
+
generic_name_ar?: string | undefined;
|
|
15
28
|
/** Pharmaceutical dosage form */
|
|
16
29
|
form: string;
|
|
30
|
+
/** Arabic dosage form */
|
|
31
|
+
form_ar?: string | undefined;
|
|
17
32
|
/** Marketing authorization holder */
|
|
18
|
-
|
|
33
|
+
manufacturer_en?: string | undefined;
|
|
19
34
|
/** ATC-based therapeutic classification, pipe-separated hierarchy */
|
|
20
35
|
therapeutic_class?: string | undefined;
|
|
21
36
|
/** Primary prescribing specialty */
|
|
22
37
|
medical_specialty?: string | undefined;
|
|
23
|
-
/** Distribution company (may be empty) */
|
|
24
|
-
|
|
38
|
+
/** Distribution/supply company (may be empty) */
|
|
39
|
+
supplier_en?: string | undefined;
|
|
25
40
|
/** Product barcode (may be empty) */
|
|
26
41
|
barcode?: string | undefined;
|
|
27
42
|
/** Current price in Egyptian Pounds (EGP) */
|
|
@@ -6,17 +6,17 @@ import type * as SafeRx from "../index.mjs";
|
|
|
6
6
|
*/
|
|
7
7
|
export interface SafetyData {
|
|
8
8
|
/**
|
|
9
|
-
* Adverse effects data keyed by
|
|
9
|
+
* Adverse effects data keyed by sfrx_id. Includes risk level,
|
|
10
10
|
* Black Box Warnings, severe/common effects, monitoring, and
|
|
11
11
|
* dose classification.
|
|
12
12
|
*/
|
|
13
13
|
side_effects?: Record<string, SafeRx.SideEffectsData> | undefined;
|
|
14
14
|
interactions?: SafeRx.InteractionsData | undefined;
|
|
15
|
-
/** Pregnancy & lactation risk data keyed by
|
|
15
|
+
/** Pregnancy & lactation risk data keyed by sfrx_id */
|
|
16
16
|
reproductive_safety?: Record<string, SafeRx.ReproductiveSafetyData> | undefined;
|
|
17
|
-
/** Food-drug interaction data keyed by
|
|
17
|
+
/** Food-drug interaction data keyed by sfrx_id */
|
|
18
18
|
food?: Record<string, SafeRx.FoodData> | undefined;
|
|
19
19
|
clinical?: SafeRx.ClinicalData | undefined;
|
|
20
|
-
/** Maximum daily dose data keyed by
|
|
20
|
+
/** Maximum daily dose data keyed by sfrx_id */
|
|
21
21
|
dosing?: Record<string, SafeRx.DosingData> | undefined;
|
|
22
22
|
}
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.18";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.
|
|
1
|
+
export const SDK_VERSION = "0.0.18";
|