Create Treatments
POST
/v3/ingest/treatments/
const url = 'https://example.com/v3/ingest/treatments/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '[{"is_primary_treatment":"Yes","program_id":"example","response_to_treatment":"Complete response","response_to_treatment_criteria_method":"RECIST 1.1","status_of_treatment":"Treatment completed as prescribed","submitter_donor_id":"example","submitter_primary_diagnosis_id":"example","submitter_treatment_id":"example","treatment_end_date":{"day_interval":1,"month_interval":1},"treatment_intent":"Curative","treatment_start_date":{"day_interval":1,"month_interval":1},"treatment_type":["Bone marrow transplant"],"uuid":"example"}]'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v3/ingest/treatments/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '[ { "is_primary_treatment": "Yes", "program_id": "example", "response_to_treatment": "Complete response", "response_to_treatment_criteria_method": "RECIST 1.1", "status_of_treatment": "Treatment completed as prescribed", "submitter_donor_id": "example", "submitter_primary_diagnosis_id": "example", "submitter_treatment_id": "example", "treatment_end_date": { "day_interval": 1, "month_interval": 1 }, "treatment_intent": "Curative", "treatment_start_date": { "day_interval": 1, "month_interval": 1 }, "treatment_type": [ "Bone marrow transplant" ], "uuid": "example" } ]'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
Payload
Array<object>
TreatmentIngestSchemaobject
is_primary_treatment
Any of:
uBooleanEnum
string
null
program_id
required
Program Id
string
response_to_treatment
Any of:
TreatmentResponseEnum
string
null
response_to_treatment_criteria_method
Any of:
TreatmentResponseMethodEnum
string
null
status_of_treatment
Any of:
TreatmentStatusEnum
string
null
submitter_donor_id
required
Submitter Donor Id
string
submitter_primary_diagnosis_id
required
Submitter Primary Diagnosis Id
string
submitter_treatment_id
required
Submitter Treatment Id
string
treatment_end_date
Any of:
DateInterval
null
treatment_intent
Any of:
TreatmentIntentEnum
string
null
treatment_start_date
Any of:
DateInterval
null
treatment_type
Any of:
Array<string>
null
Responses
Section titled “ Responses ”OK