Request Json Format
AlgoMarker Request Format
For complete details, see the AlgoMarker Spec.
Required Fields
A valid request to AlgoMarker should include the following fields:
- type: Set to
"request"
. - request_id: A unique string identifier for the request.
- export: Specifies the desired output. For standard predictions, use
"prediction": "pred_0"
to request the model prediction and store it in the"prediction"
field of the response. You can also specify request to recieve explainabiltiy output if applicable for example by specifiying"explainability_output_field_name_for_your_control": "json_attr Tree_iterative_covariance"
. - load: Set to
1
to indicate that patient data is included in the request. - flag_threshold (optional): If your model supports configurable thresholds, specify the threshold name here.
- requests: An array of patient requests, each containing:
- patient_id: An integer patient identifier.
- time: The calculation date in
YYYYMMDD
format. Any data after this date will be ignored from score calculation. - data: Patient data, including:
- signals: An array of signal objects, each with:
- code: The signal name.
- data: An array of data points, each with:
- timestamp: An array of timestamps (e.g.,
[20250806]
). Can be empty for static values. - value: An array of values (e.g.,
["14.5"]
or[82]
). You can pass string/float, both OK.
- timestamp: An array of timestamps (e.g.,
- unit (optional): The unit for the signal (e.g.,
"fL"
).
- signals: An array of signal objects, each with:
Example Signal Entry
Example Signal Entry | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
|