Create Surgeries
POST
/v3/ingest/surgeries/
const url = 'https://example.com/v3/ingest/surgeries/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '[{"greatest_dimension_tumour":1,"greatest_dimension_tumour_not_available":false,"lymphovascular_invasion":"Absent","margin_types_involved":["Circumferential resection margin"],"margin_types_not_assessed":["Circumferential resection margin"],"margin_types_not_involved":["Circumferential resection margin"],"perineural_invasion":"Absent","program_id":"example","residual_tumour_classification":"Not applicable","submitter_donor_id":"example","submitter_treatment_id":"example","surgery_location":"Local recurrence","surgery_reference_database":"SNOMED","surgery_reference_identifier":"example","surgery_site":"example","surgery_type":"example","tumour_focality":"Cannot be assessed","tumour_length":1,"tumour_length_not_available":false,"tumour_width":1,"tumour_width_not_available":false,"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/surgeries/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '[ { "greatest_dimension_tumour": 1, "greatest_dimension_tumour_not_available": false, "lymphovascular_invasion": "Absent", "margin_types_involved": [ "Circumferential resection margin" ], "margin_types_not_assessed": [ "Circumferential resection margin" ], "margin_types_not_involved": [ "Circumferential resection margin" ], "perineural_invasion": "Absent", "program_id": "example", "residual_tumour_classification": "Not applicable", "submitter_donor_id": "example", "submitter_treatment_id": "example", "surgery_location": "Local recurrence", "surgery_reference_database": "SNOMED", "surgery_reference_identifier": "example", "surgery_site": "example", "surgery_type": "example", "tumour_focality": "Cannot be assessed", "tumour_length": 1, "tumour_length_not_available": false, "tumour_width": 1, "tumour_width_not_available": false, "uuid": "example" } ]'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
Payload
Array<object>
SurgeryIngestSchemaobject
greatest_dimension_tumour_not_available
Greatest Dimension Tumour Not Available
boolean
lymphovascular_invasion
Any of:
LymphovascularInvasionEnum
string
null
margin_types_involved
Any of:
Array<string>
null
margin_types_not_assessed
Any of:
Array<string>
null
margin_types_not_involved
Any of:
Array<string>
null
perineural_invasion
Any of:
PerineuralInvasionEnum
string
null
program_id
required
Program Id
string
residual_tumour_classification
Any of:
TumourClassificationEnum
string
null
submitter_donor_id
required
Submitter Donor Id
string
submitter_treatment_id
required
Submitter Treatment Id
string
surgery_location
Any of:
SurgeryLocationEnum
string
null
surgery_reference_database
Any of:
SurgeryReferenceDatabaseEnum
string
null
tumour_focality
Any of:
TumourFocalityEnum
string
null
tumour_length_not_available
Tumour Length Not Available
boolean
tumour_width_not_available
Tumour Width Not Available
boolean
Responses
Section titled “ Responses ”OK