{"openapi":"3.0.0","info":{"version":"2.2","title":"AMPCo-Novartis API","description":"Fetch doctors/practices values from AMPCo MDA system"},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/AMPCo/AMPCo-Novartis-API/2.2"},{"description":"Server","url":"https://{environment}.mda.com.au","variables":{"environment":{"default":"api","enum":["api","staging-api"]}}}],"paths":{"/lovs":{"get":{"tags":["LOV"],"description":"get all LOVs","parameters":[{"name":"fromDate","in":"query","description":"The date from when to collect the result set","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"2021-03-20"},{"name":"page","in":"query","description":"The page of the result set to display","required":false,"style":"form","explode":true,"schema":{"minimum":1,"type":"integer"},"example":"2"},{"name":"pageLength","in":"query","description":"No of records to display","required":false,"style":"form","explode":true,"schema":{"maximum":10000,"minimum":1,"type":"integer"},"example":"10"}],"responses":{"200":{"description":"List of LOVs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200"}}}},"400":{"description":"get request is not well-formed or otherwise fails validation"}}}},"/doctors":{"get":{"tags":["Doctor"],"description":"get request doctor info","parameters":[{"name":"fromDate","in":"query","description":"The date from when to collect the result set","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"2021-03-20"},{"name":"page","in":"query","description":"The page of the result set to display","required":false,"style":"form","explode":true,"schema":{"minimum":1,"type":"integer"},"example":"2"},{"name":"pageLength","in":"query","description":"No of records to display","required":false,"style":"form","explode":true,"schema":{"maximum":10000,"minimum":1,"type":"integer"},"example":"10"}],"responses":{"200":{"description":"A list of doctors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200_1"}}}},"400":{"description":"get request is not well-formed or otherwise fails validation"}}}},"/doctor/{ID}":{"get":{"tags":["Doctor"],"description":"get a doctor details","parameters":[{"name":"ID","in":"path","description":"The AMPCo ID, an integer greater than or equal to 100000","required":true,"deprecated":false,"style":"simple","explode":false,"schema":{"$ref":"#/components/schemas/AmpcoID"},"example":100000}],"responses":{"200":{"description":"A doctor details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200_2"}}}},"400":{"description":"get request is not well-formed or otherwise fails validation"},"401":{"description":"Unauthenticated request"},"404":{"description":"Requested ID not found"}}}},"/practices":{"get":{"tags":["Practice"],"description":"get all practices","parameters":[{"name":"fromDate","in":"query","description":"The date from when to collect the result set","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"2021-03-20"},{"name":"page","in":"query","description":"The page of the result set to display","required":false,"style":"form","explode":true,"schema":{"minimum":1,"type":"integer"},"example":"2"},{"name":"pageLength","in":"query","description":"No of records to display","required":false,"style":"form","explode":true,"schema":{"maximum":10000,"minimum":1,"type":"integer"},"example":"10"}],"responses":{"200":{"description":"A list of doctors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200_3"}}}},"400":{"description":"get request is not well-formed or otherwise fails validation"}}}},"/practice/{ID}":{"get":{"tags":["Practice"],"description":"get a practice details","parameters":[{"name":"ID","in":"path","description":"The AMPCo ID, an integer greater than or equal to 100000","required":true,"deprecated":false,"style":"simple","explode":false,"schema":{"$ref":"#/components/schemas/AmpcoID"},"example":100000}],"responses":{"200":{"description":"A practice details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200_4"}}}},"400":{"description":"get request is not well-formed or otherwise fails validation"},"401":{"description":"Unauthenticated request"},"404":{"description":"Requested ID not found"}}}},"/hcp2hco":{"get":{"tags":["Affiliation"],"description":"get HCP to HCO relationship list","parameters":[{"name":"fromDate","in":"query","description":"The date from when to collect the result set","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"2021-03-20"},{"name":"page","in":"query","description":"The page of the result set to display","required":false,"style":"form","explode":true,"schema":{"minimum":1,"type":"integer"},"example":"2"},{"name":"pageLength","in":"query","description":"No of records to display","required":false,"style":"form","explode":true,"schema":{"maximum":10000,"minimum":1,"type":"integer"},"example":"10"}],"responses":{"200":{"description":"A list of HCP to HCO relationship","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200_5"}}}},"400":{"description":"get request is not well-formed or otherwise fails validation"}}}},"/hco2hco":{"get":{"tags":["Affiliation"],"description":"get HCO to HCO relationship list","parameters":[{"name":"fromDate","in":"query","description":"The date from when to collect the result set","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"2021-03-20"},{"name":"page","in":"query","description":"The page of the result set to display","required":false,"style":"form","explode":true,"schema":{"minimum":1,"type":"integer"},"example":"2"},{"name":"pageLength","in":"query","description":"No of records to display","required":false,"style":"form","explode":true,"schema":{"maximum":10000,"minimum":1,"type":"integer"},"example":"10"}],"responses":{"200":{"description":"A list of HCO to HCO relationship","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200_6"}}}},"400":{"description":"get request is not well-formed or otherwise fails validation"}}}},"/hcp2hco/{ID}":{"get":{"tags":["Affiliation"],"description":"Return list of affiliations for an AMPCo ID","parameters":[{"name":"ID","in":"path","description":"The AMPCo ID, an integer greater than or equal to 100000","required":true,"deprecated":false,"style":"simple","explode":false,"schema":{"$ref":"#/components/schemas/AmpcoID"},"example":100000}],"responses":{"200":{"description":"A list of affiliations for an AMPCo ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200_7"}}}}}}},"/hco2hco/{ID}":{"get":{"tags":["Affiliation"],"description":"Return list of affiliations for an AMPCo ID","parameters":[{"name":"ID","in":"path","description":"The AMPCo ID, an integer greater than or equal to 100000","required":true,"deprecated":false,"style":"simple","explode":false,"schema":{"$ref":"#/components/schemas/AmpcoID"},"example":100000}],"responses":{"200":{"description":"A list of affiliations for an AMPCo ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200_8"}}}}}}},"/validateDoctor":{"post":{"tags":["DCR"],"description":"Provide new doctor data.","requestBody":{"$ref":"#/components/requestBodies/UpdateDoctor"},"responses":{"200":{"description":"DCR request is well-formed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200_9"}}}},"400":{"description":"DCR request is not well-formed or otherwise fails validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_400"}}}}}}},"/validateDoctor/{ID}":{"put":{"tags":["DCR"],"description":"Provide updated doctor data.","parameters":[{"name":"ID","in":"path","description":"The AMPCo ID, an integer greater than or equal to 100000","required":true,"deprecated":false,"style":"simple","explode":false,"schema":{"$ref":"#/components/schemas/AmpcoID"},"example":100000}],"requestBody":{"$ref":"#/components/requestBodies/UpdateDoctor"},"responses":{"200":{"description":"DCR request is well-formed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200_9"}}}},"400":{"description":"DCR request is not well-formed or otherwise fails validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_400"}}}}}}},"/validatePractice":{"post":{"tags":["DCR"],"description":"Provide a new practice","requestBody":{"$ref":"#/components/requestBodies/UpdatePractice"},"responses":{"200":{"description":"DCR request is well-formed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200_9"}}}},"400":{"description":"DCR request is not well-formed or otherwise fails validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_400"}}}}}}},"/validatePractice/{ID}":{"put":{"tags":["DCR"],"description":"Provide updated data for a practice","parameters":[{"name":"ID","in":"path","description":"The AMPCo ID, an integer greater than or equal to 100000","required":true,"deprecated":false,"style":"simple","explode":false,"schema":{"$ref":"#/components/schemas/AmpcoID"},"example":100000}],"requestBody":{"$ref":"#/components/requestBodies/UpdatePractice"},"responses":{"200":{"description":"DCR request is well-formed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200_9"}}}},"400":{"description":"DCR request is not well-formed or otherwise fails validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_400"}}}}}}},"/DcrValidation/{DCR_Customer_ID}":{"get":{"tags":["DCR"],"description":"Request state of DCR request","parameters":[{"name":"DCR_Customer_ID","in":"path","description":"The Novartis-provided ID for a specific DCR request","required":true,"deprecated":false,"style":"simple","explode":false,"schema":{"$ref":"#/components/schemas/DCRCustomerId"},"example":"47f1bd24-cd2b-11ea-87d0-0242ac130003"}],"responses":{"200":{"description":"DCR request is well-formed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200_10"}}}},"400":{"description":"DCR request is not well-formed or otherwise fails validation"},"401":{"description":"Unauthenticated request"},"404":{"description":"Requested ID not found"}}}}},"components":{"schemas":{"LOVs":{"required":["code","created_at","list","updated_at","value"],"type":"object","properties":{"list":{"maxLength":255,"type":"string"},"code":{"maxLength":20,"type":"string"},"value":{"maxLength":255,"type":"string"},"created_at":{"type":"string","format":"date"},"updated_at":{"type":"string","format":"date"}},"example":[{"list":"Salutation","code":10000012,"value":"Mr","created_at":"2020-01-20","updated_at":"2020-01-20"},{"list":"Salutation","code":10000013,"value":"Mrs","created_at":"2020-01-20","updated_at":"2020-01-22"},{"list":"Salutation","code":10000014,"value":"Miss","created_at":"2020-02-10","updated_at":"2020-02-10"}]},"ProvidedDoctors":{"allOf":[{"$ref":"#/components/schemas/Doctors"},{"required":["ampco_id","created_at","education","employment_status","field_of_practice","gender","medical_interest","no_email_no_call","practising_status","privacy_optout","specialty","type","updated_at"]}]},"ProvidedPractices":{"allOf":[{"$ref":"#/components/schemas/Practices"},{"required":["account_type","address_line1","ampco_id","country","created_at","name","num_of_physicians","postal_code","state","status","suburb","updated_at"]}]},"Doctors":{"type":"object","properties":{"ampco_id":{"$ref":"#/components/schemas/AmpcoID"},"first_name":{"maxLength":70,"minLength":0,"type":"string","description":"The first name of the doctor, generated by taking the given name of the doctor up to the first space. Can be an empty string."},"last_name":{"maxLength":50,"type":"string","description":"The practising name of the doctor. Will be null if we do not have a practising name, but this should only happen with e.g. people who are retiring.","nullable":true},"salutation":{"maxLength":50,"type":"string","nullable":true},"preferred_name":{"maxLength":50,"minLength":0,"type":"string","nullable":true},"middle_name":{"maxLength":70,"minLength":0,"type":"string","description":"The second name of the doctor, generated by taking the given name of the doctor after the first space. Can be an empty string."},"gender":{"maxLength":1,"minLength":1,"type":"string","enum":["M","F","I","N","U"]},"type":{"maxLength":50,"minLength":0,"type":"string","description":"An empty string will be provided for inactive listees."},"sub_type":{"maxLength":50,"minLength":0,"type":"string","description":"An empty string will be provided for inactive listees.","nullable":true},"specialty":{"maxLength":50,"minLength":0,"type":"string","description":"An empty string will be provided for inactive listees."},"employment_status":{"maxLength":45,"minLength":0,"type":"string","description":"An empty string will be provided for inactive listees."},"phone":{"maxLength":20,"minLength":0,"type":"string","description":"An empty string will be provided for inactive listees.","nullable":true},"fax":{"maxLength":20,"minLength":0,"type":"string","description":"An empty string will be provided for inactive listees.","nullable":true},"practising_status":{"maxLength":50,"type":"string"},"ahpra_registration_date":{"type":"string","format":"date","nullable":true},"no_email_no_call":{"maxLength":3,"type":"string","enum":["YES","NO",""]},"privacy_optout":{"maxLength":3,"type":"string","enum":["YES","NO",""]},"education":{"type":"array","items":{"$ref":"#/components/schemas/Qualification"}},"medical_interest":{"type":"array","items":{"$ref":"#/components/schemas/MedicalInterest"}},"field_of_practice":{"type":"array","items":{"$ref":"#/components/schemas/FieldOfPractice"}},"created_at":{"type":"string","format":"date"},"updated_at":{"type":"string","format":"date"}},"example":{"ampco_id":100000,"first_name":"John","last_name":"Doe","salutation":"Mr","preferred_name":"John","gender":"M","type":"DOCTOR","sub_type":"General Practitioner","specialty":"GENERAL PRACTICE","employment_status":"Full Time","phone":29999999,"fax":"02-9999-9999","practising_status":"Practising","no_email_no_call":"No","privacy_optout":"No","ahpra_registration_date":"2001-06-01","education":[{"degree":"Bachelor of Medicine Bachelor of Surgery","graduation_year":1996,"institution":"University of Queensland Brisbane","created_at":"2001-05-20","updated_at":"2005-10-24"},{"graduation_year":2005,"institution":"Fellow Australian and New Zealand College of Anaesthetists"}],"medical_interest":[{"value":"Intensive Care","created_at":"2001-05-20","updated_at":"2001-05-20"},{"value":"Hlth Med Ed Research"},{"value":"Emergency Medicine","created_at":"2001-03-10","updated_at":"2001-03-10"}],"field_of_practice":[{"value":"Hlth Med Ed Research"},{"value":"Emergency Medicine","created_at":"2001-03-10","updated_at":"2001-03-10"}],"created_at":"1998-10-14","updated_at":"2018-12-03"}},"Practices":{"type":"object","properties":{"ampco_id":{"$ref":"#/components/schemas/AmpcoID"},"name":{"maxLength":110,"type":"string"},"beds":{"type":"integer","description":"Count of beds at the practice, reported by the practice. Note that departments inherit the bed count of the parent hospital, which can be misleading.","format":"int32","nullable":true},"num_of_physicians":{"type":"integer","description":"Count of number of staff we have listed as working at that practice. Not reported by the practice itself.","format":"int32"},"web_site":{"maxLength":100,"type":"string","nullable":true},"account_type":{"maxLength":50,"type":"string"},"status":{"type":"string","enum":["Active","Inactive"]},"phone":{"maxLength":20,"type":"string","nullable":true},"fax":{"maxLength":20,"type":"string","nullable":true},"address_line1":{"maxLength":80,"type":"string"},"address_line2":{"maxLength":80,"type":"string","nullable":true},"address_line3":{"maxLength":80,"type":"string","nullable":true},"postal_code":{"maxLength":10,"type":"string"},"suburb":{"maxLength":45,"type":"string"},"country":{"maxLength":50,"type":"string"},"state":{"maxLength":3,"type":"string"},"created_at":{"type":"string","format":"date"},"updated_at":{"type":"string","format":"date"}},"example":{"ampco_id":100298,"name":"Royal North Shore Hospital","beds":552,"num_of_physicians":680,"web_site":"www.nsh.nsw.gov.au","account_type":"Public Hospital","status":"Active","Phone":"0299267111","Fax":"0299267779","address_line1":"Pacific Hwy","suburb":"ST LEONARDS","postal_code":"2065","state":"NSW","country":"AUSTRALIA","created_at":"1998-12-01","updated_at":"2019-02-28"}},"HCP2HCO":{"required":["doctor_id","is_primary","practice_id","start_date"],"type":"object","properties":{"doctor_id":{"$ref":"#/components/schemas/AmpcoID"},"practice_id":{"$ref":"#/components/schemas/AmpcoID"},"is_primary":{"type":"boolean","example":true},"start_date":{"type":"string","format":"date"},"end_date":{"type":"string","format":"date","nullable":true}},"example":{"doctor_id":100000,"practice_id":924201,"is_primary":true,"start_date":"2019-10-10","end_date":"2020-01-20"}},"HCO2HCO":{"required":["child_account","parent_account","start_date","type"],"type":"object","properties":{"parent_account":{"$ref":"#/components/schemas/AmpcoID"},"type":{"maxLength":65,"type":"string"},"child_account":{"$ref":"#/components/schemas/AmpcoID"},"start_date":{"type":"string","format":"date"},"end_date":{"type":"string","format":"date","nullable":true}},"example":{"parent_account":100000,"type":"Has Department","child_account":100000120,"start_date":"2019-10-10"}},"UpdateHCO2HCOWrapper":{"type":"object","properties":{"hco2hco":{"type":"array","items":{"$ref":"#/components/schemas/UpdateHCO2HCO"}}},"example":{"hco2hco":[{"parent_ampco_id":100000,"type":"Has Department","child_ampco_id":100000120},{"parent_ampco_id":100000,"type":"Has Department","child_name":"St Vincents Hospital Pathology"},{"parent_name":"St Vincents Hospital","type":"Has Department","child_ampco_id":100000120},{"parent_name":"St Vincents Hospital","type":"Has Department","child_name":"St Vincents Hospital Pathology"},{"parent_ampco_id":100000,"type":"Manages (Non Profit/Voluntary)","child_ampco_id":100077}]}},"UpdateHCP2HCOWrapper":{"type":"object","properties":{"hcp2hco":{"type":"array","items":{"$ref":"#/components/schemas/UpdateHCP2HCO"}}},"example":{"hcp2hco":[{"practice_ampco_id":100000,"is_primary":false,"doctor_ampco_id":110000},{"practice_ampco_id":100000,"doctor_name":"John Smith"},{"practice_name":"St John of God","is_primary":true,"doctor_ampco_id":110000},{"practice_name":"St John of God","doctor_name":"John Smith"}]}},"AmpcoID":{"type":"integer","format":"int32","example":902592,"oneOf":[{"maximum":999999,"minimum":100000},{"maximum":999999999,"minimum":100000000}]},"Qualification":{"required":["created_at","degree","updated_at"],"properties":{"degree":{"maxLength":95,"type":"string"},"graduation_year":{"maximum":9999,"minimum":1000,"type":"number"},"institution":{"maxLength":80,"type":"string"},"australian_university":{"type":"boolean","nullable":true},"created_at":{"type":"string","format":"date"},"updated_at":{"type":"string","format":"date"}},"example":{"degree":"Master of Psychological Medicine","graduation_year":2005,"institution":"Monash University","australian_university":true}},"MedicalInterest":{"required":["created_at","updated_at","value"],"properties":{"value":{"maxLength":45,"type":"string"},"created_at":{"type":"string","format":"date"},"updated_at":{"type":"string","format":"date"}}},"FieldOfPractice":{"required":["created_at","updated_at","value"],"properties":{"value":{"maxLength":45,"type":"string"},"created_at":{"type":"string","format":"date"},"updated_at":{"type":"string","format":"date"}}},"DCRCustomerId":{"maxLength":255,"type":"string","example":"47f1bd24-cd2b-11ea-87d0-0242ac130003"},"DCRCustomerWrapper":{"type":"object","properties":{"dcr_customer_id":{"$ref":"#/components/schemas/DCRCustomerId"}},"example":{"dcr_customer_id":"47f1bd24-cd2b-11ea-87d0-0242ac130003"}},"DCRResponse":{"required":["ampco_id","comment","dcr_id","dcr_status","resource_path","webhook_status"],"type":"object","properties":{"dcr_id":{"$ref":"#/components/schemas/DCRCustomerId"},"ampco_id":{"type":"integer","format":"int32","nullable":true,"example":902592,"oneOf":[{"maximum":999999,"minimum":100000},{"maximum":999999999,"minimum":100000000}]},"dcr_status":{"maxLength":18,"type":"string","enum":["Accepted","Rejected","Partially Accepted","Pending"]},"comment":{"maxLength":200,"type":"string","description":"e.g. rejection reason","example":"Listee could not be reached for confirmation"},"resource_path":{"maxLength":20,"type":"string","description":"api link to the resource details","nullable":true,"example":"/doctor/902592"},"webhook_status":{"maxLength":12,"type":"string","description":"Success, failure or not attempted of the most recent webhook attempt","nullable":true,"example":"Success","enum":["Not Invoked","Success","Failure"]}}},"UpdateHCO2HCO":{"type":"object","properties":{"parent_ampco_id":{"$ref":"#/components/schemas/AmpcoID"},"parent_name":{"maxLength":80,"type":"string","description":"Business name. Used to identify the parent if parent_ampco_id is not available."},"child_ampco_id":{"$ref":"#/components/schemas/AmpcoID"},"child_name":{"maxLength":80,"type":"string","description":"Business name. Used to identify the parent if child_ampco_id is not available."},"type":{"type":"string"},"start_date":{"type":"string","format":"date"},"end_date":{"type":"string","format":"date"}},"example":{"parent_ampco_id":100000,"type":"Has Department","child_ampco_id":100000120,"start_date":"2019-10-10","end_date":"2021-12-31"},"anyOf":[{"required":["child_ampco_id","parent_ampco_id"]},{"required":["child_ampco_id","parent_name"]},{"required":["child_name","parent_ampco_id"]},{"required":["child_name","parent_name"]}]},"UpdateHCP2HCO":{"type":"object","properties":{"practice_ampco_id":{"$ref":"#/components/schemas/AmpcoID"},"practice_name":{"maxLength":80,"type":"string","description":"Business name. Used to identify the practice if practice_ampco_id is not available."},"doctor_ampco_id":{"$ref":"#/components/schemas/AmpcoID"},"doctor_name":{"maxLength":150,"type":"string","description":"Full name of the doctor. Current practising name preferred. Used to identify the doctor if doctor_ampco_id is not available."},"is_primary":{"type":"boolean"},"start_date":{"type":"string","format":"date"},"end_date":{"type":"string","format":"date"}},"example":{"parent_ampco_id":100000,"child_ampco_id":100000120,"start_date":"2019-10-10","end_date":"2021-12-31"},"anyOf":[{"required":["doctor_ampco_id","practice_ampco_id"]},{"required":["doctor_ampco_id","practice_name"]},{"required":["doctor_name","practice_ampco_id"]},{"required":["doctor_name","practice_name"]}]},"inline_response_200":{"type":"object","properties":{"status":{"type":"boolean","example":true},"message":{"maxLength":250,"type":"string","nullable":true},"errorCode":{"type":"integer","format":"int32","default":0},"return":{"$ref":"#/components/schemas/inline_response_200_return"}}},"inline_response_200_1":{"type":"object","properties":{"status":{"type":"boolean","example":true},"message":{"maxLength":250,"type":"string","nullable":true},"errorCode":{"type":"integer","format":"int32","default":0},"return":{"$ref":"#/components/schemas/inline_response_200_1_return"}}},"inline_response_200_2":{"type":"object","properties":{"status":{"type":"boolean","example":true},"message":{"maxLength":250,"type":"string","nullable":true},"errorCode":{"type":"integer","format":"int32","default":0},"return":{"$ref":"#/components/schemas/inline_response_200_2_return"}}},"inline_response_200_3":{"type":"object","properties":{"status":{"type":"boolean","example":true},"message":{"maxLength":250,"type":"string","nullable":true},"errorCode":{"type":"integer","format":"int32","default":0},"return":{"$ref":"#/components/schemas/inline_response_200_3_return"}}},"inline_response_200_4":{"type":"object","properties":{"status":{"type":"boolean","example":true},"message":{"maxLength":250,"type":"string","nullable":true},"errorCode":{"type":"integer","format":"int32","default":0},"return":{"$ref":"#/components/schemas/inline_response_200_4_return"}}},"inline_response_200_5":{"type":"object","properties":{"status":{"type":"boolean","example":true},"message":{"maxLength":250,"type":"string","nullable":true},"errorCode":{"type":"integer","format":"int32","default":0},"return":{"$ref":"#/components/schemas/inline_response_200_5_return"}}},"inline_response_200_6":{"type":"object","properties":{"status":{"type":"boolean","example":true},"message":{"maxLength":250,"type":"string","nullable":true},"errorCode":{"type":"integer","format":"int32","default":0},"return":{"$ref":"#/components/schemas/inline_response_200_6_return"}}},"inline_response_200_7":{"type":"object","properties":{"status":{"type":"boolean","example":true},"message":{"maxLength":250,"type":"string","nullable":true},"errorCode":{"type":"integer","format":"int32","default":0},"return":{"$ref":"#/components/schemas/inline_response_200_7_return"}}},"inline_response_200_8":{"type":"object","properties":{"status":{"type":"boolean","example":true},"message":{"maxLength":250,"type":"string","nullable":true},"errorCode":{"type":"integer","format":"int32","default":0},"return":{"$ref":"#/components/schemas/inline_response_200_8_return"}}},"inline_response_200_9":{"type":"object","properties":{"status":{"type":"boolean","example":true},"message":{"maxLength":250,"type":"string","nullable":true,"example":"Change request created with dcr_customer_id: 4456412354564126543"},"errorCode":{"type":"integer","format":"int32","example":0,"default":0},"return":{"type":"object"}}},"inline_response_400":{"type":"object","properties":{"status":{"type":"boolean","example":false},"message":{"maxLength":250,"type":"string","nullable":true,"example":"Validation failed. Errors:\n dcr_customer_id: The dcr customer id has already been taken. \n "},"errorCode":{"type":"integer","format":"int32","example":1,"default":1},"return":{"type":"object"}}},"inline_response_200_10":{"type":"object","properties":{"status":{"type":"boolean","example":true},"message":{"maxLength":250,"type":"string","nullable":true},"errorCode":{"type":"integer","format":"int32","default":0},"return":{"$ref":"#/components/schemas/DCRResponse"}}},"inline_response_200_return":{"type":"object","properties":{"current_page":{"type":"integer","format":"int32","example":2,"default":1},"per_page":{"type":"integer","format":"int32","default":100},"total":{"type":"integer","format":"int32","example":224},"total_pages":{"type":"integer","format":"int32","example":3},"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/LOVs"}}}},"inline_response_200_1_return":{"type":"object","properties":{"current_page":{"type":"integer","format":"int32","example":2,"default":1},"per_page":{"type":"integer","format":"int32","default":100},"total":{"type":"integer","format":"int32","example":640},"total_pages":{"type":"integer","format":"int32","example":7},"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/ProvidedDoctors"}}}},"inline_response_200_2_return":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/ProvidedDoctors"}}}},"inline_response_200_3_return":{"type":"object","properties":{"current_page":{"type":"integer","format":"int32","example":2,"default":1},"per_page":{"type":"integer","format":"int32","default":100},"total":{"type":"integer","format":"int32","example":224},"total_pages":{"type":"integer","format":"int32","example":3},"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/ProvidedPractices"}}}},"inline_response_200_4_return":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/ProvidedPractices"}}}},"inline_response_200_5_return":{"type":"object","properties":{"current_page":{"type":"integer","format":"int32","example":2,"default":1},"per_page":{"type":"integer","format":"int32","default":100},"total":{"type":"integer","format":"int32","example":224},"total_pages":{"type":"integer","format":"int32","example":3},"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/HCP2HCO"}}}},"inline_response_200_6_return":{"type":"object","properties":{"current_page":{"type":"integer","format":"int32","example":2,"default":1},"per_page":{"type":"integer","format":"int32","default":100},"total":{"type":"integer","format":"int32","example":224},"total_pages":{"type":"integer","format":"int32","example":3},"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/HCO2HCO"}}}},"inline_response_200_7_return":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/HCP2HCO"}}}},"inline_response_200_8_return":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/HCO2HCO"}}}}},"parameters":{"fromDate":{"name":"fromDate","in":"query","description":"The date from when to collect the result set","required":false,"style":"form","explode":true,"schema":{"type":"string"},"example":"2021-03-20"},"page":{"name":"page","in":"query","description":"The page of the result set to display","required":false,"style":"form","explode":true,"schema":{"minimum":1,"type":"integer"},"example":"2"},"pageLength":{"name":"pageLength","in":"query","description":"No of records to display","required":false,"style":"form","explode":true,"schema":{"maximum":10000,"minimum":1,"type":"integer"},"example":"10"},"limit":{"name":"limit","in":"query","description":"The numbers of items to return","required":false,"style":"form","explode":true,"schema":{"maximum":100,"minimum":1,"type":"integer","default":100}},"ID":{"name":"ID","in":"path","description":"The AMPCo ID, an integer greater than or equal to 100000","required":true,"deprecated":false,"style":"simple","explode":false,"schema":{"$ref":"#/components/schemas/AmpcoID"},"example":100000},"dcrCustomerId":{"name":"DCR_Customer_ID","in":"path","description":"The Novartis-provided ID for a specific DCR request","required":true,"deprecated":false,"style":"simple","explode":false,"schema":{"$ref":"#/components/schemas/DCRCustomerId"},"example":"47f1bd24-cd2b-11ea-87d0-0242ac130003"}},"requestBodies":{"UpdateDoctor":{"description":"A request detailing an updated doctor","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/DCRCustomerWrapper"},{"$ref":"#/components/schemas/Doctors"},{"$ref":"#/components/schemas/UpdateHCP2HCOWrapper"},{"required":["dcr_customer_id","first_name","last_name","sub_type","type"]}],"anyOf":[{"required":["phone"]},{"required":["hcp2hco"]}]}}}},"UpdatePractice":{"description":"A request detailing an updated practice","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/DCRCustomerWrapper"},{"$ref":"#/components/schemas/Practices"},{"$ref":"#/components/schemas/UpdateHCO2HCOWrapper"},{"$ref":"#/components/schemas/UpdateHCP2HCOWrapper"},{"required":["address_line1","country","dcr_customer_id","name","phone","postal_code","state","suburb"]}]},"example":{"dcr_customer_id":"47f1bd24-cd2b-11ea-87d0-0242ac130003","name":"Royal North Shore Hospital","beds":552,"num_of_physicians":680,"web_site":"www.nsh.nsw.gov.au","account_type":"Public Hospital","status":"Active","Phone":"0299267111","Fax":"0299267779","address_line1":"Pacific Hwy","suburb":"ST LEONARDS","postal_code":"2065","state":"NSW","country":"AUSTRALIA","created_at":"2019-03-03","updated_at":"2021-03-16","hcp2hco":[{"practice_ampco_id":100000,"is_primary":true,"doctor_ampco_id":110000},{"practice_ampco_id":100000,"is_primary":false,"doctor_name":"John Smith"},{"practice_name":"St John of God","is_primary":false,"doctor_ampco_id":110000},{"practice_name":"St John of God","is_primary":false,"doctor_name":"John Smith"}],"hco2hco":[{"parent_ampco_id":100000,"type":"Has Department","child_ampco_id":100000120},{"parent_ampco_id":100000,"type":"Has Department","child_name":"St Vincents Pathology"},{"parent_name":"St Vincents Hospital","type":"Has Department","child_ampco_id":100000120},{"parent_name":"St Vincents Hospital","type":"Has Department","child_name":"St Vincents Pathology"}]}}}}}}}