{"swagger":"2.0","host":"api.truepill.com","basePath":"/","schemes":["https","http"],"info":{"title":"Truepill API documentation","version":"0.0.1","description":"DOCS"},"securityDefinitions":{"apiKey":{"type":"apiKey","name":"Authorization","in":"header"}},"security":[{"apiKey":[]}],"tags":[],"paths":{"/scheduled-actions":{"get":{"summary":"Get scheduled actions list with any action type by current customer","operationId":"getScheduledactions","parameters":[{"type":"integer","description":"The quantity of scheduled actions items per query/page","default":20,"minimum":1,"maximum":100,"name":"limit","in":"query"},{"type":"string","description":"Next page token is the base64 encoded cursor (created action date) from which to start paginated list","name":"nextPageToken","in":"query"}],"tags":["scheduled-actions"],"responses":{"200":{"schema":{"$ref":"#/definitions/getScheduledActions.data"},"description":"OK"},"400":{"schema":{"$ref":"#/definitions/Model2"},"description":"Bad Request"},"401":{"schema":{"$ref":"#/definitions/Model3"},"description":"Unauthorized"},"500":{"schema":{"$ref":"#/definitions/Model2"},"description":"Internal Server Error"}}}},"/scheduled-fill-requests":{"get":{"summary":"Retrieve details for a scheduled fill request by id.","operationId":"getScheduledfillrequests","description":"Include either original_fill_request_token or id in the query parameters.","parameters":[{"type":"string","x-format":{"guid":true},"name":"id","in":"query"},{"type":"string","name":"original_fill_request_token","in":"query"}],"tags":["scheduled-fill-requests"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model4"},"description":"OK"},"400":{"schema":{"$ref":"#/definitions/Model2"},"description":"Bad Request"},"401":{"schema":{"$ref":"#/definitions/Model3"},"description":"Unauthorized"},"500":{"schema":{"$ref":"#/definitions/Model2"},"description":"Internal Server Error"}}},"post":{"summary":"Reschedule a fill request that was submitted too soon.","operationId":"postScheduledfillrequests","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/POST%20ScheduledFill%20Request%20Payload"}}],"tags":["scheduled-fill-requests"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model113"},"description":"OK"},"400":{"schema":{"$ref":"#/definitions/Model2"},"description":"Bad Request"},"401":{"schema":{"$ref":"#/definitions/Model3"},"description":"Unauthorized"},"500":{"schema":{"$ref":"#/definitions/Model2"},"description":"Internal Server Error"}}}},"/consults/v0":{"get":{"summary":"Get Consults","operationId":"getConsultsV0","description":"Get a list of consults","parameters":[{"type":"string","description":"Program ID","pattern":"^[0-9a-fA-F]{24}$","name":"program_id","in":"query"},{"type":"string","name":"provider_name","in":"query"},{"type":"string","name":"patient_name","in":"query"},{"type":"string","name":"patient_token","in":"query"},{"type":"boolean","name":"scheduled","in":"query"},{"type":"string","name":"status","in":"query"},{"type":"boolean","name":"bundled","in":"query"},{"type":"string","name":"appointment_start_date","in":"query"},{"type":"string","name":"appointment_end_date","in":"query"},{"type":"number","name":"skip","in":"query"},{"type":"number","name":"page_number","in":"query"},{"type":"number","name":"limit","in":"query"},{"type":"string","name":"sort","in":"query"},{"type":"string","name":"direction","in":"query"}],"tags":["consults"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model7"},"description":"OK"},"401":{"schema":{"$ref":"#/definitions/Model8"},"description":"Unauthorized"},"500":{"schema":{"$ref":"#/definitions/Model9"},"description":"Internal Server Error"}}}},"/v0/schedule":{"get":{"summary":"Return available open slots for any provider that can be used to create consults and schedule appointments on these slots.","operationId":"getV0Schedule","description":"Returns schedule availability of providers based on given parameters","parameters":[{"type":"string","format":"date-time","description":"The time starting from which free slots will be returned. Should be greater than the current time.","name":"start","in":"query","required":true},{"type":"string","format":"date-time","description":"The end time up to which free slots will be returned.","name":"end","in":"query","required":true},{"type":"string","description":"Unique identifier for the questionnaire that providers have enabled scheduling for.","x-constraint":{"length":24},"x-format":{"hex":{"byteAligned":false,"prefix":false}},"name":"questionnaire","in":"query","required":true},{"type":"string","description":"Two letter abbreviation of provider’s licensed state used as a filter.","pattern":"^[A-Z]{2}$","name":"state","in":"query","required":true},{"type":"integer","description":"The duration of each returned slot in minutes.","x-constraint":{"sign":"positive"},"name":"duration","in":"query","required":false}],"tags":["v0"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model11"},"description":"OK"},"400":{"schema":{"$ref":"#/definitions/Model13"},"description":"Bad Request"},"401":{"schema":{"$ref":"#/definitions/Model8"},"description":"Unauthorized"},"404":{"schema":{"$ref":"#/definitions/Model14"},"description":"Not Found"},"500":{"schema":{"$ref":"#/definitions/Model9"},"description":"Internal Server Error"}}}},"/v1/auto-refill":{"get":{"summary":"Get a list of all prescriptions currently subscribed to auto-refill","operationId":"getV1Autorefill","tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model15"},"description":"ok"},"400":{"schema":{"$ref":"#/definitions/Model18"},"description":"Bad Request"},"500":{"schema":{"$ref":"#/definitions/Model19"},"description":"Internal Server Error"}}}},"/v1/availability":{"get":{"summary":"Get NDC availability","operationId":"getV1Availability","tags":["v1"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/v1/external_location_matches":{"get":{"summary":"Search for specific external location using address information","operationId":"getV1External_location_matches","tags":["v1"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}},"post":{"summary":"Query external locations for multiple addresses, and will reply back with a map linking to the matched external location, or indication that one does not exist yet ","operationId":"postV1External_location_matches","tags":["v1"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/v1/external_locations":{"get":{"summary":"Search for external locations using zip code","operationId":"getV1External_locations","tags":["v1"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/v1/fill_requests":{"get":{"summary":"Get a list of fill requests","operationId":"getV1Fill_requests","description":"Returns a list of fill requests and allows for the use of query parameters to scope the results of the request","parameters":[{"type":"string","name":"created_at","in":"query"},{"type":"number","maximum":100,"name":"limit","in":"query"},{"type":"string","name":"next","in":"query"},{"type":"string","name":"metadata","in":"query"}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model22"},"description":"OK"},"500":{"schema":{"$ref":"#/definitions/Model9"},"description":"Internal Server Error"}}}},"/v1/nearby_same_day_pickup_locations":{"get":{"summary":"Search for nearby same day pickup locations using address details","operationId":"getV1Nearby_same_day_pickup_locations","tags":["v1"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/v1/patient":{"get":{"summary":"Patient search","operationId":"getV1Patient","description":"While the Get Patient endpoint requires a `patient_token` to retrieve information, you can also retrieve patient information without a `patient_token`, using the Find Patient endpoint.<br/><br/>Search for patient information by appending the following param fields onto the API endpoint, separated with an `&`:","parameters":[{"type":"string","name":"guardian","in":"query"},{"type":"string","description":"Patient title","enum":["Mr.","Ms.","Mrs.","Miss","Ms","Prof","Sir"],"name":"prefix","in":"query"},{"type":"string","description":"Suffix which qualifies a person","enum":["Jr.","Sr.","I","II","III","IV","V"],"name":"suffix","in":"query"},{"type":"string","description":"Patient first name","x-convert":{"trim":true},"name":"first_name","in":"query","required":true},{"type":"string","description":"Patient last name","x-convert":{"trim":true},"name":"last_name","in":"query","required":true},{"type":"string","description":"Patient gender","enum":["male","female","unknown"],"name":"gender","in":"query","required":true},{"type":"string","format":"date","description":"Patient's date of birth","name":"dob","in":"query","required":true},{"type":"string","description":"Postal code where the company is located","pattern":"^\\d{5}(-\\d{4})?$","name":"zip","in":"query"},{"type":"string","default":"Human","enum":["Human","Crocodile","Frog","Iguana","Lizard","Snake","Tortoise","Turtle","Spider","Other Arthopoda","Chicken","African Goshawk","Budgerigar","Cockatiel","Cockatoo","Common Canary","Crow","Duck","Eagle","Goose","Guinea Fowl","Kestrel","Kite","Macaw","Ostrich","Other Aves","Owl","Parakeet","Parrot","Partridge","Peregrin Falcon","Pheasant","Pigeon","Quail","Snipe","Sparrow","Starling","Swan","Turtle Dove","Bison","Cattle/Bovine","Buffalo","Other Bovinae","Alpaca","Camel","Llama","Other Camelidae","Dog/Canine","Fox","Jackal","Raccoon Dog","Wolf","Other Caprinae","Goat/Carpine","Sheep/Ovine","Elk","Moose","Fallow","Other Cervidae","Red Deer","Reindeer","Roe Deer","Donkey/Asinine","Horse/Equine","Hybrid","Other Equidae","Zebra","Bobcat","Cougar","Puma","European Lynx","Cat/Feline","Jaguar","Leopard","Lion","Other Felidae","Tiger","Wild Cat","European Rabbit","Hare","Other Leporidae","Bivalvia","Cephalopoda","Other Mollusca","Badger","Ferret","Mink","Other Mustelidae","Bat","Bear","Hedgehog","Monkey","Other Mammalia","Arctic Char","Atlantic Salmon","Brill","Carp","Catfish","Cod","Crucian Carp","European Eel","Gilthead","Goldfish","Gudgeon","Halibut","Largemouth Bass","Mullet","Other Pisces","Perch","Pike","Roach","Sea Bream","Seabass","Sharpsnout Seabream","Sole","Sturgeon","Tench","Trout","Turbot","Rockfish/Wolffish","Beaver","Chinchilla","Dormouse","Dwarf Hamster","European Hamster","Gerbil","Guinea Pig","House Mouse","Other Rodentia","Rat","Russian Hamster","Syrian Hamster","Golden Hamster","Vole","Other Suidae","Pig/Porcine","Wild Boar","Addax"],"name":"species","in":"query"}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model23"},"description":"OK"},"404":{"schema":{"$ref":"#/definitions/Model24"},"description":"Not Found"}}},"put":{"summary":"Create Patient","operationId":"putV1Patient","description":"This endpoint generates a patient record in the Truepill ecosystem.<br/><br/>Upon a successful request, the endpoint returns a `patient_token` for you to reference in subsequent API requests that require this field.<br/><br/>The `patient_token` that is returned upon successfully creating a patient record can be used with many of the other endpoints to continue referencing the same record.<br/><br/>If the patient information in the request body matches the information in an existing patient record, the existing `patient_token` will be returned in the API response.<br/><br/>The address and phone number provided should be the same as the information provided to the prescriber on the e-Script. These attributes are only used for matching purposes.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model230"}}],"tags":["v1"],"responses":{"201":{"schema":{"$ref":"#/definitions/Model231"},"description":"Created"},"400":{"schema":{"$ref":"#/definitions/Model234"},"description":"Bad Request"}}}},"/v1/pharmacy-coverage":{"get":{"summary":"Get best suitable Pharmacy Location","operationId":"getV1Pharmacycoverage","parameters":[{"type":"string","x-constraint":{"length":2},"name":"ship_to_state","in":"query"},{"type":"string","pattern":"^[0-9]{6}$","name":"bin","in":"query"},{"type":"string","name":"pcn","in":"query"},{"type":"string","name":"group_number","in":"query"}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model25"},"description":"OK"},"400":{"schema":{"$ref":"#/definitions/Model26"},"description":"Bad Request"},"401":{"schema":{"$ref":"#/definitions/Model27"},"description":"Unauthorized"},"403":{"schema":{"$ref":"#/definitions/Model28"},"description":"Forbidden"}}}},"/v1/same_day_delivery":{"get":{"summary":"Get same day delivery orders","operationId":"getV1Same_day_delivery","description":"Get same day delivery orders","parameters":[{"type":"string","minLength":0,"name":"next_page_token","in":"query"},{"type":"string","enum":["PENDING","FAILED","AWAITING_PICKUP","IN_TRANSIT","DELIVERED","CANCELED","INCOMPLETE"],"name":"status","in":"query"},{"type":"number","default":20,"minimum":1,"maximum":1000,"name":"limit","in":"query"}],"tags":["v1"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}},"post":{"summary":"Create a same day delivery order","operationId":"postV1Same_day_delivery","description":"Create a same day delivery order","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model173"}}],"tags":["v1"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/v1/specialty_pharmacies":{"get":{"summary":"Fetch specialty pharmacies based on Rx token (for prescriber NPI) and insurance token (for bin, pcn, group)","operationId":"getV1Specialty_pharmacies","tags":["v1"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/v1/transfer_request":{"get":{"summary":"Get a list of Transfers","operationId":"getV1Transfer_request","description":"This endpoint retrieves a list of all the transfer requests you have made to the Truepill ecosystem.<br/><br/>List transfers utilizes an optional pagination functionality when retrieving a large number of transfers. By default, this endpoint retrieves 50 transfers at a time, starting with the earliest transfers.<br/><br/>For example, if you were looking to retrieve the 70-80th transfers made to Truepill, you would use a pagination of 1 (zero base indexing).<br/><br/>To paginate, append a `?` at the end of the API endpoint along with the `page=[PAGE_NUMBER]`, and replace<br/><br/>`[PAGE_NUMBER]` with an integer.<br/><br/>If the pagination value surpasses the number of transfers in the system, an empty array `[]` will be returned.<br/><br/>This endpoint retrieves 50 transfers at a time, starting with the earliest-made transfers. If you have a large number of transfers and are looking to retrieve more recent transfers, you will need to paginate.","tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model31"},"description":"OK"}}},"post":{"summary":"Create a Transfer","operationId":"postV1Transfer_request","description":"A transfer request can be created using our `transfer_request` API endpoint. Truepill will provide a receipt confirmation of the request, but please note the subsequent webhook event notifying you of a successful transfer may take 1-3 days.<br/><br/>The following endpoint requests the transfer of a prescription from a third-party pharmacy to Truepill’s pharmacy. If the prescription in question was generated by a physician contracted by the API User then this endpoint does not need to be called; otherwise this request is necessary for the Fill Request to be fulfilled.<br/><br/>Note: You MUST send either pharmacy contact information or prescriber contact information to avoid an error.<br/><br/>If `medications` field is not provided in the request, Truepill will transfer all possible patient prescriptions.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Transfer%20request"}}],"tags":["v1"],"responses":{"201":{"schema":{"$ref":"#/definitions/Model178"},"description":"Created"},"400":{"schema":{"$ref":"#/definitions/Model181"},"description":"Bad Request"},"404":{"schema":{"$ref":"#/definitions/Model24"},"description":"Not Found"}}}},"/v1/webhook_events":{"get":{"summary":"List all Webhook Events","operationId":"getV1Webhook_events","parameters":[{"type":"string","x-alternatives":[{"type":"string"},{"type":"array","items":{"type":"string"},"collectionFormat":"multi","name":"timestamp"}],"name":"timestamp","in":"query"},{"type":"number","maximum":100,"name":"limit","in":"query"},{"type":"string","name":"next","in":"query"},{"type":"string","name":"status","in":"query"}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model37"},"description":"OK"}}}},"/api/v1/auto-refill":{"get":{"summary":"Get a list of all prescriptions currently subscribed to auto-refill","operationId":"getApiV1Autorefill","tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model15"},"description":"ok"},"400":{"schema":{"$ref":"#/definitions/Model18"},"description":"Bad Request"},"500":{"schema":{"$ref":"#/definitions/Model19"},"description":"Internal Server Error"}}}},"/api/v1/availability":{"get":{"summary":"Get NDC availability","operationId":"getApiV1Availability","tags":["api"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/api/v1/external_location_matches":{"get":{"summary":"Search for specific external location using address information","operationId":"getApiV1External_location_matches","tags":["api"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}},"post":{"summary":"Query external locations for multiple addresses, and will reply back with a map linking to the matched external location, or indication that one does not exist yet ","operationId":"postApiV1External_location_matches","tags":["api"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/api/v1/external_locations":{"get":{"summary":"Search for external locations using zip code","operationId":"getApiV1External_locations","tags":["api"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/api/v1/fill_requests":{"get":{"summary":"Get a list of fill requests","operationId":"getApiV1Fill_requests","description":"Returns a list of fill requests and allows for the use of query parameters to scope the results of the request","parameters":[{"type":"string","name":"created_at","in":"query"},{"type":"number","maximum":100,"name":"limit","in":"query"},{"type":"string","name":"next","in":"query"},{"type":"string","name":"metadata","in":"query"}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model22"},"description":"OK"},"500":{"schema":{"$ref":"#/definitions/Model9"},"description":"Internal Server Error"}}}},"/api/v1/nearby_same_day_pickup_locations":{"get":{"summary":"Search for nearby same day pickup locations using address details","operationId":"getApiV1Nearby_same_day_pickup_locations","tags":["api"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/api/v1/patient":{"get":{"summary":"Patient search","operationId":"getApiV1Patient","description":"While the Get Patient endpoint requires a `patient_token` to retrieve information, you can also retrieve patient information without a `patient_token`, using the Find Patient endpoint.<br/><br/>Search for patient information by appending the following param fields onto the API endpoint, separated with an `&`:","parameters":[{"type":"string","name":"guardian","in":"query"},{"type":"string","description":"Patient title","enum":["Mr.","Ms.","Mrs.","Miss","Ms","Prof","Sir"],"name":"prefix","in":"query"},{"type":"string","description":"Suffix which qualifies a person","enum":["Jr.","Sr.","I","II","III","IV","V"],"name":"suffix","in":"query"},{"type":"string","description":"Patient first name","x-convert":{"trim":true},"name":"first_name","in":"query","required":true},{"type":"string","description":"Patient last name","x-convert":{"trim":true},"name":"last_name","in":"query","required":true},{"type":"string","description":"Patient gender","enum":["male","female","unknown"],"name":"gender","in":"query","required":true},{"type":"string","format":"date","description":"Patient's date of birth","name":"dob","in":"query","required":true},{"type":"string","description":"Postal code where the company is located","pattern":"^\\d{5}(-\\d{4})?$","name":"zip","in":"query"},{"type":"string","default":"Human","enum":["Human","Crocodile","Frog","Iguana","Lizard","Snake","Tortoise","Turtle","Spider","Other Arthopoda","Chicken","African Goshawk","Budgerigar","Cockatiel","Cockatoo","Common Canary","Crow","Duck","Eagle","Goose","Guinea Fowl","Kestrel","Kite","Macaw","Ostrich","Other Aves","Owl","Parakeet","Parrot","Partridge","Peregrin Falcon","Pheasant","Pigeon","Quail","Snipe","Sparrow","Starling","Swan","Turtle Dove","Bison","Cattle/Bovine","Buffalo","Other Bovinae","Alpaca","Camel","Llama","Other Camelidae","Dog/Canine","Fox","Jackal","Raccoon Dog","Wolf","Other Caprinae","Goat/Carpine","Sheep/Ovine","Elk","Moose","Fallow","Other Cervidae","Red Deer","Reindeer","Roe Deer","Donkey/Asinine","Horse/Equine","Hybrid","Other Equidae","Zebra","Bobcat","Cougar","Puma","European Lynx","Cat/Feline","Jaguar","Leopard","Lion","Other Felidae","Tiger","Wild Cat","European Rabbit","Hare","Other Leporidae","Bivalvia","Cephalopoda","Other Mollusca","Badger","Ferret","Mink","Other Mustelidae","Bat","Bear","Hedgehog","Monkey","Other Mammalia","Arctic Char","Atlantic Salmon","Brill","Carp","Catfish","Cod","Crucian Carp","European Eel","Gilthead","Goldfish","Gudgeon","Halibut","Largemouth Bass","Mullet","Other Pisces","Perch","Pike","Roach","Sea Bream","Seabass","Sharpsnout Seabream","Sole","Sturgeon","Tench","Trout","Turbot","Rockfish/Wolffish","Beaver","Chinchilla","Dormouse","Dwarf Hamster","European Hamster","Gerbil","Guinea Pig","House Mouse","Other Rodentia","Rat","Russian Hamster","Syrian Hamster","Golden Hamster","Vole","Other Suidae","Pig/Porcine","Wild Boar","Addax"],"name":"species","in":"query"}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model23"},"description":"OK"},"404":{"schema":{"$ref":"#/definitions/Model24"},"description":"Not Found"}}},"put":{"summary":"Create Patient","operationId":"putApiV1Patient","description":"This endpoint generates a patient record in the Truepill ecosystem.<br/><br/>Upon a successful request, the endpoint returns a `patient_token` for you to reference in subsequent API requests that require this field.<br/><br/>The `patient_token` that is returned upon successfully creating a patient record can be used with many of the other endpoints to continue referencing the same record.<br/><br/>If the patient information in the request body matches the information in an existing patient record, the existing `patient_token` will be returned in the API response.<br/><br/>The address and phone number provided should be the same as the information provided to the prescriber on the e-Script. These attributes are only used for matching purposes.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model230"}}],"tags":["api"],"responses":{"201":{"schema":{"$ref":"#/definitions/Model231"},"description":"Created"},"400":{"schema":{"$ref":"#/definitions/Model234"},"description":"Bad Request"}}}},"/api/v1/pharmacy-coverage":{"get":{"summary":"Get best suitable Pharmacy Location","operationId":"getApiV1Pharmacycoverage","parameters":[{"type":"string","x-constraint":{"length":2},"name":"ship_to_state","in":"query"},{"type":"string","pattern":"^[0-9]{6}$","name":"bin","in":"query"},{"type":"string","name":"pcn","in":"query"},{"type":"string","name":"group_number","in":"query"}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model25"},"description":"OK"},"400":{"schema":{"$ref":"#/definitions/Model26"},"description":"Bad Request"},"401":{"schema":{"$ref":"#/definitions/Model27"},"description":"Unauthorized"},"403":{"schema":{"$ref":"#/definitions/Model28"},"description":"Forbidden"}}}},"/api/v1/same_day_delivery":{"get":{"summary":"Get same day delivery orders","operationId":"getApiV1Same_day_delivery","description":"Get same day delivery orders","parameters":[{"type":"string","minLength":0,"name":"next_page_token","in":"query"},{"type":"string","enum":["PENDING","FAILED","AWAITING_PICKUP","IN_TRANSIT","DELIVERED","CANCELED","INCOMPLETE"],"name":"status","in":"query"},{"type":"number","default":20,"minimum":1,"maximum":1000,"name":"limit","in":"query"}],"tags":["api"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}},"post":{"summary":"Create a same day delivery order","operationId":"postApiV1Same_day_delivery","description":"Create a same day delivery order","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model173"}}],"tags":["api"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/api/v1/specialty_pharmacies":{"get":{"summary":"Fetch specialty pharmacies based on Rx token (for prescriber NPI) and insurance token (for bin, pcn, group)","operationId":"getApiV1Specialty_pharmacies","tags":["api"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/api/v1/transfer_request":{"get":{"summary":"Get a list of Transfers","operationId":"getApiV1Transfer_request","description":"This endpoint retrieves a list of all the transfer requests you have made to the Truepill ecosystem.<br/><br/>List transfers utilizes an optional pagination functionality when retrieving a large number of transfers. By default, this endpoint retrieves 50 transfers at a time, starting with the earliest transfers.<br/><br/>For example, if you were looking to retrieve the 70-80th transfers made to Truepill, you would use a pagination of 1 (zero base indexing).<br/><br/>To paginate, append a `?` at the end of the API endpoint along with the `page=[PAGE_NUMBER]`, and replace<br/><br/>`[PAGE_NUMBER]` with an integer.<br/><br/>If the pagination value surpasses the number of transfers in the system, an empty array `[]` will be returned.<br/><br/>This endpoint retrieves 50 transfers at a time, starting with the earliest-made transfers. If you have a large number of transfers and are looking to retrieve more recent transfers, you will need to paginate.","tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model31"},"description":"OK"}}},"post":{"summary":"Create a Transfer","operationId":"postApiV1Transfer_request","description":"A transfer request can be created using our `transfer_request` API endpoint. Truepill will provide a receipt confirmation of the request, but please note the subsequent webhook event notifying you of a successful transfer may take 1-3 days.<br/><br/>The following endpoint requests the transfer of a prescription from a third-party pharmacy to Truepill’s pharmacy. If the prescription in question was generated by a physician contracted by the API User then this endpoint does not need to be called; otherwise this request is necessary for the Fill Request to be fulfilled.<br/><br/>Note: You MUST send either pharmacy contact information or prescriber contact information to avoid an error.<br/><br/>If `medications` field is not provided in the request, Truepill will transfer all possible patient prescriptions.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Transfer%20request"}}],"tags":["api"],"responses":{"201":{"schema":{"$ref":"#/definitions/Model178"},"description":"Created"},"400":{"schema":{"$ref":"#/definitions/Model181"},"description":"Bad Request"},"404":{"schema":{"$ref":"#/definitions/Model24"},"description":"Not Found"}}}},"/api/v1/webhook_events":{"get":{"summary":"List all Webhook Events","operationId":"getApiV1Webhook_events","parameters":[{"type":"string","x-alternatives":[{"type":"string"},{"type":"array","items":{"type":"string"},"collectionFormat":"multi","name":"timestamp"}],"name":"timestamp","in":"query"},{"type":"number","maximum":100,"name":"limit","in":"query"},{"type":"string","name":"next","in":"query"},{"type":"string","name":"status","in":"query"}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model37"},"description":"OK"}}}},"/diagnostics/v0/kits":{"get":{"summary":"Get Kits","operationId":"getDiagnosticsV0Kits","description":"Get available kits.","tags":["diagnostics"],"responses":{"200":{"schema":{"$ref":"#/definitions/KitResponse"},"description":"The set of all test kits"},"400":{"description":"There is an issue with your request. Inspection of the response body will yield more details"},"401":{"description":"Authorization missing or invalid"},"404":{"description":"Kit not found"},"500":{"description":"An unexpected, likely ephemeral scenario occurred. The request will have to be retried later. We recommend reaching out to Truepill if this is a persistent issue."}}}},"/diagnostics/v0/orders":{"get":{"summary":"Get Orders","operationId":"getDiagnosticsV0Orders","description":"Get all orders. Supports searching with a simple DSL: \n        [operator]:value where [operator] is one of: '$lt' for \"less than\" '$lte' for \"less than or equal to\" '$eq' for \"equal to\" '$gte' for \"greater than or equal to\" '$gt' for \"greater than\"","parameters":[{"type":"number","description":"Limited Quantity information","name":"limit","in":"query"},{"type":"string","description":"query + ID indicating which test should to be ordered. Acceptable query values include: '$eq:' (equals), '$gt:' (greater than), '$gte:' (greater than or equal to), '$lt:' (less than), '$lte:' (less than or equal to)","pattern":"^(\\$gt:|\\$gte:|\\$lt:|\\$lte:|\\$eq:)[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$","name":"test_id","in":"query"},{"type":"string","description":"query + ID indicating which kit should be ordered. Acceptable query values include: '$eq:' (equals), '$gt:' (greater than), '$gte:' (greater than or equal to), '$lt:' (less than), '$lte:' (less than or equal to)","pattern":"^(\\$gt:|\\$gte:|\\$lt:|\\$lte:|\\$eq:)[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$","name":"kit_id","in":"query"},{"type":"string","description":"A custom data string for external use. This can be any arbitrary UTF-8 string","pattern":"^(\\$gt:|\\$gte:|\\$lt:|\\$lte:|\\$eq:).+$","name":"custom_data_1","in":"query"},{"type":"string","description":"A custom data string for external use. This can be any arbitrary UTF-8 string","pattern":"^(\\$gt:|\\$gte:|\\$lt:|\\$lte:|\\$eq:).+$","name":"custom_data_2","in":"query"},{"type":"string","description":"A custom data string for external use. This can be any arbitrary UTF-8 string","pattern":"^(\\$gt:|\\$gte:|\\$lt:|\\$lte:|\\$eq:).+$","name":"custom_data_3","in":"query"},{"type":"array","minItems":1,"items":{"type":"string"},"collectionFormat":"multi","name":"panels","in":"query","required":false},{"type":"string","name":"pageToken","in":"query"}],"tags":["diagnostics"],"responses":{"200":{"schema":{"$ref":"#/definitions/OrderResponse"},"description":"The set of all orders"},"400":{"description":"There is an issue with your request. Inspection of the response body will yield more details"},"401":{"description":"Authorization missing or invalid"},"500":{"description":"An unexpected, likely ephemeral scenario occurred. The request will have to be retried later. We recommend reaching out to Truepill if this is a persistent issue."}}},"post":{"summary":"Post Order","operationId":"postDiagnosticsV0Orders","description":"Create a new order, and fulfill a new kit to the patient for that order. If there's already a kit for this patient, use the \"register\" endpoint instead of this endpoint.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/PostOrders"}}],"tags":["diagnostics"],"responses":{"200":{"schema":{"$ref":"#/definitions/Order"},"description":"Successful"},"201":{"description":"The created order"},"400":{"description":"There is an issue with your request. Inspection of the response body will yield more details"},"401":{"description":"Authorization missing or invalid"},"500":{"description":"An unexpected, likely ephemeral scenario occurred. The request will have to be retried later. We recommend reaching out to Truepill if this is a persistent issue."}}}},"/diagnostics/v0/tests":{"get":{"summary":"Get Tests","operationId":"getDiagnosticsV0Tests","description":"Get available tests","tags":["diagnostics"],"responses":{"200":{"schema":{"$ref":"#/definitions/TestResponse"},"description":"The set of all tests"},"400":{"description":"There is an issue with your request. Inspection of the response body will yield more details"},"401":{"description":"Authorization missing or invalid"},"500":{"description":"An unexpected, likely ephemeral scenario occurred. The request will have to be retried later. We recommend reaching out to Truepill if this is a persistent issue."}}}},"/v1/auto-refill/{prescription_token}":{"get":{"summary":"GET auto refill subscription","operationId":"getV1AutorefillPrescription_token","parameters":[{"type":"string","name":"prescription_token","in":"path","required":true}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model43"},"description":"ok"},"400":{"schema":{"$ref":"#/definitions/Model18"},"description":"Bad Request"},"500":{"schema":{"$ref":"#/definitions/Model19"},"description":"Internal Server Error"}}},"post":{"summary":"Create auto refill subscription for prescription","operationId":"postV1AutorefillPrescription_token","parameters":[{"type":"string","name":"prescription_token","in":"path","required":true}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model209"},"description":"ok"},"400":{"schema":{"$ref":"#/definitions/Model18"},"description":"Bad Request"},"500":{"schema":{"$ref":"#/definitions/Model19"},"description":"Internal Server Error"}}},"delete":{"summary":"Cancel an auto-refill subscription","operationId":"deleteV1AutorefillPrescription_token","parameters":[{"type":"string","name":"prescription_token","in":"path","required":true}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model242"},"description":"ok"},"400":{"schema":{"$ref":"#/definitions/Model18"},"description":"Bad Request"},"500":{"schema":{"$ref":"#/definitions/Model19"},"description":"Internal Server Error"}}}},"/v1/copay_request/{request_id}":{"get":{"summary":"Get Copay Request by request_id","operationId":"getV1Copay_requestRequest_id","description":"Get information around an existing Copay Request","parameters":[{"type":"string","description":"Request id","name":"request_id","in":"path","required":true}],"tags":["v1"],"responses":{"202":{"schema":{"$ref":"#/definitions/Model45"},"description":"Accepted"},"404":{"schema":{"$ref":"#/definitions/Model46"},"description":"Not Found"}}}},"/v1/direct_transfer/{direct_transfer_token}":{"get":{"summary":"Get Direct Transfer by token","operationId":"getV1Direct_transferDirect_transfer_token","parameters":[{"type":"string","name":"direct_transfer_token","in":"path","required":true}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model47"},"description":"OK"},"403":{"schema":{"$ref":"#/definitions/Model48"},"description":"Forbidden"},"404":{"schema":{"$ref":"#/definitions/Model49"},"description":"Not Found"}}}},"/v1/external_locations/{id}":{"get":{"summary":"Get a specific external location by id","operationId":"getV1External_locationsId","tags":["v1"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/v1/external_transfers/{id}":{"get":{"summary":"Get external transfer details","operationId":"getV1External_transfersId","description":"Get the details of an external transfer<br/><br/>This endpoints needs the external transfer id to retrieve the right data","tags":["v1"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/v1/fill_request/{url_token}":{"get":{"summary":"Get Fill Request by token","operationId":"getV1Fill_requestUrl_token","description":"Once a Fill Request has been submitted, you can look up the request payload that was submitted at any time for reference with an API request<br/><br/>This endpoint requires a `request_token`. You will receive a `request_token` upon a successful Fill Request API submission response in the `request_id` field.","parameters":[{"type":"string","description":"URL token","name":"url_token","in":"path","required":true}],"tags":["v1"],"responses":{"202":{"schema":{"$ref":"#/definitions/Model21"},"description":"Accepted"},"403":{"schema":{"$ref":"#/definitions/Model50"},"description":"Forbidden"},"404":{"schema":{"$ref":"#/definitions/Model51"},"description":"Not Found"}}}},"/v1/insurance/{insurance_token}":{"get":{"summary":"Get Insurance details","operationId":"getV1InsuranceInsurance_token","parameters":[{"type":"string","description":"Insurance token","name":"insurance_token","in":"path","required":true}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model52"},"description":"OK"},"404":{"schema":{"$ref":"#/definitions/Model53"},"description":"Not Found"}}}},"/v1/media/{id}":{"get":{"summary":"Get media by id","operationId":"getV1MediaId","parameters":[{"type":"string","description":"Should be a uuid","pattern":"^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$","name":"id","in":"path","required":true}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model54"},"description":"OK"},"401":{"schema":{"$ref":"#/definitions/Model55"},"description":"Unauthorized"},"404":{"schema":{"$ref":"#/definitions/Model56"},"description":"Not Found"},"500":{"schema":{"$ref":"#/definitions/Model9"},"description":"Internal Server Error"}}}},"/v1/open-api/api.yml":{"get":{"summary":"Get current OpenAPI spec for Truepill APIs","operationId":"getV1OpenapiApiyml","tags":["v1"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/v1/order/{token}":{"get":{"summary":"Get Order","operationId":"getV1OrderToken","description":"Get the details of an order<br/><br/>This endpoints needs the url_token to retrieve the right data","tags":["v1"],"responses":{"400":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_refs":{"refs":[]},"_flags":{"unknown":true},"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"statusCode","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"error","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}},"401":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_refs":{"refs":[]},"_flags":{"unknown":true},"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"error","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"message","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}},"404":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_refs":{"refs":[]},"_flags":{"unknown":true},"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"statusCode","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"error","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"message","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}}},"/v1/patient/{patient_token}":{"get":{"summary":"Get Patient","operationId":"getV1PatientPatient_token","description":"Once a patient has been created in the Truepill ecosystem, you can access the patient information at any time using the `patient_token` that was provided on the Create Patient response.<br/><br/>If the `patient_token` does not map to a patient record, a `404 Not Found` will be returned.<br/><br/>Querying for patient information that does not belong to you will return an error response.<br/><br/>Patient SSN and `id_image` information is not viewable through this endpoint","parameters":[{"type":"string","name":"patient_token","in":"path","required":true}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model58"},"description":"OK"},"404":{"schema":{"$ref":"#/definitions/Model24"},"description":"Not Found"}}},"post":{"summary":"Update Patient","operationId":"postV1PatientPatient_token","description":"This endpoint updates a patient record in the Truepill ecosystem.<br/><br/>Upon a successful request, the endpoint returns the `patient_token` of the patient updated, the timestamp, the status, and a message.<br/><br/>Only non-required fields can be updated. Submitting a patient's first name, last name, date of birth, or gender as a field to be updated will be considered a bad request.","parameters":[{"type":"string","name":"patient_token","in":"path","required":true},{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model219"}}],"tags":["v1"],"responses":{"202":{"schema":{"$ref":"#/definitions/Model221"},"description":"Accepted"},"400":{"schema":{"$ref":"#/definitions/Model224"},"description":"Bad Request"},"404":{"schema":{"$ref":"#/definitions/Model24"},"description":"Not Found"}}}},"/v1/prescriber/{prescriber_token}":{"get":{"summary":"Get Prescriber","operationId":"getV1PrescriberPrescriber_token","description":"Get the prescriber information at any time using the `prescriber_token` that was provided in the Create Prescriber response","parameters":[{"type":"string","description":"Prescriber token","name":"prescriber_token","in":"path","required":true}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model60"},"description":"OK"},"404":{"schema":{"$ref":"#/definitions/Model61"},"description":"Not Found"}}}},"/v1/prescription/{token}":{"get":{"summary":"Get Prescription by token","operationId":"getV1PrescriptionToken","description":"Once a specific prescription is in the Truepill ecosystem -- either via eRx, Direct Transfer or Transfer -- the prescription information can be retrieved at any time through an API request.<br/><br/>This endpoint requires a prescription_token. You will receive a prescription_token through one of the following scenarios: <br/><br/>A Notify-Rx callback which is sent when a prescription is received by the pharmacy through SureScripts<br/><br/>A Direct Transfer callback which is sent when a Direct Transfer has been successfully processed<br/><br/>A Transfer callback which is sent when a Transfer has been successfully processed","parameters":[{"type":"string","name":"token","in":"path","required":true}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model62"},"description":"OK"},"404":{"schema":{"$ref":"#/definitions/Model63"},"description":"Not Found"}}}},"/v1/same_day_delivery/{id}":{"get":{"summary":"Get a specific same day delivery order by ID","operationId":"getV1Same_day_deliveryId","description":"Get a specific same day delivery order by ID","tags":["v1"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/v1/transfer_request/{token}":{"get":{"summary":"Get a Transfer by token","operationId":"getV1Transfer_requestToken","description":"Once a transfer has been created in the Truepill ecosystem, you can access the transfer information at any time using the `transfer_token` that was provided on the Create Transfer response.<br/><br/>If the `transfer_token` does not map to a transfer record, a `404 Not Found` will be returned.<br/><br/>Querying for transfer information that does not belong to you will return an error response.","parameters":[{"type":"string","description":"Transfer token","name":"token","in":"path","required":true}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model68"},"description":"OK"},"404":{"schema":{"$ref":"#/definitions/Model69"},"description":"Not Found"}}}},"/v1/webhook_events/{webhook_type}":{"get":{"summary":"List NotifyRx Webhook Events","operationId":"getV1Webhook_eventsWebhook_type","description":"Webhook Events can be retrieved via API to be reprocessed.<br/><br/>This endpoint returns a list of webhook events and allows for the use of query parameters to scope the results of the request. A request `payload` represents the request's timestamp, type, and details. A request's `delivery_data` represents the request's status information.<br/><br/>Supported `webhook_types` are `notify_rx`","parameters":[{"type":"string","enum":["notify_rx","FILE","CONSULT","CONSULT_TASK","CONTACT","TRANSFER_OUT","VISIT"],"name":"webhook_type","in":"path","required":true},{"type":"string","x-alternatives":[{"type":"string"},{"type":"array","items":{"type":"string"},"collectionFormat":"multi","name":"timestamp"}],"name":"timestamp","in":"query"},{"type":"number","maximum":100,"name":"limit","in":"query"},{"type":"string","name":"next","in":"query"},{"type":"string","name":"status","in":"query"},{"type":"string","name":"request_id","in":"query"}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model74"},"description":"OK"}}}},"/v2/media/{id}":{"get":{"summary":"Generate signing-url for read file from google storage","operationId":"getV2MediaId","parameters":[{"type":"string","description":"Should be a uuid","pattern":"^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$","name":"id","in":"path","required":true}],"tags":["v2"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model75"},"description":"OK"},"401":{"schema":{"$ref":"#/definitions/Model55"},"description":"Unauthorized"},"404":{"schema":{"$ref":"#/definitions/Model56"},"description":"Not Found"},"500":{"schema":{"$ref":"#/definitions/Model9"},"description":"Internal Server Error"}}}},"/api/v1/auto-refill/{prescription_token}":{"get":{"summary":"GET auto refill subscription","operationId":"getApiV1AutorefillPrescription_token","parameters":[{"type":"string","name":"prescription_token","in":"path","required":true}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model43"},"description":"ok"},"400":{"schema":{"$ref":"#/definitions/Model18"},"description":"Bad Request"},"500":{"schema":{"$ref":"#/definitions/Model19"},"description":"Internal Server Error"}}},"post":{"summary":"Create auto refill subscription for prescription","operationId":"postApiV1AutorefillPrescription_token","parameters":[{"type":"string","name":"prescription_token","in":"path","required":true}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model209"},"description":"ok"},"400":{"schema":{"$ref":"#/definitions/Model18"},"description":"Bad Request"},"500":{"schema":{"$ref":"#/definitions/Model19"},"description":"Internal Server Error"}}},"delete":{"summary":"Cancel an auto-refill subscription","operationId":"deleteApiV1AutorefillPrescription_token","parameters":[{"type":"string","name":"prescription_token","in":"path","required":true}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model242"},"description":"ok"},"400":{"schema":{"$ref":"#/definitions/Model18"},"description":"Bad Request"},"500":{"schema":{"$ref":"#/definitions/Model19"},"description":"Internal Server Error"}}}},"/api/v1/copay_request/{request_id}":{"get":{"summary":"Get Copay Request by request_id","operationId":"getApiV1Copay_requestRequest_id","description":"Get information around an existing Copay Request","parameters":[{"type":"string","description":"Request id","name":"request_id","in":"path","required":true}],"tags":["api"],"responses":{"202":{"schema":{"$ref":"#/definitions/Model45"},"description":"Accepted"},"404":{"schema":{"$ref":"#/definitions/Model46"},"description":"Not Found"}}}},"/api/v1/direct_transfer/{direct_transfer_token}":{"get":{"summary":"Get Direct Transfer by token","operationId":"getApiV1Direct_transferDirect_transfer_token","parameters":[{"type":"string","name":"direct_transfer_token","in":"path","required":true}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model47"},"description":"OK"},"403":{"schema":{"$ref":"#/definitions/Model48"},"description":"Forbidden"},"404":{"schema":{"$ref":"#/definitions/Model49"},"description":"Not Found"}}}},"/api/v1/external_locations/{id}":{"get":{"summary":"Get a specific external location by id","operationId":"getApiV1External_locationsId","tags":["api"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/api/v1/external_transfers/{id}":{"get":{"summary":"Get external transfer details","operationId":"getApiV1External_transfersId","description":"Get the details of an external transfer<br/><br/>This endpoints needs the external transfer id to retrieve the right data","tags":["api"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/api/v1/fill_request/{url_token}":{"get":{"summary":"Get Fill Request by token","operationId":"getApiV1Fill_requestUrl_token","description":"Once a Fill Request has been submitted, you can look up the request payload that was submitted at any time for reference with an API request<br/><br/>This endpoint requires a `request_token`. You will receive a `request_token` upon a successful Fill Request API submission response in the `request_id` field.","parameters":[{"type":"string","description":"URL token","name":"url_token","in":"path","required":true}],"tags":["api"],"responses":{"202":{"schema":{"$ref":"#/definitions/Model21"},"description":"Accepted"},"403":{"schema":{"$ref":"#/definitions/Model50"},"description":"Forbidden"},"404":{"schema":{"$ref":"#/definitions/Model51"},"description":"Not Found"}}}},"/api/v1/insurance/{insurance_token}":{"get":{"summary":"Get Insurance details","operationId":"getApiV1InsuranceInsurance_token","parameters":[{"type":"string","description":"Insurance token","name":"insurance_token","in":"path","required":true}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model52"},"description":"OK"},"404":{"schema":{"$ref":"#/definitions/Model53"},"description":"Not Found"}}}},"/api/v1/media/{id}":{"get":{"summary":"Get media by id","operationId":"getApiV1MediaId","parameters":[{"type":"string","description":"Should be a uuid","pattern":"^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$","name":"id","in":"path","required":true}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model54"},"description":"OK"},"401":{"schema":{"$ref":"#/definitions/Model55"},"description":"Unauthorized"},"404":{"schema":{"$ref":"#/definitions/Model56"},"description":"Not Found"},"500":{"schema":{"$ref":"#/definitions/Model9"},"description":"Internal Server Error"}}}},"/api/v1/open-api/api.yml":{"get":{"summary":"Get current OpenAPI spec for Truepill APIs","operationId":"getApiV1OpenapiApiyml","tags":["api"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/api/v1/order/{token}":{"get":{"summary":"Get Order","operationId":"getApiV1OrderToken","description":"Get the details of an order<br/><br/>This endpoints needs the url_token to retrieve the right data","tags":["api"],"responses":{"400":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_refs":{"refs":[]},"_flags":{"unknown":true},"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"statusCode","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"error","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}},"401":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_refs":{"refs":[]},"_flags":{"unknown":true},"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"error","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"message","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}},"404":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_refs":{"refs":[]},"_flags":{"unknown":true},"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"statusCode","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"error","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"message","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}}},"/api/v1/patient/{patient_token}":{"get":{"summary":"Get Patient","operationId":"getApiV1PatientPatient_token","description":"Once a patient has been created in the Truepill ecosystem, you can access the patient information at any time using the `patient_token` that was provided on the Create Patient response.<br/><br/>If the `patient_token` does not map to a patient record, a `404 Not Found` will be returned.<br/><br/>Querying for patient information that does not belong to you will return an error response.<br/><br/>Patient SSN and `id_image` information is not viewable through this endpoint","parameters":[{"type":"string","name":"patient_token","in":"path","required":true}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model58"},"description":"OK"},"404":{"schema":{"$ref":"#/definitions/Model24"},"description":"Not Found"}}},"post":{"summary":"Update Patient","operationId":"postApiV1PatientPatient_token","description":"This endpoint updates a patient record in the Truepill ecosystem.<br/><br/>Upon a successful request, the endpoint returns the `patient_token` of the patient updated, the timestamp, the status, and a message.<br/><br/>Only non-required fields can be updated. Submitting a patient's first name, last name, date of birth, or gender as a field to be updated will be considered a bad request.","parameters":[{"type":"string","name":"patient_token","in":"path","required":true},{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model219"}}],"tags":["api"],"responses":{"202":{"schema":{"$ref":"#/definitions/Model221"},"description":"Accepted"},"400":{"schema":{"$ref":"#/definitions/Model224"},"description":"Bad Request"},"404":{"schema":{"$ref":"#/definitions/Model24"},"description":"Not Found"}}}},"/api/v1/prescriber/{prescriber_token}":{"get":{"summary":"Get Prescriber","operationId":"getApiV1PrescriberPrescriber_token","description":"Get the prescriber information at any time using the `prescriber_token` that was provided in the Create Prescriber response","parameters":[{"type":"string","description":"Prescriber token","name":"prescriber_token","in":"path","required":true}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model60"},"description":"OK"},"404":{"schema":{"$ref":"#/definitions/Model61"},"description":"Not Found"}}}},"/api/v1/prescription/{token}":{"get":{"summary":"Get Prescription by token","operationId":"getApiV1PrescriptionToken","description":"Once a specific prescription is in the Truepill ecosystem -- either via eRx, Direct Transfer or Transfer -- the prescription information can be retrieved at any time through an API request.<br/><br/>This endpoint requires a prescription_token. You will receive a prescription_token through one of the following scenarios: <br/><br/>A Notify-Rx callback which is sent when a prescription is received by the pharmacy through SureScripts<br/><br/>A Direct Transfer callback which is sent when a Direct Transfer has been successfully processed<br/><br/>A Transfer callback which is sent when a Transfer has been successfully processed","parameters":[{"type":"string","name":"token","in":"path","required":true}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model62"},"description":"OK"},"404":{"schema":{"$ref":"#/definitions/Model63"},"description":"Not Found"}}}},"/api/v1/same_day_delivery/{id}":{"get":{"summary":"Get a specific same day delivery order by ID","operationId":"getApiV1Same_day_deliveryId","description":"Get a specific same day delivery order by ID","tags":["api"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/api/v1/transfer_request/{token}":{"get":{"summary":"Get a Transfer by token","operationId":"getApiV1Transfer_requestToken","description":"Once a transfer has been created in the Truepill ecosystem, you can access the transfer information at any time using the `transfer_token` that was provided on the Create Transfer response.<br/><br/>If the `transfer_token` does not map to a transfer record, a `404 Not Found` will be returned.<br/><br/>Querying for transfer information that does not belong to you will return an error response.","parameters":[{"type":"string","description":"Transfer token","name":"token","in":"path","required":true}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model68"},"description":"OK"},"404":{"schema":{"$ref":"#/definitions/Model69"},"description":"Not Found"}}}},"/api/v1/webhook_events/{webhook_type}":{"get":{"summary":"List NotifyRx Webhook Events","operationId":"getApiV1Webhook_eventsWebhook_type","description":"Webhook Events can be retrieved via API to be reprocessed.<br/><br/>This endpoint returns a list of webhook events and allows for the use of query parameters to scope the results of the request. A request `payload` represents the request's timestamp, type, and details. A request's `delivery_data` represents the request's status information.<br/><br/>Supported `webhook_types` are `notify_rx`","parameters":[{"type":"string","enum":["notify_rx","FILE","CONSULT","CONSULT_TASK","CONTACT","TRANSFER_OUT","VISIT"],"name":"webhook_type","in":"path","required":true},{"type":"string","x-alternatives":[{"type":"string"},{"type":"array","items":{"type":"string"},"collectionFormat":"multi","name":"timestamp"}],"name":"timestamp","in":"query"},{"type":"number","maximum":100,"name":"limit","in":"query"},{"type":"string","name":"next","in":"query"},{"type":"string","name":"status","in":"query"},{"type":"string","name":"request_id","in":"query"}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model74"},"description":"OK"}}}},"/api/v2/media/{id}":{"get":{"summary":"Generate signing-url for read file from google storage","operationId":"getApiV2MediaId","parameters":[{"type":"string","description":"Should be a uuid","pattern":"^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$","name":"id","in":"path","required":true}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model75"},"description":"OK"},"401":{"schema":{"$ref":"#/definitions/Model55"},"description":"Unauthorized"},"404":{"schema":{"$ref":"#/definitions/Model56"},"description":"Not Found"},"500":{"schema":{"$ref":"#/definitions/Model9"},"description":"Internal Server Error"}}}},"/consults/v0/consult/{consult_id}":{"get":{"summary":"Get Consult","operationId":"getConsultsV0ConsultConsult_id","description":"Get a consult by id","parameters":[{"type":"string","x-constraint":{"length":24},"x-format":{"hex":{"byteAligned":false,"prefix":false}},"name":"consult_id","in":"path","required":true}],"tags":["consults"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model87"},"description":"OK"},"400":{"schema":{"$ref":"#/definitions/Model90"},"description":"Bad Request"},"401":{"schema":{"$ref":"#/definitions/Model8"},"description":"Unauthorized"},"404":{"schema":{"$ref":"#/definitions/Model91"},"description":"Not Found"},"500":{"schema":{"$ref":"#/definitions/Model9"},"description":"Internal Server Error"}}},"delete":{"summary":"Delete Consult","operationId":"deleteConsultsV0ConsultConsult_id","description":"Delete a consult by id","parameters":[{"type":"string","x-constraint":{"length":24},"x-format":{"hex":{"byteAligned":false,"prefix":false}},"name":"consult_id","in":"path","required":true}],"tags":["consults"],"responses":{"200":{"description":"OK","schema":{"type":"string"}},"400":{"schema":{"$ref":"#/definitions/Model245"},"description":"Bad Request"},"401":{"schema":{"$ref":"#/definitions/Model8"},"description":"Unauthorized"},"404":{"schema":{"$ref":"#/definitions/Model246"},"description":"Not Found"},"500":{"schema":{"$ref":"#/definitions/Model9"},"description":"Internal Server Error"}}}},"/diagnostics/v0/orders/{order_id}":{"get":{"summary":"Get Order By Id","operationId":"getDiagnosticsV0OrdersOrder_id","description":"Get order","parameters":[{"type":"string","description":"Order ID","x-format":{"guid":true},"name":"order_id","in":"path","required":true}],"tags":["diagnostics"],"responses":{"200":{"schema":{"$ref":"#/definitions/Order"},"description":"The given order"},"400":{"description":"There is an issue with your request. Inspection of the response body will yield more details"},"401":{"description":"Authorization missing or invalid"},"500":{"description":"An unexpected, likely ephemeral scenario occurred. The request will have to be retried later. We recommend reaching out to Truepill if this is a persistent issue."}}}},"/v1/auto-refill/patient/{patient_token}":{"get":{"summary":"Get a list of all prescriptions currently subscribed to auto-refill for a given patient","operationId":"getV1AutorefillPatientPatient_token","parameters":[{"type":"string","name":"patient_token","in":"path","required":true}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model95"},"description":"ok"},"400":{"schema":{"$ref":"#/definitions/Model18"},"description":"Bad Request"},"500":{"schema":{"$ref":"#/definitions/Model19"},"description":"Internal Server Error"}}}},"/v1/direct_transfer/{direct_transfer_token}/webhook_events":{"get":{"summary":"Get Direct Transfer webhook events by token","operationId":"getV1Direct_transferDirect_transfer_tokenWebhook_events","description":"You will receive a Notify Rx Webhook Event for each prescription that is transferred to Truepill.<br/><br/>After a Direct Transfer Request has been successfully completed, you will receive a Notify Rx Webhook Event for the prescription transferred to Truepill, along with a Direct Transfer webhook event. This will contain the `prescription_token` to utilize the prescription within Truepill.<br/><br/>If a Direct Transfer is unable to be successfully processed, only an error Direct Transfer webhook event will be sent.<br/><br/>Direct Transfer Webhook Events are sent with text `DIRECT_TRANSFER` in the `callback_type` field and, like with other webhook events, the `status` field indicating whether or not it was successful.<br/><br/>In an error webhook event for a Direct Transfer, the `prescription_token` will not be provided as it was unable to be added into the Truepill system.","parameters":[{"type":"string","name":"direct_transfer_token","in":"path","required":true}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model100"},"description":"OK"},"403":{"schema":{"$ref":"#/definitions/Model48"},"description":"Forbidden"},"404":{"schema":{"$ref":"#/definitions/Model49"},"description":"Not Found"}}}},"/v1/fill_request/{url_token}/webhook_events":{"get":{"summary":"Get list of webhook events","operationId":"getV1Fill_requestUrl_tokenWebhook_events","description":"Return a list of webhook events and allows for the use of query parameters to scope the results of the request<br/><br/>A request payload represents the request's timestamp, type, and details.<br/><br/>A request's delivery_data represents the request's status information.","parameters":[{"type":"string","name":"url_token","in":"path","required":true},{"type":"string","name":"timestamp","in":"query"},{"type":"number","maximum":100,"name":"limit","in":"query"},{"type":"string","name":"next","in":"query"},{"type":"string","name":"status","in":"query"}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model103"},"description":"OK"},"403":{"schema":{"$ref":"#/definitions/Model50"},"description":"Forbidden"},"404":{"schema":{"$ref":"#/definitions/Model51"},"description":"Not Found"}}}},"/v1/patient/{patient_token}/prescriptions":{"get":{"summary":"List Patient Prescriptions","operationId":"getV1PatientPatient_tokenPrescriptions","description":"Retrieve the list of Patient's prescriptions which includes the prescription token, medication name, medication sig, prescriber, date written, refills remaining, current prescription status and the fillable status.<br/><br/>Patient's prescriptions must already exist in the Truepill ecosystem in order to be retrieved.","parameters":[{"type":"string","name":"patient_token","in":"path","required":true}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model104"},"description":"OK"},"404":{"schema":{"$ref":"#/definitions/Model24"},"description":"Not Found"}}}},"/v1/patient/{patient_token}/patient_survey":{"get":{"summary":"Get Patient Survey","operationId":"getV1PatientPatient_tokenPatient_survey","description":"This endpoint returns the most recent `patient_survey` that was submitted to Truepill","parameters":[{"type":"string","name":"patient_token","in":"path","required":true}],"tags":["v1"],"responses":{"202":{"schema":{"$ref":"#/definitions/Model105"},"description":"Accepted"},"404":{"schema":{"$ref":"#/definitions/Model24"},"description":"Not Found"}}}},"/v1/prescription/{prescription_token}/escript":{"get":{"summary":"Get Prescription escript by token","operationId":"getV1PrescriptionPrescription_tokenEscript","description":"Get escript data for a particular prescription","parameters":[{"type":"string","enum":["text/xml"],"name":"content-type","in":"header","required":true},{"type":"string","name":"prescription_token","in":"path","required":true}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model106"},"description":"OK"},"404":{"schema":{"$ref":"#/definitions/Model63"},"description":"Not Found"}}}},"/api/v1/auto-refill/patient/{patient_token}":{"get":{"summary":"Get a list of all prescriptions currently subscribed to auto-refill for a given patient","operationId":"getApiV1AutorefillPatientPatient_token","parameters":[{"type":"string","name":"patient_token","in":"path","required":true}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model95"},"description":"ok"},"400":{"schema":{"$ref":"#/definitions/Model18"},"description":"Bad Request"},"500":{"schema":{"$ref":"#/definitions/Model19"},"description":"Internal Server Error"}}}},"/api/v1/direct_transfer/{direct_transfer_token}/webhook_events":{"get":{"summary":"Get Direct Transfer webhook events by token","operationId":"getApiV1Direct_transferDirect_transfer_tokenWebhook_events","description":"You will receive a Notify Rx Webhook Event for each prescription that is transferred to Truepill.<br/><br/>After a Direct Transfer Request has been successfully completed, you will receive a Notify Rx Webhook Event for the prescription transferred to Truepill, along with a Direct Transfer webhook event. This will contain the `prescription_token` to utilize the prescription within Truepill.<br/><br/>If a Direct Transfer is unable to be successfully processed, only an error Direct Transfer webhook event will be sent.<br/><br/>Direct Transfer Webhook Events are sent with text `DIRECT_TRANSFER` in the `callback_type` field and, like with other webhook events, the `status` field indicating whether or not it was successful.<br/><br/>In an error webhook event for a Direct Transfer, the `prescription_token` will not be provided as it was unable to be added into the Truepill system.","parameters":[{"type":"string","name":"direct_transfer_token","in":"path","required":true}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model100"},"description":"OK"},"403":{"schema":{"$ref":"#/definitions/Model48"},"description":"Forbidden"},"404":{"schema":{"$ref":"#/definitions/Model49"},"description":"Not Found"}}}},"/api/v1/fill_request/{url_token}/webhook_events":{"get":{"summary":"Get list of webhook events","operationId":"getApiV1Fill_requestUrl_tokenWebhook_events","description":"Return a list of webhook events and allows for the use of query parameters to scope the results of the request<br/><br/>A request payload represents the request's timestamp, type, and details.<br/><br/>A request's delivery_data represents the request's status information.","parameters":[{"type":"string","name":"url_token","in":"path","required":true},{"type":"string","name":"timestamp","in":"query"},{"type":"number","maximum":100,"name":"limit","in":"query"},{"type":"string","name":"next","in":"query"},{"type":"string","name":"status","in":"query"}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model103"},"description":"OK"},"403":{"schema":{"$ref":"#/definitions/Model50"},"description":"Forbidden"},"404":{"schema":{"$ref":"#/definitions/Model51"},"description":"Not Found"}}}},"/api/v1/patient/{patient_token}/patient_survey":{"get":{"summary":"Get Patient Survey","operationId":"getApiV1PatientPatient_tokenPatient_survey","description":"This endpoint returns the most recent `patient_survey` that was submitted to Truepill","parameters":[{"type":"string","name":"patient_token","in":"path","required":true}],"tags":["api"],"responses":{"202":{"schema":{"$ref":"#/definitions/Model105"},"description":"Accepted"},"404":{"schema":{"$ref":"#/definitions/Model24"},"description":"Not Found"}}}},"/api/v1/patient/{patient_token}/prescriptions":{"get":{"summary":"List Patient Prescriptions","operationId":"getApiV1PatientPatient_tokenPrescriptions","description":"Retrieve the list of Patient's prescriptions which includes the prescription token, medication name, medication sig, prescriber, date written, refills remaining, current prescription status and the fillable status.<br/><br/>Patient's prescriptions must already exist in the Truepill ecosystem in order to be retrieved.","parameters":[{"type":"string","name":"patient_token","in":"path","required":true}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model104"},"description":"OK"},"404":{"schema":{"$ref":"#/definitions/Model24"},"description":"Not Found"}}}},"/api/v1/prescription/{prescription_token}/escript":{"get":{"summary":"Get Prescription escript by token","operationId":"getApiV1PrescriptionPrescription_tokenEscript","description":"Get escript data for a particular prescription","parameters":[{"type":"string","enum":["text/xml"],"name":"content-type","in":"header","required":true},{"type":"string","name":"prescription_token","in":"path","required":true}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model106"},"description":"OK"},"404":{"schema":{"$ref":"#/definitions/Model63"},"description":"Not Found"}}}},"/diagnostics/v0/orders/{order_id}/rejection":{"get":{"summary":"Get Orders Rejection","operationId":"getDiagnosticsV0OrdersOrder_idRejection","description":"Get test rejections for order","parameters":[{"type":"string","description":"Diagnostics-specific order UUID (not used by other APIs)","x-format":{"guid":true},"name":"order_id","in":"path","required":true}],"tags":["diagnostics"],"responses":{"200":{"schema":{"$ref":"#/definitions/GetOrderRejectionResponse"},"description":"The rejections"},"400":{"description":"There is an issue with your request. Inspection of the response body will yield more details"},"401":{"description":"Authorization missing or invalid"},"500":{"description":"An unexpected, likely ephemeral scenario occurred. The request will have to be retried later. We recommend reaching out to Truepill if this is a persistent issue."}}}},"/diagnostics/v0/orders/{order_id}/results":{"get":{"summary":"Get Order Results","operationId":"getDiagnosticsV0OrdersOrder_idResults","description":"Get test results for order","parameters":[{"type":"string","description":"Diagnostics-specific order UUID (not used by other APIs)","x-format":{"guid":true},"name":"order_id","in":"path","required":true}],"tags":["diagnostics"],"responses":{"200":{"schema":{"$ref":"#/definitions/OrderResultResponse"},"description":"The set of all tests"},"400":{"description":"There is an issue with your request. Inspection of the response body will yield more details"},"401":{"description":"Authorization missing or invalid"},"500":{"description":"An unexpected, likely ephemeral scenario occurred. The request will have to be retried later. We recommend reaching out to Truepill if this is a persistent issue."}}}},"/diagnostics/v2/orders/{order_id}/results":{"get":{"summary":"Get Order Results","operationId":"getDiagnosticsV2OrdersOrder_idResults","description":"Get test results for order","parameters":[{"type":"string","description":"Diagnostics-specific order UUID (not used by other APIs)","x-format":{"guid":true},"name":"order_id","in":"path","required":true}],"tags":["diagnostics"],"responses":{"200":{"schema":{"$ref":"#/definitions/OrderResultResponseV2"},"description":"The set of all tests"},"400":{"description":"There is an issue with your request. Inspection of the response body will yield more details"},"401":{"description":"Authorization missing or invalid"},"500":{"description":"An unexpected, likely ephemeral scenario occurred. The request will have to be retried later. We recommend reaching out to Truepill if this is a persistent issue."}}}},"/v1/media/{id}/signed-url/read":{"get":{"summary":"Generate signing-url for read file from google storage","operationId":"getV1MediaIdSignedurlRead","parameters":[{"type":"string","description":"Should be a uuid","pattern":"^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$","name":"id","in":"path","required":true}],"tags":["v1"],"responses":{"200":{"schema":{"type":"string","example":"https://storage.googleapis.com/1512a193-065b-4360-bd1f-48b8a260f140?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=upload-scanner%40serviceaccount.com%2F20211126%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20211126T130011Z&X-Goog-Expires=900&X-Goog-SignedHeaders=content-type%3Bhost&X-Goog-Signature=123","pattern":"^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$"},"description":"OK"},"401":{"schema":{"$ref":"#/definitions/Model55"},"description":"Unauthorized"},"403":{"schema":{"$ref":"#/definitions/Model108"},"description":"Forbidden"},"404":{"schema":{"$ref":"#/definitions/Model56"},"description":"Not Found"},"422":{"schema":{"$ref":"#/definitions/Model109"},"description":"Internal Server Error"},"500":{"schema":{"$ref":"#/definitions/Model9"},"description":"Internal Server Error"}}}},"/v1/media/{id}/signed-url/write":{"get":{"summary":"Generate signing-url for write file in to google storage","operationId":"getV1MediaIdSignedurlWrite","parameters":[{"type":"string","description":"Should be a uuid","pattern":"^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$","name":"id","in":"path","required":true}],"tags":["v1"],"responses":{"200":{"schema":{"type":"string","example":"https://storage.googleapis.com/1512a193-065b-4360-bd1f-48b8a260f140?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=upload-scanner%40serviceaccount.com%2F20211126%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20211126T130011Z&X-Goog-Expires=900&X-Goog-SignedHeaders=content-type%3Bhost&X-Goog-Signature=123","pattern":"^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$"},"description":"OK"},"401":{"schema":{"$ref":"#/definitions/Model55"},"description":"Unauthorized"},"403":{"schema":{"$ref":"#/definitions/Model108"},"description":"Forbidden"},"404":{"schema":{"$ref":"#/definitions/Model56"},"description":"Not Found"},"422":{"schema":{"$ref":"#/definitions/Model109"},"description":"Internal Server Error"},"500":{"schema":{"$ref":"#/definitions/Model9"},"description":"Internal Server Error"}}}},"/api/v1/media/{id}/signed-url/write":{"get":{"summary":"Generate signing-url for write file in to google storage","operationId":"getApiV1MediaIdSignedurlWrite","parameters":[{"type":"string","description":"Should be a uuid","pattern":"^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$","name":"id","in":"path","required":true}],"tags":["api"],"responses":{"200":{"schema":{"type":"string","example":"https://storage.googleapis.com/1512a193-065b-4360-bd1f-48b8a260f140?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=upload-scanner%40serviceaccount.com%2F20211126%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20211126T130011Z&X-Goog-Expires=900&X-Goog-SignedHeaders=content-type%3Bhost&X-Goog-Signature=123","pattern":"^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$"},"description":"OK"},"401":{"schema":{"$ref":"#/definitions/Model55"},"description":"Unauthorized"},"403":{"schema":{"$ref":"#/definitions/Model108"},"description":"Forbidden"},"404":{"schema":{"$ref":"#/definitions/Model56"},"description":"Not Found"},"422":{"schema":{"$ref":"#/definitions/Model109"},"description":"Internal Server Error"},"500":{"schema":{"$ref":"#/definitions/Model9"},"description":"Internal Server Error"}}}},"/api/v1/media/{id}/signed-url/read":{"get":{"summary":"Generate signing-url for read file from google storage","operationId":"getApiV1MediaIdSignedurlRead","parameters":[{"type":"string","description":"Should be a uuid","pattern":"^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$","name":"id","in":"path","required":true}],"tags":["api"],"responses":{"200":{"schema":{"type":"string","example":"https://storage.googleapis.com/1512a193-065b-4360-bd1f-48b8a260f140?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=upload-scanner%40serviceaccount.com%2F20211126%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20211126T130011Z&X-Goog-Expires=900&X-Goog-SignedHeaders=content-type%3Bhost&X-Goog-Signature=123","pattern":"^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$"},"description":"OK"},"401":{"schema":{"$ref":"#/definitions/Model55"},"description":"Unauthorized"},"403":{"schema":{"$ref":"#/definitions/Model108"},"description":"Forbidden"},"404":{"schema":{"$ref":"#/definitions/Model56"},"description":"Not Found"},"422":{"schema":{"$ref":"#/definitions/Model109"},"description":"Internal Server Error"},"500":{"schema":{"$ref":"#/definitions/Model9"},"description":"Internal Server Error"}}}},"/diagnostics/v0/kits/{kit_id}/validation/kit_serial":{"get":{"summary":"Validate Kit Serial","operationId":"getDiagnosticsV0KitsKit_idValidationKit_serial","description":"Validate that the kit serial is valid for use, according to checks in the diagnostic-api.","parameters":[{"type":"string","description":"Kit ID","x-format":{"guid":true},"name":"kit_id","in":"path","required":true},{"type":"string","description":"Kit Serial","name":"test","in":"query","required":true}],"tags":["diagnostics"],"responses":{"200":{"schema":{"type":"boolean"},"description":"The kit serial is valid"},"400":{"description":"There is an issue with your request. Inspection of the response body will yield more details"},"401":{"description":"Authorization missing or invalid"},"404":{"description":"Kit not found"},"500":{"description":"An unexpected, likely ephemeral scenario occurred. The request will have to be retried later. We recommend reaching out to Truepill if this is a persistent issue."}}}},"/v1/prescription/{prescription_token}/fill/{fill_number}/claims":{"get":{"summary":"Get Claim information","operationId":"getV1PrescriptionPrescription_tokenFillFill_numberClaims","description":"Get claim information associated with a prescription and that particular fill<br/><br/>Given a prescription token and a fill number, the claim information associated with a prescription and that particular fill can be retrieved via API<br/><br/>All claim information correlating to a specific fill is made available here, including claim rejections and reversals. Claim information is displayed in array format, with each object representing a claim record<br/><br/>If a claim is rejected, NCPDP codes are also displayed for the particular claim rejection within the `claim_reject_codes` field<br/><br/>Claim records are displayed in chronological order. If no claim information is available for a provided `prescription_token` and `fill_number`, an empty array is returned.","parameters":[{"type":"string","description":"Prescription token associated with prescription","name":"prescription_token","in":"path","required":true},{"type":"number","description":"Fill number of particular fill","name":"fill_number","in":"path","required":true}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model111"},"description":"OK"},"404":{"schema":{"$ref":"#/definitions/Model112"},"description":"Not Found"}}}},"/api/v1/prescription/{prescription_token}/fill/{fill_number}/claims":{"get":{"summary":"Get Claim information","operationId":"getApiV1PrescriptionPrescription_tokenFillFill_numberClaims","description":"Get claim information associated with a prescription and that particular fill<br/><br/>Given a prescription token and a fill number, the claim information associated with a prescription and that particular fill can be retrieved via API<br/><br/>All claim information correlating to a specific fill is made available here, including claim rejections and reversals. Claim information is displayed in array format, with each object representing a claim record<br/><br/>If a claim is rejected, NCPDP codes are also displayed for the particular claim rejection within the `claim_reject_codes` field<br/><br/>Claim records are displayed in chronological order. If no claim information is available for a provided `prescription_token` and `fill_number`, an empty array is returned.","parameters":[{"type":"string","description":"Prescription token associated with prescription","name":"prescription_token","in":"path","required":true},{"type":"number","description":"Fill number of particular fill","name":"fill_number","in":"path","required":true}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model111"},"description":"OK"},"404":{"schema":{"$ref":"#/definitions/Model112"},"description":"Not Found"}}}},"/v1/cancel_request":{"post":{"summary":"Cancel Fill Request","operationId":"postV1Cancel_request","description":"Cancel a Fill Request whose `request_id` field matches the respective user provided text parameter","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model118"}}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model124"},"description":"OK"},"400":{"schema":{"$ref":"#/definitions/Model125"},"description":"Bad Request"},"403":{"schema":{"$ref":"#/definitions/Model126"},"description":"Forbidden"},"500":{"schema":{"$ref":"#/definitions/Model127"},"description":"Internal Server Error"}}}},"/v1/copay_request":{"post":{"summary":"Create Copay Request","operationId":"postV1Copay_request","description":"Generate a Copay Request to retrieve copay information on a patient's prescription(s). We can support multiple insurances on a copay request","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model130"}}],"tags":["v1"],"responses":{"202":{"schema":{"$ref":"#/definitions/Model133"},"description":"Accepted"},"404":{"schema":{"$ref":"#/definitions/Model134"},"description":"Not Found"}}}},"/v1/coverage_request":{"post":{"summary":"Create Coverage Request","operationId":"postV1Coverage_request","description":"Generate a Coverage Request for Truepill to investigate whether a patient has any valid plans or benefit details.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model135"}}],"tags":["v1"],"responses":{"202":{"schema":{"$ref":"#/definitions/Model137"},"description":"Accepted"},"404":{"schema":{"$ref":"#/definitions/Model134"},"description":"Not Found"}}}},"/v1/direct_transfer":{"post":{"summary":"Create Direct Transfer","operationId":"postV1Direct_transfer","description":"Create a direct pharmacy-to-pharmacy transfer of the prescription<br/><br/>A direct transfer is a pharmacy-to-pharmacy transfer of the prescription between your pharmacy and a Truepill pharmacy. This method works best for customers that operate their own pharmacies and are looking for a programmatic way to transfer a prescription.<br/><br/>And similar to a traditional transfer request, there are required fields related to the pharmacist transferring out the prescription, and the pharmacist transferring in the prescription.<br/><br/>This approach requires a digital copy of the original prescription.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/CreateDirectTransfer"}}],"tags":["v1"],"responses":{"202":{"schema":{"$ref":"#/definitions/Model141"},"description":"Accepted"},"400":{"schema":{"$ref":"#/definitions/Model142"},"description":"Bad Request"},"404":{"schema":{"$ref":"#/definitions/Model143"},"description":"Not Found"}}}},"/v1/fill_request":{"post":{"summary":"Create Fill Request","operationId":"postV1Fill_request","description":"Generate a Fill Request to fill/refill prescriptions and order Over-the-Counter (OTC) products<br/><br/>The prescriptions and products requested can be shipped to your patient with various shipping methods.<br/><br/>When making a Fill Request, the patient will be referenced with a `patient_token` being passed into the request body. If you do not have a `patient_token` for your Patient, one can be created using the Patient Create endpoint.<br/><br/>On a successful submission of the Fill Request, a fill request token will be provided that is used to reference the Fill Request (similar to `prescription_token` and `patient_token`).<br/><br/>This attribute is returned under the field `request_id`.<br/><br/>Many fields for the Fill Request may or may not be required depending on what values are passed in. Please reference the field information carefully.<br/><br/>The `metadata` field acts as a link between the Fill Request in the Truepill and the customer systems. It will be provided in all subsequent Fill Request notifications as the order is processed.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model147"}}],"tags":["v1"],"responses":{"202":{"schema":{"$ref":"#/definitions/Model149"},"description":"Accepted"},"400":{"schema":{"$ref":"#/definitions/Model152"},"description":"Bad Request"}}}},"/v1/fuzion_test":{"post":{"summary":"Fuzion test endpoint","operationId":"postV1Fuzion_test","tags":["v1"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/v1/insurance":{"post":{"summary":"Create Insurance","operationId":"postV1Insurance","description":"Associate an Insurance with the Patient<br/><br/>With a Patient created in the Truepill ecosystem, you can associate an Insurance to that patient with the Create Insurance API endpoint using the `patient_token`.<br/><br/>Upon a successful response, an `insurance_token` is provided that can be used along with the existing `patient_token` for Copay and Fill Requests.<br/><br/>Truepill supports multiple insurances should a patient provide more than one insurance.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model154"}}],"tags":["v1"],"responses":{"201":{"schema":{"$ref":"#/definitions/Model156"},"description":"Created"},"400":{"schema":{"$ref":"#/definitions/Model159"},"description":"Bad Request"},"404":{"schema":{"$ref":"#/definitions/Model134"},"description":"Not Found"}}}},"/v1/media":{"post":{"summary":"Create media record by file name provided","operationId":"postV1Media","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/CreateMedia"}}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model160"},"description":"OK"},"401":{"schema":{"$ref":"#/definitions/Model3"},"description":"Unauthorized"},"404":{"schema":{"$ref":"#/definitions/Model161"},"description":"Not Found"},"500":{"schema":{"$ref":"#/definitions/Model9"},"description":"Internal Server Error"}}}},"/v1/order":{"post":{"summary":"Create Order","operationId":"postV1Order","description":"Generate an order to fill/refill prescriptions and order Over-the-Counter (OTC) products, allowing multiple patient's prescriptions to be filled as part of the same order<br/><br/>The prescriptions and products requested can be shipped to your patient with various shipping methods.<br/><br/>When making an order, the patients will be referenced with a `patient_token` being passed into the request body, inside the items array. If you do not have a `patient_token` for your patients, they can be created using the Patient Create endpoint.<br/><br/>On a successful submission of the order, an order token will be provided that is used to reference the Order (similar to `prescription_token` and `patient_token`).<br/><br/>This attribute is returned under the field `order_id`.<br/><br/>Many fields for the Order may or may not be required depending on what values are passed in. Please reference the field information carefully.<br/><br/>The `metadata` field acts as a link between the Order in the Truepill and the customer systems. It will be provided in all subsequent Order notifications as the order is processed.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/icd_codes"}}],"tags":["v1"],"responses":{"202":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_refs":{"refs":[]},"_flags":{"description":"Response object for order creation","unknown":true},"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"request_id","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Unique identifier for the fill request backing this order"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"order_id","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Unique identifier for the order"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"timestamp","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[{"name":"integer","_resolve":[],"method":"integer"}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Timestamp of request processing"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"status","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Processing status of the order request"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"details","schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Additional processing details","unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"message","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Human-readable status message"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"metadata","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Echo of request metadata"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}},"400":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_refs":{"refs":[]},"_flags":{"unknown":true},"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"statusCode","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"error","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}},"401":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_refs":{"refs":[]},"_flags":{"unknown":true},"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"error","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"message","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}},"404":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_refs":{"refs":[]},"_flags":{"unknown":true},"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"statusCode","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"error","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"message","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}}},"/v1/prescriber":{"post":{"summary":"Create Prescriber","operationId":"postV1Prescriber","description":"Create a prescriber in the Truepill ecosystem that is assigned to you as a customer","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model163"}}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model164"},"description":"OK"},"400":{"schema":{"$ref":"#/definitions/Model167"},"description":"Bad Request"}}}},"/v1/prior_authorization":{"post":{"summary":"Create a Prior Authorization request","operationId":"postV1Prior_authorization","description":"A prior authorization can be created by making a Prior Authorization Request.<br/><br/>Truepill will provide a receipt confirmation of the request, and multiple subsequent webhook events throughout the lifecycle of your PA.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Prior%20Authorization%20Request%20Fields"}}],"tags":["v1"],"responses":{"202":{"schema":{"$ref":"#/definitions/Model169"},"description":"Accepted"},"400":{"schema":{"$ref":"#/definitions/Model170"},"description":"Bad Request"}}}},"/v1/update_request":{"post":{"summary":"Update Fill Request","operationId":"postV1Update_request","description":"Amend the fields of an existing Fill Request, such as for correcting an address or changing the shipping method to expedite your order.<br/><br/>When using this endpoint, all the Fill Request fields must be provided with their appropriate values even if they are not to be updated.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model182"}}],"tags":["v1"],"responses":{"202":{"schema":{"$ref":"#/definitions/Model184"},"description":"Accepted"},"400":{"schema":{"$ref":"#/definitions/Model187"},"description":"Bad Request"}}}},"/v2/direct_transfer":{"post":{"summary":"Create Direct Transfer v2","operationId":"postV2Direct_transfer","description":"Create a direct pharmacy-to-pharmacy transfer of the prescription<br/><br/>A direct transfer is a pharmacy-to-pharmacy transfer of the prescription between your pharmacy and a Truepill pharmacy. This method works best for customers that operate their own pharmacies and are looking for a programmatic way to transfer a prescription.<br/><br/>And similar to a traditional transfer request, there are required fields related to the pharmacist transferring out the prescription, and the pharmacist transferring in the prescription.<br/><br/>This approach requires a digital copy of the original prescription.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/icd_codes"}}],"tags":["v2"],"responses":{"200":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_refs":{"refs":[]},"_flags":{"description":"Accepted","label":"Post Response: Accepted","unknown":true},"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"request_id","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"timestamp","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"status","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"details","schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"direct_transfer_token","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescription_token","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescription","schema":{"type":"alternatives","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"match":"one"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"matches":[{"schema":{"type":"alternatives","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"match":"all"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"matches":[{"schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"prescribed_medication_name","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescribed medication name","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescribed_quantity","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescribed medication quantity","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescribed_medication_sig","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescribed recommendations for medicines","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescribed_written_date","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"pattern","args":{"regex":{},"options":{}},"errorCode":"string.pattern.base","_resolve":[],"method":"pattern"},{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Written date","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"expiration_date","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Expiration date"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"daw_code","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"NCPDP daw code","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"prescribed_ndc","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"National drug code","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescribed_days_supply","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Days supply","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"icd10_codes","schema":{"type":"array","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[{"name":"items","_resolve":[],"method":"items"}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"items":[{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}],"ordered":[],"_exclusions":[],"_inclusions":[{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}],"_requireds":[]},"$_super":{}}},{"key":"prescriber_notes","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Text note from prescriber"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescribed_number_of_refills","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescribed number of refills","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"prescribed_unit_of_measure","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescribed unit of measure for a medicaiton","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescribed_strength","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescribed medication strength","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescription_image_url","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Original prescription image"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}},{"schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"forwarding_notes","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Text note from forwarding pharmacy"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}]},"$_super":{}}},{"schema":{"type":"alternatives","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"match":"all"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"matches":[{"schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"prescribed_medication_name","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescribed medication name","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescribed_quantity","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescribed medication quantity","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescribed_medication_sig","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescribed recommendations for medicines","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescribed_written_date","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"pattern","args":{"regex":{},"options":{}},"errorCode":"string.pattern.base","_resolve":[],"method":"pattern"},{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Written date","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"expiration_date","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Expiration date"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"daw_code","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"NCPDP daw code","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"prescribed_ndc","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"National drug code","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescribed_days_supply","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Days supply","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"icd10_codes","schema":{"type":"array","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[{"name":"items","_resolve":[],"method":"items"}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"items":[{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}],"ordered":[],"_exclusions":[],"_inclusions":[{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}],"_requireds":[]},"$_super":{}}},{"key":"prescriber_notes","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Text note from prescriber"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescribed_number_of_refills","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescribed number of refills","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"prescribed_unit_of_measure","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescribed unit of measure for a medicaiton","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescribed_strength","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescribed medication strength","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescription_image_url","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Original prescription image"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}},{"schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"rx_number","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"quantity_dispensed","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Quantity of medication dispensed","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"quantity_transferred","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Quantity of medication transferred"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"fills_left","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Number of fills left","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"fills_transferred","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Number of fills transferred"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"last_fill_date","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"pattern","args":{"regex":{},"options":{}},"errorCode":"string.pattern.base","_resolve":[],"method":"pattern"},{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Last fill date","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"first_fill_date","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"pattern","args":{"regex":{},"options":{}},"errorCode":"string.pattern.base","_resolve":[],"method":"pattern"},{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"First fill date","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"transfer_notes","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Text note from transferring party"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}]},"$_super":{}}}]},"$_super":{}}},{"key":"patient_token","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"patient","schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"label":"Patient","unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"prefix","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Patient title","only":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"suffix","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Suffix which qualifies a person","only":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"first_name","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Patient first name","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"last_name","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Patient last name","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"gender","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Patient gender","only":true,"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"dob","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"pattern","args":{"regex":{},"options":{}},"errorCode":"string.pattern.base","_resolve":[],"method":"pattern"},{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Patient's date of birth","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"zip","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"pattern","args":{"regex":{},"options":{}},"errorCode":"string.pattern.base","_resolve":[],"method":"pattern"},{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Postal code where a the patient is located","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"species","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"default":"Human","description":"Patient species","only":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"guardian","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"address","schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"label":"Address","presence":"required","unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"name","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"company","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"street1","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Primary street where a person or company is located","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"street2","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Secondary street where the person or company is located"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"city","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"City where the preson or company is located","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"state","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"State where the person or company is located","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"zip","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"pattern","args":{"regex":{},"options":{}},"errorCode":"string.pattern.base","_resolve":[],"method":"pattern"},{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"country","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"default":"US","description":"Country where the person or company is located","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"phone","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"email","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"fax","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}},{"key":"prescriber","schema":{"type":"alternatives","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"match":"all"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"matches":[{"schema":{"type":"alternatives","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"match":"all"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"matches":[{"schema":{"type":"alternatives","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"matches":[{"schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"label":"NPI","unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"npi","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Provider NPI"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}},{"schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"label":"State licenses","unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"state_licenses","schema":{"type":"array","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[{"name":"items","_resolve":[],"method":"items"}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Array of non-NPI provider identifiers and associated state, e.g. state license and state","label":"State licenses"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"items":[{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"label":"State licenses","unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"license","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"state","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}],"ordered":[],"_exclusions":[],"_inclusions":[{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"label":"State licenses","unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"license","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"state","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}],"_requireds":[]},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}]},"$_super":{}}},{"schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"prescriber_type","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"first_name","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescriber's first name","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"last_name","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescriber's last name","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"dea","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}]},"$_super":{}}},{"schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"address","schema":{"type":"alternatives","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"match":"all","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"matches":[{"schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"label":"Address","unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"name","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"company","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"street1","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Primary street where a person or company is located","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"street2","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Secondary street where the person or company is located"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"city","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"City where the preson or company is located","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"state","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"State where the person or company is located","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"zip","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"pattern","args":{"regex":{},"options":{}},"errorCode":"string.pattern.base","_resolve":[],"method":"pattern"},{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"country","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"default":"US","description":"Country where the person or company is located","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"phone","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"email","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"fax","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}},{"schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"fax","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}]},"$_super":{}}},{"key":"supervising_physician","schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"first_name","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"last_name","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescriber_type","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"npi","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"dea","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}]},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}},"400":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_refs":{"refs":[]},"_flags":{"description":"Bad Request","label":"Post Response: Bad Request","unknown":true},"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"status_code","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"error","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"message","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}},"404":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_refs":{"refs":[]},"_flags":{"description":"Not Found","label":"Post Response: Not Found","unknown":true},"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"message","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}}},"/v2/media":{"post":{"summary":"Create media record by file name provided","operationId":"postV2Media","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/CreateMediaV2"}}],"tags":["v2"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model188"},"description":"OK"},"401":{"schema":{"$ref":"#/definitions/Model3"},"description":"Unauthorized"},"404":{"schema":{"$ref":"#/definitions/Model161"},"description":"Not Found"},"500":{"schema":{"$ref":"#/definitions/Model9"},"description":"Internal Server Error"}}}},"/api/v1/cancel_request":{"post":{"summary":"Cancel Fill Request","operationId":"postApiV1Cancel_request","description":"Cancel a Fill Request whose `request_id` field matches the respective user provided text parameter","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model118"}}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model124"},"description":"OK"},"400":{"schema":{"$ref":"#/definitions/Model125"},"description":"Bad Request"},"403":{"schema":{"$ref":"#/definitions/Model126"},"description":"Forbidden"},"500":{"schema":{"$ref":"#/definitions/Model127"},"description":"Internal Server Error"}}}},"/api/v1/copay_request":{"post":{"summary":"Create Copay Request","operationId":"postApiV1Copay_request","description":"Generate a Copay Request to retrieve copay information on a patient's prescription(s). We can support multiple insurances on a copay request","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model130"}}],"tags":["api"],"responses":{"202":{"schema":{"$ref":"#/definitions/Model133"},"description":"Accepted"},"404":{"schema":{"$ref":"#/definitions/Model134"},"description":"Not Found"}}}},"/api/v1/coverage_request":{"post":{"summary":"Create Coverage Request","operationId":"postApiV1Coverage_request","description":"Generate a Coverage Request for Truepill to investigate whether a patient has any valid plans or benefit details.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model135"}}],"tags":["api"],"responses":{"202":{"schema":{"$ref":"#/definitions/Model137"},"description":"Accepted"},"404":{"schema":{"$ref":"#/definitions/Model134"},"description":"Not Found"}}}},"/api/v1/direct_transfer":{"post":{"summary":"Create Direct Transfer","operationId":"postApiV1Direct_transfer","description":"Create a direct pharmacy-to-pharmacy transfer of the prescription<br/><br/>A direct transfer is a pharmacy-to-pharmacy transfer of the prescription between your pharmacy and a Truepill pharmacy. This method works best for customers that operate their own pharmacies and are looking for a programmatic way to transfer a prescription.<br/><br/>And similar to a traditional transfer request, there are required fields related to the pharmacist transferring out the prescription, and the pharmacist transferring in the prescription.<br/><br/>This approach requires a digital copy of the original prescription.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/CreateDirectTransfer"}}],"tags":["api"],"responses":{"202":{"schema":{"$ref":"#/definitions/Model141"},"description":"Accepted"},"400":{"schema":{"$ref":"#/definitions/Model142"},"description":"Bad Request"},"404":{"schema":{"$ref":"#/definitions/Model143"},"description":"Not Found"}}}},"/api/v1/fill_request":{"post":{"summary":"Create Fill Request","operationId":"postApiV1Fill_request","description":"Generate a Fill Request to fill/refill prescriptions and order Over-the-Counter (OTC) products<br/><br/>The prescriptions and products requested can be shipped to your patient with various shipping methods.<br/><br/>When making a Fill Request, the patient will be referenced with a `patient_token` being passed into the request body. If you do not have a `patient_token` for your Patient, one can be created using the Patient Create endpoint.<br/><br/>On a successful submission of the Fill Request, a fill request token will be provided that is used to reference the Fill Request (similar to `prescription_token` and `patient_token`).<br/><br/>This attribute is returned under the field `request_id`.<br/><br/>Many fields for the Fill Request may or may not be required depending on what values are passed in. Please reference the field information carefully.<br/><br/>The `metadata` field acts as a link between the Fill Request in the Truepill and the customer systems. It will be provided in all subsequent Fill Request notifications as the order is processed.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model147"}}],"tags":["api"],"responses":{"202":{"schema":{"$ref":"#/definitions/Model149"},"description":"Accepted"},"400":{"schema":{"$ref":"#/definitions/Model152"},"description":"Bad Request"}}}},"/api/v1/fuzion_test":{"post":{"summary":"Fuzion test endpoint","operationId":"postApiV1Fuzion_test","tags":["api"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/api/v1/insurance":{"post":{"summary":"Create Insurance","operationId":"postApiV1Insurance","description":"Associate an Insurance with the Patient<br/><br/>With a Patient created in the Truepill ecosystem, you can associate an Insurance to that patient with the Create Insurance API endpoint using the `patient_token`.<br/><br/>Upon a successful response, an `insurance_token` is provided that can be used along with the existing `patient_token` for Copay and Fill Requests.<br/><br/>Truepill supports multiple insurances should a patient provide more than one insurance.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model154"}}],"tags":["api"],"responses":{"201":{"schema":{"$ref":"#/definitions/Model156"},"description":"Created"},"400":{"schema":{"$ref":"#/definitions/Model159"},"description":"Bad Request"},"404":{"schema":{"$ref":"#/definitions/Model134"},"description":"Not Found"}}}},"/api/v1/media":{"post":{"summary":"Create media record by file name provided","operationId":"postApiV1Media","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/CreateMedia"}}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model160"},"description":"OK"},"401":{"schema":{"$ref":"#/definitions/Model3"},"description":"Unauthorized"},"404":{"schema":{"$ref":"#/definitions/Model161"},"description":"Not Found"},"500":{"schema":{"$ref":"#/definitions/Model9"},"description":"Internal Server Error"}}}},"/api/v1/order":{"post":{"summary":"Create Order","operationId":"postApiV1Order","description":"Generate an order to fill/refill prescriptions and order Over-the-Counter (OTC) products, allowing multiple patient's prescriptions to be filled as part of the same order<br/><br/>The prescriptions and products requested can be shipped to your patient with various shipping methods.<br/><br/>When making an order, the patients will be referenced with a `patient_token` being passed into the request body, inside the items array. If you do not have a `patient_token` for your patients, they can be created using the Patient Create endpoint.<br/><br/>On a successful submission of the order, an order token will be provided that is used to reference the Order (similar to `prescription_token` and `patient_token`).<br/><br/>This attribute is returned under the field `order_id`.<br/><br/>Many fields for the Order may or may not be required depending on what values are passed in. Please reference the field information carefully.<br/><br/>The `metadata` field acts as a link between the Order in the Truepill and the customer systems. It will be provided in all subsequent Order notifications as the order is processed.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/icd_codes"}}],"tags":["api"],"responses":{"202":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_refs":{"refs":[]},"_flags":{"description":"Response object for order creation","unknown":true},"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"request_id","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Unique identifier for the fill request backing this order"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"order_id","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Unique identifier for the order"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"timestamp","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[{"name":"integer","_resolve":[],"method":"integer"}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Timestamp of request processing"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"status","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Processing status of the order request"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"details","schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Additional processing details","unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"message","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Human-readable status message"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"metadata","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Echo of request metadata"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}},"400":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_refs":{"refs":[]},"_flags":{"unknown":true},"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"statusCode","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"error","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}},"401":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_refs":{"refs":[]},"_flags":{"unknown":true},"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"error","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"message","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}},"404":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_refs":{"refs":[]},"_flags":{"unknown":true},"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"statusCode","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"error","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"message","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}}},"/api/v1/prescriber":{"post":{"summary":"Create Prescriber","operationId":"postApiV1Prescriber","description":"Create a prescriber in the Truepill ecosystem that is assigned to you as a customer","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model163"}}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model164"},"description":"OK"},"400":{"schema":{"$ref":"#/definitions/Model167"},"description":"Bad Request"}}}},"/api/v1/prior_authorization":{"post":{"summary":"Create a Prior Authorization request","operationId":"postApiV1Prior_authorization","description":"A prior authorization can be created by making a Prior Authorization Request.<br/><br/>Truepill will provide a receipt confirmation of the request, and multiple subsequent webhook events throughout the lifecycle of your PA.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Prior%20Authorization%20Request%20Fields"}}],"tags":["api"],"responses":{"202":{"schema":{"$ref":"#/definitions/Model169"},"description":"Accepted"},"400":{"schema":{"$ref":"#/definitions/Model170"},"description":"Bad Request"}}}},"/api/v1/update_request":{"post":{"summary":"Update Fill Request","operationId":"postApiV1Update_request","description":"Amend the fields of an existing Fill Request, such as for correcting an address or changing the shipping method to expedite your order.<br/><br/>When using this endpoint, all the Fill Request fields must be provided with their appropriate values even if they are not to be updated.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model182"}}],"tags":["api"],"responses":{"202":{"schema":{"$ref":"#/definitions/Model184"},"description":"Accepted"},"400":{"schema":{"$ref":"#/definitions/Model187"},"description":"Bad Request"}}}},"/api/v2/direct_transfer":{"post":{"summary":"Create Direct Transfer v2","operationId":"postApiV2Direct_transfer","description":"Create a direct pharmacy-to-pharmacy transfer of the prescription<br/><br/>A direct transfer is a pharmacy-to-pharmacy transfer of the prescription between your pharmacy and a Truepill pharmacy. This method works best for customers that operate their own pharmacies and are looking for a programmatic way to transfer a prescription.<br/><br/>And similar to a traditional transfer request, there are required fields related to the pharmacist transferring out the prescription, and the pharmacist transferring in the prescription.<br/><br/>This approach requires a digital copy of the original prescription.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/icd_codes"}}],"tags":["api"],"responses":{"200":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_refs":{"refs":[]},"_flags":{"description":"Accepted","label":"Post Response: Accepted","unknown":true},"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"request_id","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"timestamp","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"status","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"details","schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"direct_transfer_token","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescription_token","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescription","schema":{"type":"alternatives","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"match":"one"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"matches":[{"schema":{"type":"alternatives","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"match":"all"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"matches":[{"schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"prescribed_medication_name","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescribed medication name","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescribed_quantity","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescribed medication quantity","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescribed_medication_sig","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescribed recommendations for medicines","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescribed_written_date","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"pattern","args":{"regex":{},"options":{}},"errorCode":"string.pattern.base","_resolve":[],"method":"pattern"},{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Written date","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"expiration_date","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Expiration date"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"daw_code","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"NCPDP daw code","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"prescribed_ndc","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"National drug code","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescribed_days_supply","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Days supply","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"icd10_codes","schema":{"type":"array","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[{"name":"items","_resolve":[],"method":"items"}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"items":[{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}],"ordered":[],"_exclusions":[],"_inclusions":[{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}],"_requireds":[]},"$_super":{}}},{"key":"prescriber_notes","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Text note from prescriber"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescribed_number_of_refills","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescribed number of refills","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"prescribed_unit_of_measure","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescribed unit of measure for a medicaiton","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescribed_strength","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescribed medication strength","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescription_image_url","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Original prescription image"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}},{"schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"forwarding_notes","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Text note from forwarding pharmacy"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}]},"$_super":{}}},{"schema":{"type":"alternatives","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"match":"all"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"matches":[{"schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"prescribed_medication_name","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescribed medication name","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescribed_quantity","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescribed medication quantity","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescribed_medication_sig","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescribed recommendations for medicines","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescribed_written_date","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"pattern","args":{"regex":{},"options":{}},"errorCode":"string.pattern.base","_resolve":[],"method":"pattern"},{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Written date","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"expiration_date","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Expiration date"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"daw_code","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"NCPDP daw code","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"prescribed_ndc","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"National drug code","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescribed_days_supply","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Days supply","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"icd10_codes","schema":{"type":"array","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[{"name":"items","_resolve":[],"method":"items"}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"items":[{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}],"ordered":[],"_exclusions":[],"_inclusions":[{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}],"_requireds":[]},"$_super":{}}},{"key":"prescriber_notes","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Text note from prescriber"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescribed_number_of_refills","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescribed number of refills","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"prescribed_unit_of_measure","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescribed unit of measure for a medicaiton","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescribed_strength","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescribed medication strength","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescription_image_url","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Original prescription image"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}},{"schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"rx_number","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"quantity_dispensed","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Quantity of medication dispensed","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"quantity_transferred","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Quantity of medication transferred"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"fills_left","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Number of fills left","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"fills_transferred","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Number of fills transferred"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"last_fill_date","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"pattern","args":{"regex":{},"options":{}},"errorCode":"string.pattern.base","_resolve":[],"method":"pattern"},{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Last fill date","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"first_fill_date","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"pattern","args":{"regex":{},"options":{}},"errorCode":"string.pattern.base","_resolve":[],"method":"pattern"},{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"First fill date","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"transfer_notes","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Text note from transferring party"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}]},"$_super":{}}}]},"$_super":{}}},{"key":"patient_token","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"patient","schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"label":"Patient","unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"prefix","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Patient title","only":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"suffix","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Suffix which qualifies a person","only":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"first_name","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Patient first name","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"last_name","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Patient last name","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"gender","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Patient gender","only":true,"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"dob","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"pattern","args":{"regex":{},"options":{}},"errorCode":"string.pattern.base","_resolve":[],"method":"pattern"},{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Patient's date of birth","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"zip","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"pattern","args":{"regex":{},"options":{}},"errorCode":"string.pattern.base","_resolve":[],"method":"pattern"},{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Postal code where a the patient is located","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"species","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"default":"Human","description":"Patient species","only":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"guardian","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"address","schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"label":"Address","presence":"required","unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"name","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"company","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"street1","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Primary street where a person or company is located","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"street2","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Secondary street where the person or company is located"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"city","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"City where the preson or company is located","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"state","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"State where the person or company is located","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"zip","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"pattern","args":{"regex":{},"options":{}},"errorCode":"string.pattern.base","_resolve":[],"method":"pattern"},{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"country","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"default":"US","description":"Country where the person or company is located","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"phone","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"email","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"fax","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}},{"key":"prescriber","schema":{"type":"alternatives","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"match":"all"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"matches":[{"schema":{"type":"alternatives","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"match":"all"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"matches":[{"schema":{"type":"alternatives","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"matches":[{"schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"label":"NPI","unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"npi","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Provider NPI"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}},{"schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"label":"State licenses","unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"state_licenses","schema":{"type":"array","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[{"name":"items","_resolve":[],"method":"items"}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Array of non-NPI provider identifiers and associated state, e.g. state license and state","label":"State licenses"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"items":[{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"label":"State licenses","unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"license","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"state","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}],"ordered":[],"_exclusions":[],"_inclusions":[{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"label":"State licenses","unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"license","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"state","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}],"_requireds":[]},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}]},"$_super":{}}},{"schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"prescriber_type","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"first_name","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescriber's first name","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"last_name","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Prescriber's last name","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"dea","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}]},"$_super":{}}},{"schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"address","schema":{"type":"alternatives","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"match":"all","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"matches":[{"schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"label":"Address","unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"name","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"company","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"street1","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Primary street where a person or company is located","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"street2","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"Secondary street where the person or company is located"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"city","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"City where the preson or company is located","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"state","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"description":"State where the person or company is located","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"zip","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"pattern","args":{"regex":{},"options":{}},"errorCode":"string.pattern.base","_resolve":[],"method":"pattern"},{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"country","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"default":"US","description":"Country where the person or company is located","presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"phone","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"email","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"fax","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}},{"schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"fax","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}]},"$_super":{}}},{"key":"supervising_physician","schema":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"unknown":true},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"first_name","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"last_name","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"prescriber_type","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"npi","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{"presence":"required"},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"dea","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}]},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}},"400":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_refs":{"refs":[]},"_flags":{"description":"Bad Request","label":"Post Response: Bad Request","unknown":true},"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"status_code","schema":{"type":"number","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}}},{"key":"error","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}},{"key":"message","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}},"404":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_refs":{"refs":[]},"_flags":{"description":"Not Found","label":"Post Response: Not Found","unknown":true},"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"message","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":null,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":{"_values":{},"_refs":{},"_lowercase":{},"_override":false},"_invalids":null,"_rules":[{"name":"min","method":"length","args":{"limit":0},"operator":">=","_resolve":[]}],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}}}}},"/api/v2/media":{"post":{"summary":"Create media record by file name provided","operationId":"postApiV2Media","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/CreateMediaV2"}}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model188"},"description":"OK"},"401":{"schema":{"$ref":"#/definitions/Model3"},"description":"Unauthorized"},"404":{"schema":{"$ref":"#/definitions/Model161"},"description":"Not Found"},"500":{"schema":{"$ref":"#/definitions/Model9"},"description":"Internal Server Error"}}}},"/consults/v0/consult":{"post":{"summary":"Create Consult","operationId":"postConsultsV0Consult","description":"Create a new Consult","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/CreateConsult"}}],"tags":["consults"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model200"},"description":"OK"},"400":{"schema":{"$ref":"#/definitions/Model202"},"description":"Bad Request"},"401":{"schema":{"$ref":"#/definitions/Model8"},"description":"Unauthorized"},"404":{"schema":{"$ref":"#/definitions/Model203"},"description":"Not Found"},"500":{"schema":{"$ref":"#/definitions/Model9"},"description":"Internal Server Error"}}}},"/v1/copay_request/cancel":{"post":{"summary":"Cancel Copay Request","operationId":"postV1Copay_requestCancel","description":"Cancel an existing Copay Request if the status is 'Pending' or 'Triage'.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model210"}}],"tags":["v1"],"responses":{"202":{"schema":{"$ref":"#/definitions/Model212"},"description":"Accepted"},"404":{"schema":{"$ref":"#/definitions/Model213"},"description":"Not Found"}}}},"/v1/insurance/eligibility-check":{"post":{"summary":"Check Insurance Eligibility","operationId":"postV1InsuranceEligibilitycheck","description":"Check patient insurance eligibility<br/><br/>This endpoint accepts either a patient_token or patient details to check insurance eligibility.<br/><br/>The request will be forwarded to the Insurance Service for processing.<br/><br/>Returns an array of insurances.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model214"}}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model215"},"description":"OK"},"400":{"schema":{"$ref":"#/definitions/Model216"},"description":"Bad Request"},"404":{"schema":{"$ref":"#/definitions/Model134"},"description":"Not Found"},"503":{"schema":{"$ref":"#/definitions/Model217"},"description":"Service Unavailable"},"504":{"schema":{"$ref":"#/definitions/Model218"},"description":"Gateway Timeout"}}}},"/api/v1/copay_request/cancel":{"post":{"summary":"Cancel Copay Request","operationId":"postApiV1Copay_requestCancel","description":"Cancel an existing Copay Request if the status is 'Pending' or 'Triage'.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model210"}}],"tags":["api"],"responses":{"202":{"schema":{"$ref":"#/definitions/Model212"},"description":"Accepted"},"404":{"schema":{"$ref":"#/definitions/Model213"},"description":"Not Found"}}}},"/api/v1/insurance/eligibility-check":{"post":{"summary":"Check Insurance Eligibility","operationId":"postApiV1InsuranceEligibilitycheck","description":"Check patient insurance eligibility<br/><br/>This endpoint accepts either a patient_token or patient details to check insurance eligibility.<br/><br/>The request will be forwarded to the Insurance Service for processing.<br/><br/>Returns an array of insurances.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model214"}}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model215"},"description":"OK"},"400":{"schema":{"$ref":"#/definitions/Model216"},"description":"Bad Request"},"404":{"schema":{"$ref":"#/definitions/Model134"},"description":"Not Found"},"503":{"schema":{"$ref":"#/definitions/Model217"},"description":"Service Unavailable"},"504":{"schema":{"$ref":"#/definitions/Model218"},"description":"Gateway Timeout"}}}},"/diagnostics/v0/orders/register":{"post":{"summary":"Register Order","operationId":"postDiagnosticsV0OrdersRegister","description":"Register a new order using an existing kit serial.","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/RegisterOrder"}}],"tags":["diagnostics"],"responses":{"200":{"schema":{"$ref":"#/definitions/Order"},"description":"Successful"},"201":{"description":"The created order"},"400":{"description":"There is an issue with your request. Inspection of the response body will yield more details"},"401":{"description":"Authorization missing or invalid"},"500":{"description":"An unexpected, likely ephemeral scenario occurred. The request will have to be retried later. We recommend reaching out to Truepill if this is a persistent issue."}}}},"/v1/auto-refill/{prescription_token}/early-refill":{"post":{"summary":"Schedule a one-time order from the auto-refill prescription","operationId":"postV1AutorefillPrescription_tokenEarlyrefill","parameters":[{"type":"string","name":"prescription_token","in":"path","required":true}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model226"},"description":"ok"},"400":{"schema":{"$ref":"#/definitions/Model18"},"description":"Bad Request"},"500":{"schema":{"$ref":"#/definitions/Model19"},"description":"Internal Server Error"}}}},"/v1/prescription/discontinue/{prescription_token}":{"post":{"summary":"Discontinue a Prescription by token","operationId":"postV1PrescriptionDiscontinuePrescription_token","description":"Discontinue a particular prescription","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model227"}}],"tags":["v1"],"responses":{"200":{"timestamp":{"type":"date","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["2021-05-20T00:00:00.000Z"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}},"status":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Unsuccessful"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"message":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["An example error message"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"description":"Successful","schema":{"type":"string"}},"400":{"timestamp":{"type":"date","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["2021-05-20T00:00:00.000Z"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}},"status":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Unsuccessful"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"message":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["An example error message"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"description":"Bad Request"},"401":{"timestamp":{"type":"date","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["2021-05-20T00:00:00.000Z"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}},"status":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Unauthorized"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"message":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Customer not approved to use this endpoint"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"description":"Unauthorized"},"404":{"timestamp":{"type":"date","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["2021-05-20T00:00:00.000Z"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}},"status":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Unsuccessful"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"message":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Prescription not found"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"description":"Not Found"}}}},"/v1/prescription/{prescription_token}/transfer_out":{"post":{"summary":"TransferOut a Prescription by token","operationId":"postV1PrescriptionPrescription_tokenTransfer_out","description":"TransferOut a particular prescription","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model229"}}],"tags":["v1"],"responses":{"200":{"timestamp":{"type":"date","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["2021-05-20T00:00:00.000Z"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}},"status":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Success"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"message":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Transfer request pending retrieval of missing information: [\"pharmacist_name\"]."],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"details":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"transfer_out_token","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["aa4dd1"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}},"description":"Successful","schema":{"type":"string"}},"403":{"timestamp":{"type":"date","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["2021-05-20T00:00:00.000Z"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}},"status":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Unsuccessful"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"message":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Customer not approved to use this endpoint."],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"description":"Forbidden"},"404":{"timestamp":{"type":"date","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["2021-05-20T00:00:00.000Z"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}},"status":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Unsuccessful"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"message":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Prescription not found."],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"description":"Not Found"},"409":{"timestamp":{"type":"date","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["2021-05-20T00:00:00.000Z"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}},"status":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Unsuccessful"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"message":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Prescription already linked to another active transfer-out request."],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"description":"Conflict"},"500":{"timestamp":{"type":"date","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["2021-05-20T00:00:00.000Z"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}},"status":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Unsuccessful"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"message":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["There was a problem with this transfer request, please reach out to your Truepill customer representative."],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"description":"Internal Server Error"}}}},"/v1/prescription/{prescription_token}/external_transfer":{"post":{"summary":"Create an external transfer request for a prescription","operationId":"postV1PrescriptionPrescription_tokenExternal_transfer","description":"Create an external transfer request for a prescription","tags":["v1"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/v1/prescriptions/{prescription_token}/external_transfer":{"post":{"summary":"Create an external transfer request for a prescription","operationId":"postV1PrescriptionsPrescription_tokenExternal_transfer","description":"Create an external transfer request for a prescription","tags":["v1"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/api/v1/auto-refill/{prescription_token}/early-refill":{"post":{"summary":"Schedule a one-time order from the auto-refill prescription","operationId":"postApiV1AutorefillPrescription_tokenEarlyrefill","parameters":[{"type":"string","name":"prescription_token","in":"path","required":true}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model226"},"description":"ok"},"400":{"schema":{"$ref":"#/definitions/Model18"},"description":"Bad Request"},"500":{"schema":{"$ref":"#/definitions/Model19"},"description":"Internal Server Error"}}}},"/api/v1/prescription/discontinue/{prescription_token}":{"post":{"summary":"Discontinue a Prescription by token","operationId":"postApiV1PrescriptionDiscontinuePrescription_token","description":"Discontinue a particular prescription","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model227"}}],"tags":["api"],"responses":{"200":{"timestamp":{"type":"date","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["2021-05-20T00:00:00.000Z"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}},"status":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Unsuccessful"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"message":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["An example error message"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"description":"Successful","schema":{"type":"string"}},"400":{"timestamp":{"type":"date","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["2021-05-20T00:00:00.000Z"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}},"status":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Unsuccessful"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"message":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["An example error message"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"description":"Bad Request"},"401":{"timestamp":{"type":"date","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["2021-05-20T00:00:00.000Z"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}},"status":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Unauthorized"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"message":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Customer not approved to use this endpoint"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"description":"Unauthorized"},"404":{"timestamp":{"type":"date","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["2021-05-20T00:00:00.000Z"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}},"status":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Unsuccessful"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"message":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Prescription not found"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"description":"Not Found"}}}},"/api/v1/prescription/{prescription_token}/external_transfer":{"post":{"summary":"Create an external transfer request for a prescription","operationId":"postApiV1PrescriptionPrescription_tokenExternal_transfer","description":"Create an external transfer request for a prescription","tags":["api"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/api/v1/prescription/{prescription_token}/transfer_out":{"post":{"summary":"TransferOut a Prescription by token","operationId":"postApiV1PrescriptionPrescription_tokenTransfer_out","description":"TransferOut a particular prescription","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model229"}}],"tags":["api"],"responses":{"200":{"timestamp":{"type":"date","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["2021-05-20T00:00:00.000Z"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}},"status":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Success"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"message":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Transfer request pending retrieval of missing information: [\"pharmacist_name\"]."],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"details":{"type":"object","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":null,"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"dependencies":null,"keys":[{"key":"transfer_out_token","schema":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["aa4dd1"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}}}],"patterns":null,"renames":null},"$_super":{}},"description":"Successful","schema":{"type":"string"}},"403":{"timestamp":{"type":"date","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["2021-05-20T00:00:00.000Z"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}},"status":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Unsuccessful"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"message":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Customer not approved to use this endpoint."],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"description":"Forbidden"},"404":{"timestamp":{"type":"date","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["2021-05-20T00:00:00.000Z"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}},"status":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Unsuccessful"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"message":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Prescription not found."],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"description":"Not Found"},"409":{"timestamp":{"type":"date","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["2021-05-20T00:00:00.000Z"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}},"status":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Unsuccessful"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"message":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Prescription already linked to another active transfer-out request."],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"description":"Conflict"},"500":{"timestamp":{"type":"date","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["2021-05-20T00:00:00.000Z"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null},"$_super":{}},"status":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["Unsuccessful"],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"message":{"type":"string","$_root":{"_types":{},"version":"17.13.3","cache":{}},"$_temp":{"ruleset":false,"whens":{}},"_ids":{"_byId":{},"_byKey":{},"_schemaChain":false},"_preferences":null,"_valids":null,"_invalids":null,"_rules":[],"_singleRules":{},"_refs":{"refs":[]},"_flags":{},"_cache":null,"$_terms":{"alterations":null,"examples":["There was a problem with this transfer request, please reach out to your Truepill customer representative."],"externals":null,"metas":[],"notes":[],"shared":null,"tags":[],"whens":null,"replacements":null},"$_super":{}},"description":"Internal Server Error"}}}},"/api/v1/prescriptions/{prescription_token}/external_transfer":{"post":{"summary":"Create an external transfer request for a prescription","operationId":"postApiV1PrescriptionsPrescription_tokenExternal_transfer","description":"Create an external transfer request for a prescription","tags":["api"],"responses":{"default":{"schema":{"type":"string"},"description":"Successful"}}}},"/scheduled-fill-requests/{id}":{"put":{"summary":"Update details for on scheduled fill request.","operationId":"putScheduledfillrequestsId","parameters":[{"type":"string","x-format":{"guid":true},"name":"id","in":"path","required":true},{"in":"body","name":"body","schema":{"$ref":"#/definitions/PUT%20ScheduledFill%20Request%20Payload"}}],"tags":["scheduled-fill-requests"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model113"},"description":"OK"},"400":{"schema":{"$ref":"#/definitions/Model2"},"description":"Bad Request"},"401":{"schema":{"$ref":"#/definitions/Model3"},"description":"Unauthorized"},"500":{"schema":{"$ref":"#/definitions/Model2"},"description":"Internal Server Error"}}},"delete":{"summary":"Delete a scheduled fill request.","operationId":"deleteScheduledfillrequestsId","parameters":[{"type":"string","x-format":{"guid":true},"name":"id","in":"path","required":true}],"tags":["scheduled-fill-requests"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model240"},"description":"OK"},"400":{"schema":{"$ref":"#/definitions/Model2"},"description":"Bad Request"},"401":{"schema":{"$ref":"#/definitions/Model3"},"description":"Unauthorized"},"500":{"schema":{"$ref":"#/definitions/Model2"},"description":"Internal Server Error"}}}},"/v1/fill_request/{url_token}/stripe_payment":{"put":{"summary":"Update a Fill Request's stripe payment","operationId":"putV1Fill_requestUrl_tokenStripe_payment","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model235"}}],"tags":["v1"],"responses":{"202":{"schema":{"$ref":"#/definitions/Model237"},"description":"Accepted"},"400":{"schema":{"$ref":"#/definitions/Model238"},"description":"Bad Request"},"403":{"schema":{"$ref":"#/definitions/Model239"},"description":"Forbidden"}}}},"/api/v1/fill_request/{url_token}/stripe_payment":{"put":{"summary":"Update a Fill Request's stripe payment","operationId":"putApiV1Fill_requestUrl_tokenStripe_payment","parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model235"}}],"tags":["api"],"responses":{"202":{"schema":{"$ref":"#/definitions/Model237"},"description":"Accepted"},"400":{"schema":{"$ref":"#/definitions/Model238"},"description":"Bad Request"},"403":{"schema":{"$ref":"#/definitions/Model239"},"description":"Forbidden"}}}},"/v1/auto-refill/{prescription_token}/skip-refill":{"delete":{"summary":"Skip a scheduled fill request","operationId":"deleteV1AutorefillPrescription_tokenSkiprefill","parameters":[{"type":"string","name":"prescription_token","in":"path","required":true}],"tags":["v1"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model248"},"description":"ok"},"400":{"schema":{"$ref":"#/definitions/Model18"},"description":"Bad Request"},"500":{"schema":{"$ref":"#/definitions/Model19"},"description":"Internal Server Error"}}}},"/api/v1/auto-refill/{prescription_token}/skip-refill":{"delete":{"summary":"Skip a scheduled fill request","operationId":"deleteApiV1AutorefillPrescription_tokenSkiprefill","parameters":[{"type":"string","name":"prescription_token","in":"path","required":true}],"tags":["api"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model248"},"description":"ok"},"400":{"schema":{"$ref":"#/definitions/Model18"},"description":"Bad Request"},"500":{"schema":{"$ref":"#/definitions/Model19"},"description":"Internal Server Error"}}}},"/consults/v0/consult/{consult_id}/media":{"patch":{"summary":"Update Consult Media","operationId":"patchConsultsV0ConsultConsult_idMedia","description":"Updates media if form is SELF_PORTRAIT or PHOTO_IDENTIFICATION, and adds new media otherwise","parameters":[{"type":"string","x-constraint":{"length":24},"x-format":{"hex":{"byteAligned":false,"prefix":false}},"name":"consult_id","in":"path","required":true},{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model249"}}],"tags":["consults"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model249"},"description":"OK"},"400":{"schema":{"$ref":"#/definitions/Model13"},"description":"Bad Request"},"401":{"schema":{"$ref":"#/definitions/Model8"},"description":"Unauthorized"},"404":{"schema":{"$ref":"#/definitions/Model250"},"description":"Not Found"},"500":{"schema":{"$ref":"#/definitions/Model9"},"description":"Internal Server Error"}}}},"/consults/v0/consult/{consult_id}/simulate":{"patch":{"summary":"Simulate updating consult status","operationId":"patchConsultsV0ConsultConsult_idSimulate","parameters":[{"type":"string","x-constraint":{"length":24},"x-format":{"hex":{"byteAligned":false,"prefix":false}},"name":"consult_id","in":"path","required":true},{"in":"body","name":"body","schema":{"$ref":"#/definitions/Model251"}}],"tags":["consults"],"responses":{"200":{"schema":{"$ref":"#/definitions/Model252"},"description":"OK"}}}}},"definitions":{"metadata":{"type":"object","description":"The additional data json for current scheduled action","example":{"request_id":8}},"Model1":{"type":"object","properties":{"id":{"type":"string","description":"The unique uuid for scheduled action","example":"b5220786-0636-48c9-a9a0-087d17d15d9f","pattern":"^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$","x-format":{"guid":true}},"created_at":{"type":"string","description":"The scheduled action created date","example":"2022-03-08T14:20:08.000Z"},"updated_at":{"type":"string","description":"The scheduled action updated date","example":"2022-03-08T14:20:08.000Z"},"submit_on":{"type":"string","format":"date","description":"The datetime when scheduled action will be executed","example":"2022-04-08T13:20:08.000Z"},"metadata":{"$ref":"#/definitions/metadata"},"action_type":{"type":"string","description":"The type of scheduled action","example":"PENDING"},"status":{"type":"string","description":"The executing status for the scheduled action","example":"PENDING","enum":["PENDING","CANCELLED","COMPLETE"]},"customer_id":{"type":"number","description":"The id of the customer for current scheduled action","example":21}},"required":["id","created_at","submit_on"]},"getScheduledActions.data.details.scheduled_actions":{"type":"array","description":"The list of all scheduled actions of all types by customer","example":[{"id":"b5220786-0636-48c9-a9a0-087d17d15d9f","submit_on":"2022-02-19 16:04:53","created_at":"2022-03-08T14:20:08.000Z","updated_at":"2022-03-08T14:20:08.000Z","action_type":"FILL_REQUEST","status":"PENDING","metadata":{"request_id":1},"customer_id":21}],"items":{"$ref":"#/definitions/Model1"}},"getScheduledActions.data.details":{"type":"object","description":"The details of the response","properties":{"next_page_token":{"type":"string","description":"Base64 encoded datetime cursor to start the following paginated list from","example":"MjAyMi0wMy0wOCAxNjoyMDowMg=="},"total":{"type":"number","description":"The total number of scheduled actions of any type for the current customer","example":50},"per_page":{"type":"number","description":"The limit of actions per paginated list","example":10},"pages":{"type":"number","description":"The total number of scheduled actions","example":5}},"required":["total","per_page","pages"]},"getScheduledActions.data":{"type":"object","properties":{"timestamp":{"type":"string","format":"date","description":"The timestamp of response","example":"2022-03-13T15:08:14.748Z"},"status":{"type":"string","description":"The status of response","example":"successful","enum":["successful","unsuccessful"]},"scheduled_actions":{"$ref":"#/definitions/getScheduledActions.data.details.scheduled_actions"},"pagination":{"$ref":"#/definitions/getScheduledActions.data.details"}},"required":["timestamp","status"]},"Model2":{"type":"object","properties":{"statusCode":{"type":"string","example":"0001 or 0002"},"message":{"type":"string","example":"An example error message"}},"required":["statusCode","message"]},"Model3":{"type":"object","properties":{"statusCode":{"type":"number","example":401},"error":{"type":"string","example":"Unauthorized"},"message":{"type":"string","example":"Invalid credentials"}}},"Model4":{"type":"object","properties":{"id":{"type":"string","example":"f716ba1c-bd4b-43c7-9395-84255cd943cd","x-format":{"guid":true}},"status":{"type":"string","example":"PENDING"},"submit_on":{"type":"string","format":"date","example":"2022-01-01T00:00:00.000Z"},"original_fill_request_token":{"type":"string","example":"fill_request_token_abc123"}},"required":["id","status","submit_on","original_fill_request_token"]},"provider":{"type":"object","properties":{"id":{"type":"string","example":"607619bb13b4b6001d36f223"},"npi":{"type":"number","example":3948693843},"first_name":{"type":"string","example":"Test"},"last_name":{"type":"string","example":"Doc"},"title":{"type":"string","example":"MD"}}},"program":{"type":"object","properties":{"id":{"type":"string","example":"614522fe1d9bcd001c55a2eb"},"name":{"type":"string","example":"My Program"}}},"Model5":{"type":"object","properties":{"order_id":{"type":"string","description":"Should be a uuid","example":"059d52b6-b2b0-4bd1-97df-082b1e2196c1","pattern":"^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$"}}},"lab_tests":{"type":"array","items":{"$ref":"#/definitions/Model5"}},"Model6":{"type":"object","properties":{"patient_token":{"type":"string","example":"bc955e1dccd8295c"},"id":{"type":"string","example":"61b1d934c398d1001eab5cf2"},"status":{"type":"string","example":"completed"},"provider":{"$ref":"#/definitions/provider"},"program":{"$ref":"#/definitions/program"},"lab_tests":{"$ref":"#/definitions/lab_tests"},"created_at":{"type":"string","example":"2021-12-09T10:23:48.547Z"}}},"Model7":{"type":"array","items":{"$ref":"#/definitions/Model6"}},"Model8":{"type":"object","properties":{"statusCode":{"type":"number","example":401},"error":{"type":"string","example":"Unauthorized"},"message":{"type":"string","example":"Please Send a Valid Api-Key"}}},"Model9":{"type":"object","properties":{"statusCode":{"type":"number","example":500},"error":{"type":"string","example":"An internal server error occurred"},"message":{"type":"string","example":"An internal server error occurred"}}},"Model10":{"type":"object","properties":{"start":{"type":"string","format":"date-time","example":"2022-04-06T05:00:00.000Z"},"end":{"type":"string","format":"date-time","example":"2022-04-07T08:00:00.000Z"}},"required":["start","end"]},"availabilities":{"type":"array","items":{"$ref":"#/definitions/Model10"}},"Model11":{"type":"object","properties":{"availabilities":{"$ref":"#/definitions/availabilities"}}},"Model12":{"type":"object","properties":{"key":{"type":"string","example":"questionnaire"},"message":{"type":"string","example":"length must be 24 characters long"}}},"validation_errors":{"type":"array","items":{"$ref":"#/definitions/Model12"}},"Model13":{"type":"object","properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"validation_errors":{"$ref":"#/definitions/validation_errors"}}},"Model14":{"type":"object","properties":{"statusCode":{"type":"number","example":404},"error":{"type":"string","example":"Not Found"},"message":{"type":"string","example":"Consult questionnaire not found. (You may not be authorized to it)"}}},"auto_refill_subscriptions":{"type":"object","properties":{"id":{"type":"number","example":1},"prescription_token":{"type":"string","example":"token"},"patient_token":{"type":"string","example":"token"},"status":{"type":"string","example":"active"}}},"details":{"type":"object","properties":{"auto_refill_subscriptions":{"$ref":"#/definitions/auto_refill_subscriptions"}}},"data":{"type":"object","properties":{"timestamp":{"type":"string","format":"date","example":"2021-05-20T00:00:00.000Z"},"status":{"type":"string","example":"successful"},"details":{"$ref":"#/definitions/details"}}},"Model15":{"type":"object","properties":{"code":{"type":"number","example":200},"err":{"type":"boolean","example":false},"data":{"$ref":"#/definitions/data"}}},"Model16":{"type":"object","properties":{"message":{"type":"string","example":"An example error message"}}},"Model17":{"type":"object","properties":{"timestamp":{"type":"string","format":"date","example":"2021-05-20T00:00:00.000Z"},"status":{"type":"string","example":"unsuccessful"},"details":{"$ref":"#/definitions/Model16"}}},"Model18":{"type":"object","properties":{"code":{"type":"number","example":400},"err":{"type":"boolean","example":true},"data":{"$ref":"#/definitions/Model17"}}},"Model19":{"type":"object","properties":{"code":{"type":"number","example":500},"err":{"type":"boolean","example":true},"data":{"$ref":"#/definitions/Model17"}}},"patient_survey":{"type":"object","example":{"medications":"Tafluprost","allergies":"Penicillian","conditions":"Glaucoma"},"properties":{"allergies":{"type":"string","x-alternatives":[{"type":"string"},{"$ref":"#/x-alt-definitions/allergies"}]},"medications":{"type":"string","x-alternatives":[{"type":"string"},{"$ref":"#/x-alt-definitions/medications"}]},"conditions":{"type":"string"},"events":{"type":"string","x-alternatives":[{"type":"string"},{"$ref":"#/x-alt-definitions/events"}]},"smoking_frequency":{"type":"string"},"drinking_frequency":{"type":"string"},"asthma_breathing":{"type":"boolean"},"heart_disease":{"type":"boolean"},"arthritis":{"type":"boolean"},"lung_disorder":{"type":"boolean"},"bleeding_clotting_disorder":{"type":"boolean"},"neurological_chronic_headaches":{"type":"boolean"},"blood_transfusion":{"type":"boolean"},"psychiatric_disorder":{"type":"boolean"},"bowel_stomach":{"type":"boolean"},"pulmonary_embolism":{"type":"boolean"},"cancer":{"type":"boolean"},"stroke":{"type":"boolean"},"cholesterol_disorder":{"type":"boolean"},"seizure_epilepsy":{"type":"boolean"},"diabetes":{"type":"boolean"},"thyroid_disorder":{"type":"boolean"},"eye_disorder":{"type":"boolean"},"urinary_kidney_disorder":{"type":"boolean"},"pregnancy":{"type":"boolean"}},"required":["allergies","medications","conditions"]},"medication_response":{"type":"object","properties":{"prescription_token":{"type":"string","example":"e61e324f9018"},"quantity":{"type":"number","example":30},"is_cancellable":{"type":"boolean","description":"Indicates whether this medication/fill can be cancelled.","example":true}}},"medications":{"type":"array","items":{"$ref":"#/definitions/medication_response"}},"patient_consent":{"type":"object","properties":{"consent_statement":{"type":"string"},"consent_method":{"type":"string"},"consent_date":{"type":"string"},"consent_type":{"type":"string"},"patient_name":{"type":"string"},"consent_provided_by":{"type":"string"},"item":{"type":"string"}}},"otc_product":{"type":"object","properties":{"sku":{"type":"string","example":"SKU-123-456"},"quantity":{"type":"number","example":1},"patient_consent":{"$ref":"#/definitions/patient_consent"},"is_cancellable":{"type":"boolean","description":"Indicates whether this OTC product can be cancelled. False if packing slip has been printed.","example":true}}},"otc_products":{"type":"array","items":{"$ref":"#/definitions/otc_product"}},"Model20":{"type":"object","properties":{"category":{"type":"string","example":"prescription_copay","enum":["prescription_copay","tax","shipping","prescription_cash","tax_copay","processing_fee"]},"prescription_token":{"type":"string","example":"0154cc7b065"},"amount":{"type":"number","example":11.43},"description":{"type":"string","example":"Copay for medication A"}},"required":["category","prescription_token","amount"]},"receipt_items":{"type":"array","items":{"$ref":"#/definitions/Model20"}},"current_stripe_payment":{"type":"object","properties":{"cardholder_name":{"type":"string","example":"Bruce Banner"},"last_four_digits":{"type":"string","example":"6789"},"stripe_id":{"type":"string","example":"pi_10f410zj3018s2"},"amount":{"type":"number","example":12.75},"description":{"type":"string","example":"Paid by patient"},"intent_status":{"type":"string"}},"required":["stripe_id","amount"]},"Model21":{"type":"object","properties":{"patient_first_name":{"type":"string","example":"Stephen"},"patient_last_name":{"type":"string","example":"Strange"},"metadata":{"type":"string","example":"some metadata"},"patient_payment_type":{"type":"string","example":"cash"},"is_cancellable":{"type":"boolean","description":"Indicates whether the entire fill request can be cancelled based on its current status. Generally true when order is in Triage or PV1 status, false when in Fill, PV2, Packing, Complete, or Cancelled status.","example":true},"address_to_name":{"type":"string","example":"Stephen Strange"},"address_to_street1":{"type":"string","example":"1700 S Amphlett Blvd"},"address_to_street2":{"type":"string","example":"#221"},"address_to_city":{"type":"string","example":"San Mateo"},"address_to_state":{"type":"string","example":"CA"},"address_to_phone":{"type":"string","example":"1112223333"},"address_to_email":{"type":"string","example":"truepill@truepill.com"},"address_to_zip":{"type":"string","example":"94402"},"patient_survey":{"$ref":"#/definitions/patient_survey"},"medications":{"$ref":"#/definitions/medications"},"otc_products":{"$ref":"#/definitions/otc_products"},"shipping_method":{"type":"string","example":"standard"},"address_to_company":{"type":"string"},"address_to_country":{"type":"string","example":"US"},"status":{"type":"string","example":"triage"},"url_token":{"type":"string","example":"abc123"},"created_at":{"type":"string","example":"2021-09-14T14:22:37.000Z"},"tracking_url":{"type":"string","example":"https://www.fedex.com/apps/fedextrack/?action=track&cntry_code=us&trackingnumber=12345"},"receipt_items":{"$ref":"#/definitions/receipt_items"},"current_stripe_payment":{"$ref":"#/definitions/current_stripe_payment"}},"required":["patient_survey"]},"results":{"type":"array","items":{"$ref":"#/definitions/Model21"}},"Model22":{"type":"object","properties":{"results":{"$ref":"#/definitions/results"},"next_page_token":{"type":"string","example":"JpdiI6IjdkNWViNWU5MTViNjAzNzAwYjQ4NTI3YjEyZjIzNDFkIiwiY29udGVudCI6IjE2YTcyNmQ4OGI3NTNlYzRjMTE5ZDc5NWIyMmE4MDRkN2UzYzA3YTA1M"}}},"Model23":{"type":"object","properties":{"guardian":{"type":"string"},"prefix":{"type":"string","description":"Patient title","example":"Mr","enum":["Mr.","Ms.","Mrs.","Miss","Ms","Prof","Sir"]},"suffix":{"type":"string","description":"Suffix which qualifies a person","example":"Jr.","enum":["Jr.","Sr.","I","II","III","IV","V"]},"first_name":{"type":"string","description":"Patient first name","example":"Lola","x-convert":{"trim":true}},"last_name":{"type":"string","description":"Patient last name","example":"Martin","x-convert":{"trim":true}},"gender":{"type":"string","description":"Patient gender","example":"female","enum":["male","female","unknown"]},"dob":{"type":"string","format":"date","description":"Patient's date of birth","example":"20180401"},"zip":{"type":"string","description":"Postal code where the company is located","example":"94538","pattern":"^\\d{5}(-\\d{4})?$"},"species":{"type":"string","example":"sparrow","default":"Human","enum":["Human","Crocodile","Frog","Iguana","Lizard","Snake","Tortoise","Turtle","Spider","Other Arthopoda","Chicken","African Goshawk","Budgerigar","Cockatiel","Cockatoo","Common Canary","Crow","Duck","Eagle","Goose","Guinea Fowl","Kestrel","Kite","Macaw","Ostrich","Other Aves","Owl","Parakeet","Parrot","Partridge","Peregrin Falcon","Pheasant","Pigeon","Quail","Snipe","Sparrow","Starling","Swan","Turtle Dove","Bison","Cattle/Bovine","Buffalo","Other Bovinae","Alpaca","Camel","Llama","Other Camelidae","Dog/Canine","Fox","Jackal","Raccoon Dog","Wolf","Other Caprinae","Goat/Carpine","Sheep/Ovine","Elk","Moose","Fallow","Other Cervidae","Red Deer","Reindeer","Roe Deer","Donkey/Asinine","Horse/Equine","Hybrid","Other Equidae","Zebra","Bobcat","Cougar","Puma","European Lynx","Cat/Feline","Jaguar","Leopard","Lion","Other Felidae","Tiger","Wild Cat","European Rabbit","Hare","Other Leporidae","Bivalvia","Cephalopoda","Other Mollusca","Badger","Ferret","Mink","Other Mustelidae","Bat","Bear","Hedgehog","Monkey","Other Mammalia","Arctic Char","Atlantic Salmon","Brill","Carp","Catfish","Cod","Crucian Carp","European Eel","Gilthead","Goldfish","Gudgeon","Halibut","Largemouth Bass","Mullet","Other Pisces","Perch","Pike","Roach","Sea Bream","Seabass","Sharpsnout Seabream","Sole","Sturgeon","Tench","Trout","Turbot","Rockfish/Wolffish","Beaver","Chinchilla","Dormouse","Dwarf Hamster","European Hamster","Gerbil","Guinea Pig","House Mouse","Other Rodentia","Rat","Russian Hamster","Syrian Hamster","Golden Hamster","Vole","Other Suidae","Pig/Porcine","Wild Boar","Addax"]}},"required":["first_name","last_name","gender","dob"]},"Model24":{"type":"object","properties":{"statusCode":{"type":"number","example":404},"error":{"type":"string","example":"Not Found"},"message":{"type":"string","example":"Unable to find Patient."}}},"address":{"type":"object","properties":{"street_1":{"type":"string","example":"1234 123th Avenue NE"},"street_2":{"type":"string","example":"Suite J/A"},"city":{"type":"string","example":"Redmond"},"state":{"type":"string","example":"WA"},"zip":{"type":"string","example":"98502","pattern":"^\\d{5}(-\\d{4})?$"},"phone":{"type":"string","example":"(111) 123-4321"}}},"Model25":{"type":"object","properties":{"pharmacy_name":{"type":"string","example":"Test Pharmacy"},"npi":{"type":"string","example":1231231234,"pattern":"^\\d{10}$"},"address":{"$ref":"#/definitions/address"}}},"message":{"type":"array","items":{"type":"string","example":"Invalid bin field length. bin must be in numeric string format and length must be equal to 6 characters"}},"Model26":{"type":"object","properties":{"statusCode":{"type":"number","example":400},"message":{"$ref":"#/definitions/message"},"error":{"type":"string","example":"Bad Request"}}},"Model27":{"type":"object","properties":{"statusCode":{"type":"number","example":401},"message":{"type":"string","example":"Unauthorized"}}},"Model28":{"type":"object","properties":{"statusCode":{"type":"number","example":403},"message":{"type":"string","example":"Forbidden"}}},"Model29":{"type":"object","properties":{"url_token":{"type":"string","example":"e6014ac9da658c1c"},"medication_name":{"type":"string","example":"duloxetine 30mg capsule"}}},"transfer_medications":{"type":"array","items":{"$ref":"#/definitions/Model29"}},"Model30":{"type":"object","properties":{"created_at":{"type":"string","format":"date","example":"2021-02-28T22:34:50.000Z"},"url_token":{"type":"string","example":"e4bce6d1e2"},"status":{"type":"string","example":"completed"},"transfer_medications":{"$ref":"#/definitions/transfer_medications"}}},"Model31":{"type":"array","items":{"$ref":"#/definitions/Model30"}},"remaining_refills":{"type":"object","properties":{"total_remaining_refills":{"type":"number","example":5},"total_quantity_remaining":{"type":"number","example":150}}},"Model32":{"type":"object","properties":{"medication_name":{"type":"string","example":"Bupropion Hcl XL 150 mg tablet"},"dispensed_medication_name":{"type":"string","example":"Bupropion Hcl XL 150 mg tablet"},"requested_medication_name":{"type":"string","example":"Bupropion Hcl XL 150 mg tablet"},"original_requested_prescription_token":{"type":"string","example":"e61e324f9018"},"days_supply":{"type":"number","example":30},"quantity":{"type":"number","example":30},"fill_number":{"type":"number","example":0},"rx_number":{"type":"string","example":"201877000"},"total_refills_allowed":{"type":"number","example":5},"prescription_token":{"type":"string","example":"e61e324f9018"},"medication_token":{"type":"string","example":"11bb9146f972"},"remaining_refills":{"$ref":"#/definitions/remaining_refills"},"patient_cash_amount":{"type":"number","example":10.5},"rx_link":{"type":"string","example":"rxl_d374bfb72980319f2a80f8af"}}},"Model33":{"type":"array","items":{"$ref":"#/definitions/Model32"}},"Model34":{"type":"object","properties":{"metadata":{"type":"string","example":"some metadata"},"message":{"type":"string","example":"Your fill request was processed and is pending shipment."},"date_filled":{"type":"string","example":"Wed, 08 Sep 2021 10:04:25 GMT"},"order_token":{"type":"string","example":"e4469e"},"medications":{"$ref":"#/definitions/Model33"},"tracking_url":{"type":"string","example":"https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=48081107879780000000000000"},"location":{"type":"string","example":"Brooklyn, NY"},"patient_token":{"type":"string","example":"fa4ca2d7c1214214"}}},"payload":{"type":"object","properties":{"timestamp":{"type":"number","example":1631593381},"callback_type":{"type":"string","example":"ORDER"},"details":{"$ref":"#/definitions/Model34"}}},"delivery_data":{"type":"object","properties":{"status":{"type":"string","example":"success"},"status_code":{"type":"number","example":204}}},"Model35":{"type":"object","properties":{"payload":{"$ref":"#/definitions/payload"},"delivery_data":{"$ref":"#/definitions/delivery_data"},"next_page_token":{"type":"string","example":"eyJpdiI6IjRiNDc2ODM3ODI2MWU4N2Q1ZmQwNzQ2MzhlZWFiZmQ3IiwiY29udGVudCI6IjY3YWYxNGRmYTQ4Mzg1ZTMzMjBhZTA0MjAwODBhOTQ4OTIzNjMzYzIxODIwMzIifZ=="}}},"Model36":{"type":"array","items":{"$ref":"#/definitions/Model35"}},"Model37":{"type":"object","properties":{"results":{"$ref":"#/definitions/Model36"}}},"KitWithoutSerial":{"type":"object","properties":{"id":{"type":"string","description":"Kit ID","example":"5d03c2b9-9a92-4745-83b1-2312599ca1c3","x-format":{"guid":true}},"sku":{"type":"string","description":"SKU of items as specified on kit","example":"SampleCorp Covid Antigen Kit"}}},"KitResponse":{"type":"array","items":{"$ref":"#/definitions/KitWithoutSerial"}},"Test":{"type":"object","description":"Test description","properties":{"id":{"type":"string","description":"Test ID","example":"5d03c2b9-9a92-4745-83b1-2312599ca1c3","x-format":{"guid":true}},"name":{"type":"string","description":"Result name","example":"FEVER CHECK"}}},"Model38":{"type":"object","properties":{"name":{"type":"string","example":"Creatinine"},"description":{"type":"string"}},"required":["name"]},"Panels":{"type":"array","description":"Essentially used for blood tests to ask for certain items to be run","items":{"$ref":"#/definitions/Model38"}},"return_shipment":{"type":"object","properties":{"carrier":{"type":"string","example":"usps"},"tracking_number":{"type":"string","example":"9400 1234 5678 9999 8765 00"}}},"Kit":{"type":"object","properties":{"id":{"type":"string","description":"Kit id","example":"f4fa75be-7112-4d0b-8f4d-97fe81bddfa8","x-format":{"guid":true}},"sku":{"type":"string","description":"Order stock-keeping unit","example":"Abbott Rapid Antigen Kit"},"serial":{"type":"string","description":"Serial number of the kit to associate with this order","example":"010081187701133017333333101H"},"return_shipment":{"$ref":"#/definitions/return_shipment"}}},"DOB":{"type":"object","description":"Patient date of birth","properties":{"day":{"type":"number","example":12},"month":{"type":"number","example":7},"year":{"type":"number","example":1997}}},"PatientResponse":{"type":"object","properties":{"first_name":{"type":"string","description":"Patient first name","example":"John"},"last_name":{"type":"string","description":"Patient last name","example":"Doe"},"dob":{"$ref":"#/definitions/DOB"},"gender":{"type":"string","description":"Patient gender","example":"male","enum":["male","female","unknown"]},"email":{"type":"string","description":"Patient contact email address","example":"some_mail@gmail.com","x-format":{"email":true}},"phone":{"type":"string","description":"Patient contact phone number","example":"430-304-3949"},"street1":{"type":"string","description":"Patient street 1","example":"1234 Main St"},"street2":{"type":"string","description":"Patient street 2","example":"Apt 9B"},"city":{"type":"string","description":"Patient city","example":"San Mateo"},"state":{"type":"string","description":"Patient state","example":"CA","x-constraint":{"length":2}},"zip":{"type":"string","description":"Location postal code","example":"60660","pattern":"^\\d{5}(-\\d{4})?$"}},"required":["first_name","last_name","gender","zip"]},"Address":{"type":"object","description":"Shipping Address Object","properties":{"name":{"type":"string","description":"Name","example":"Bill Lumbergh"},"street1":{"type":"string","description":"Shipping street 1","example":"1234 Main St"},"street2":{"type":"string","description":"Shipping street 2","example":"Apt 9B"},"city":{"type":"string","description":"Shipping city","example":"San Mateo"},"state":{"type":"string","description":"Shipping state","example":"CA","x-constraint":{"length":2}},"zip":{"type":"string","description":"Shipping postal code","example":"60660","pattern":"^\\d{5}(-\\d{4})?$"}},"required":["name","street1","city","zip"]},"Physician":{"type":"object","description":"Physician providing requisition","properties":{"first_name":{"type":"string","description":"Physician first name"},"last_name":{"type":"string","description":"Physician last name"},"npi":{"type":"string","description":"National provider identifier","example":"1234567890"},"facility":{"type":"string","description":"Physician Facility"},"address":{"type":"string","description":"Physician Address"},"city":{"type":"string","description":"Physician city","example":"San Mateo"},"state":{"type":"string","description":"Physician state","example":"CA"},"zip":{"type":"string","description":"Physician postal code","example":"60660","pattern":"^\\d{5}(-\\d{4})?$"},"phone":{"type":"string","description":"Physician contact phone number","example":"430-304-3949"},"credential":{"type":"string","description":"Physician credential","example":"MD"}},"required":["first_name","last_name","npi"]},"Insurance":{"type":"object","description":"Insurance information","properties":{"payer_name":{"type":"string","description":"Payer name","example":"Bruce Banner"},"group_id":{"type":"string","description":"Group ID on insurance card","example":"006726"},"member_id":{"type":"string","description":"Member ID on insurance card","example":"A9321328"},"bin":{"type":"string","description":"RX Bin on card, always 6 characters","example":"997928"}},"required":["payer_name","group_id","member_id","bin"]},"Media IDs":{"type":"array","description":"Used to request media files.","example":["5201130d-118e-439a-9343-b8d23dee4fe3"],"items":{"type":"string"}},"valueCoding":{"type":"object","properties":{"code":{"type":"string"},"display":{"type":"string"}}},"Model39":{"type":"object","properties":{"valueCoding":{"$ref":"#/definitions/valueCoding"},"valueBoolean":{"type":"boolean"},"valueString":{"type":"string"},"valueDate":{"type":"string"}}},"answer":{"type":"array","items":{"$ref":"#/definitions/Model39"}},"Model40":{"type":"object","properties":{"linkId":{"type":"string"},"answer":{"$ref":"#/definitions/answer"}}},"questionnaireResponse":{"type":"array","items":{"$ref":"#/definitions/Model40"}},"specimen":{"type":"object","properties":{"specimenCollectedDate":{"type":"string"},"questionnaireResponse":{"$ref":"#/definitions/questionnaireResponse"}}},"Order":{"type":"object","properties":{"id":{"type":"string","description":"Order ID","example":"e457d2e7-ebf4-403c-b2c1-a1970f16d011","x-format":{"guid":true}},"test":{"$ref":"#/definitions/Test"},"panels":{"$ref":"#/definitions/Panels"},"kit":{"$ref":"#/definitions/Kit"},"status":{"type":"string","description":"Order status","example":"PENDING"},"updated_at":{"type":"string","format":"date","description":"Update date","example":"2021-06-08T14:10:08.512Z"},"patient":{"$ref":"#/definitions/PatientResponse"},"address":{"$ref":"#/definitions/Address"},"physician":{"$ref":"#/definitions/Physician"},"insurance":{"$ref":"#/definitions/Insurance"},"fill_request_id":{"type":"string","description":"Fill request ID to associate with this order","example":"fill_request_bd6825a9d66a49b3d7a7"},"accession_id":{"type":"string"},"custom_data_1":{"type":"string","description":"A custom data string for external use. This can be any arbitrary UTF-8 string","example":"2012-01-26T13:51:50.417-07:00"},"custom_data_2":{"type":"string","description":"A custom data string for external use. This can be any arbitrary UTF-8 string","example":"2012-01-26T13:51:50.417-07:00"},"custom_data_3":{"type":"string","description":"A custom data string for external use. This can be any arbitrary UTF-8 string","example":"2012-01-26T13:51:50.417-07:00"},"media_ids":{"$ref":"#/definitions/Media%20IDs"},"specimen":{"$ref":"#/definitions/specimen"}},"required":["patient"]},"OrderArray":{"type":"array","items":{"$ref":"#/definitions/Order"}},"OrderResponse":{"type":"object","properties":{"nextPageToken":{"type":"string"},"results":{"$ref":"#/definitions/OrderArray"}}},"TestResponse":{"type":"array","items":{"$ref":"#/definitions/Test"}},"auto_refill_medications":{"type":"object","properties":{"auto_refill_id":{"type":"number","example":1},"auto_refill_date":{"type":"string","format":"date","example":"2026-08-26T21:27:02.651Z"},"auto_reminder":{"type":"boolean","example":true},"refills_remaining":{"type":"number","example":3}}},"scheduled_fill_address":{"type":"object","properties":{"name":{"type":"string","example":"address name"},"street1":{"type":"string","example":"street 1"},"street2":{"type":"string","example":"street 2"},"city":{"type":"string","example":"city"},"state":{"type":"string","example":"state"},"zip":{"type":"number","example":12345},"phone":{"type":"string","example":"((123)456-7890"},"email":{"type":"string","example":"email@email.com"},"country":{"type":"string"}}},"scheduled_fill_survey":{"type":"object","properties":{"patient_token":{"type":"string"},"url_token":{"type":"string"},"created_at":{"type":"string","format":"date"},"updated_at":{"type":"string","format":"date"},"asthma_breathing":{"type":"number"},"heart_disease":{"type":"number"},"arthritis":{"type":"number"},"lung_disorder":{"type":"number"},"bleeding_clotting_disorder":{"type":"number"},"neurological_chronic_headaches":{"type":"number"},"blood_transfusion":{"type":"number"},"psychiatric_disorder":{"type":"number"},"bowel_stomach":{"type":"number"},"pulmonary_embolism":{"type":"number"},"cancer":{"type":"number"},"stroke":{"type":"number"},"cholesterol_disorder":{"type":"number"},"seizure_epilepsy":{"type":"number"},"diabetes":{"type":"number"},"thyroid_disorder":{"type":"number"},"eye_disorder":{"type":"number"},"urinary_kidney_disorder":{"type":"number"},"conditions":{"type":"number"},"smoking_frequency":{"type":"number"},"drinking_frequency":{"type":"number"},"other_medications":{"type":"number"},"known_allergies":{"type":"number"},"pregnancy":{"type":"boolean"}}},"Model41":{"type":"object","properties":{"auto_refill_medications":{"$ref":"#/definitions/auto_refill_medications"},"scheduled_fill_address":{"$ref":"#/definitions/scheduled_fill_address"},"scheduled_fill_survey":{"$ref":"#/definitions/scheduled_fill_survey"}}},"Model42":{"type":"object","properties":{"timestamp":{"type":"string","format":"date","example":"2026-08-26T21:27:02.650Z"},"status":{"type":"string","example":"successful"},"details":{"$ref":"#/definitions/Model41"}}},"Model43":{"type":"object","properties":{"code":{"type":"number","example":200},"err":{"type":"boolean","example":false},"data":{"$ref":"#/definitions/Model42"}}},"insurance_tokens":{"type":"array","items":{"type":"string"}},"Model44":{"type":"object","properties":{"prescription_token":{"type":"string","example":"abc123"},"prescribed_written_name":{"type":"string","example":"Ibuprofen"},"quantity":{"type":"number","example":30},"copay_amount":{"type":"number","example":10},"fill_number":{"type":"number","example":1},"error_code":{"type":"string","example":"R009"},"rejection_reason":{"type":"string","example":"Not covered by insurance"},"additional_rejection_details":{"type":"string","example":"Med not covered by insurance"}}},"prescriptions":{"type":"array","items":{"$ref":"#/definitions/Model44"}},"Model45":{"type":"object","properties":{"created_at":{"type":"string","example":"2021-09-14T14:22:37.000Z"},"status":{"type":"string","example":"success"},"error_code":{"type":"string","example":"CR019"},"rejection_reason":{"type":"string","example":"Bad Insurance Details"},"additional_rejection_details":{"type":"string","example":"Missing/Invalid Group Number"},"triage_reason":{"type":"string","example":"Other Reason"},"additional_triage_details":{"type":"string","example":"Maint dose"},"patient_token":{"type":"string","example":"abc123"},"insurance_tokens":{"$ref":"#/definitions/insurance_tokens"},"prescriptions":{"$ref":"#/definitions/prescriptions"},"metadata":{"type":"string","example":"RX12343565"},"notes":{"type":"string","example":"Med notes"},"ship_to_state":{"type":"string","example":"CA","x-constraint":{"length":2}}}},"Model46":{"type":"object","properties":{"statusCode":{"type":"number","example":404},"error":{"type":"string","example":"Not Found"},"message":{"type":"string","example":"Unable to find Copay Request."}}},"Model47":{"type":"object","properties":{"status":{"type":"string","example":"pending"},"rejection_reason":{"type":"string"},"additional_rejection_details":{"type":"string"},"prescription_token":{"type":"string","example":"61323ceea1da89001d154adc"},"metadata":{"type":"string","example":"some metadata"},"created_at":{"type":"string","example":"2021-09-14T04:49:12.000Z"}}},"Model48":{"type":"object","properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string","example":"Unauthorized from viewing this direct transfer"}}},"Model49":{"type":"object","properties":{"statusCode":{"type":"number","example":404},"error":{"type":"string","example":"Not Found"},"message":{"type":"string","example":"Unable to find direct transfer."}}},"Model50":{"type":"object","properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string","example":"Unauthorized from viewing this fill request"}}},"Model51":{"type":"object","properties":{"statusCode":{"type":"number","example":404},"error":{"type":"string","example":"Not Found"},"message":{"type":"string","example":"Unable to find Fill Request."}}},"Model52":{"type":"object","properties":{"cardholder_id":{"type":"string","example":"A9321328"},"rx_group":{"type":"string","example":"006726"},"rx_bin":{"type":"string","example":"997928"},"pcn":{"type":"string","example":"AXA"}}},"Model53":{"type":"object","properties":{"statusCode":{"type":"number","example":404},"error":{"type":"string","example":"Not Found"},"message":{"type":"string","example":"Unable to find Insurance."}}},"Model54":{"type":"object","properties":{"id":{"type":"string","example":"059d52b6-b2b0-4bd1-97df-082b1e2196c1","pattern":"^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$"},"createdAt":{"type":"string","example":"2021-11-09T08:00:00.000Z"},"updatedAt":{"type":"string","example":"2021-11-09T08:00:00.000Z"},"title":{"type":"string","example":"Right ear"},"status":{"type":"string","example":"AVAILABLE"}}},"Model55":{"type":"object","properties":{"statusCode":{"type":"number","example":401},"error":{"type":"string","example":"Unauthorized"},"message":{"type":"string","example":"Invalid Credentials passed"}}},"Model56":{"type":"object","properties":{"statusCode":{"type":"number","example":404},"error":{"type":"string","example":"Not Found"},"message":{"type":"string","example":"Media with id not found"}}},"Model57":{"type":"object","properties":{"name":{"type":"string","x-convert":{"trim":true}},"company":{"type":"string","example":"Walmart Pharmacy","x-convert":{"trim":true}},"street1":{"type":"string","description":"Primary street where the company is located","example":"123 Some Lane","x-convert":{"trim":true}},"street2":{"type":"string","description":"Secondary street where the company is located","example":"Maggio Expressway","x-convert":{"trim":true}},"city":{"type":"string","description":"City where the company is located","example":"San Mateo","x-convert":{"trim":true}},"state":{"type":"string","description":"State where the company is located","example":"CA","x-convert":{"trim":true}},"zip":{"type":"string","description":"Postal code where the company is located","example":"94538","pattern":"^\\d{5}(-\\d{4})?$"},"country":{"type":"string","description":"Country where the company is located","example":"US","default":"US","x-convert":{"trim":true}},"email":{"type":"string","description":"Company email for email messaging ","example":"some_email@gmail.com","x-format":{"email":true},"x-convert":{"trim":true}},"phone":{"type":"string","x-convert":{"trim":true}}},"required":["name","street1","city","state","zip"]},"Model58":{"type":"object","properties":{"guardian":{"type":"string"},"species":{"type":"string","description":"Pet type","example":"Dog"},"first_name":{"type":"string","description":"Legal patient first name","example":"Lola"},"last_name":{"type":"string","description":"Legal patient last name","example":"Martin"},"dob":{"type":"string","description":"Legal patient date of birth, YYYYMMDD format","example":"20180401"},"gender":{"type":"string","description":"Assigned gender at birth: male or female","example":"male"},"address":{"$ref":"#/definitions/Model57"},"communications_opt_in":{"type":"boolean"},"patient_token":{"type":"string","example":"a35be240f1f5da6b"},"mbi":{"type":"string","description":"Medicare Beneficiary ID","example":"1EG4TE5MK73"}}},"Model59":{"type":"object","description":"Prescriber's address details","properties":{"name":{"type":"string","description":"Clinic name that the prescriber works at","example":"Test clinic"},"street1":{"type":"string","description":"Street 1 of prescriber’s working address","example":"123 Some Lane"},"street2":{"type":"string","description":"Street 2 of prescriber’s working address","example":"Apt. 123"},"city":{"type":"string","description":"City of prescriber’s working address","example":"Los Angeles"},"state":{"type":"string","description":"State of prescriber’s working address. Two-letter state abbreviation","example":"CA"},"zip":{"type":"string","description":"Zip code of prescriber’s working address","example":"01000"},"country":{"type":"string","description":"US (default)","example":"US"},"phone":{"type":"string","description":"Prescriber’s phone number","example":"4303043949"},"email":{"type":"string","description":"Prescriber’s email","example":"hulkout@hulk.com"},"fax":{"type":"string","description":"Prescriber’s fax number","example":"430304394"}}},"Model60":{"type":"object","properties":{"prescriber_type":{"type":"string","example":"OD"},"first_name":{"type":"string","description":"Prescriber’s first name","example":"Bruce"},"last_name":{"type":"string","description":"Prescriber’s last name","example":"Banner"},"dea":{"type":"string","description":"Prescriber’s DEA license ID","example":"BI7884668"},"npi":{"type":"string","description":"Prescriber’s National Provider Identifier","example":"1497742761"},"address":{"$ref":"#/definitions/Model59"},"prescriber_token":{"type":"string","example":"b6aba8097c2059820fb3"}},"required":["first_name","last_name"]},"Model61":{"type":"object","properties":{"statusCode":{"type":"number","example":404},"error":{"type":"string","example":"Not Found"},"message":{"type":"string","example":"Unable to find Prescriber."}}},"formulary":{"type":"object","description":"Formulary details if available"},"Prescriber Address details":{"type":"object","properties":{"id":{"type":"number","example":2067659},"created_at":{"type":"string","format":"date","example":"2021-06-29T01:56:26.000Z"},"updated_at":{"type":"string","format":"date","example":"2021-06-29T01:56:26.000Z"},"name":{"type":"string","description":"Name of prescriber","example":"Dr. Doctor Doctor"},"company":{"type":"string","description":"Clinic name","example":"True Clinic"},"street1":{"type":"string","description":"Street 1 of prescribing clinic address","example":"3121 Diablo Ave"},"street2":{"type":"string","description":"Street 2 of prescribing clinic address (if applicable)","example":"123 Some Lane"},"city":{"type":"string","description":"City of prescribing clinic address","example":"Hayward"},"state":{"type":"string","description":"State of prescribing clinic address","example":"CA"},"zip":{"type":"string","description":"Zip code of prescribing clinic address","example":"94545"},"country":{"type":"string","description":"Country of prescribing clinic address","example":"US"},"phone":{"type":"string","description":"Prescriber/clinic phone contact information","example":"8881112222"},"email":{"type":"string","description":"Prescriber/clinic email contact information","example":"truepill@truepill.com"},"fax":{"type":"string","description":"Prescriber/clinic fax contact information","example":"34276634527"}}},"icd_codes":{"type":"object"},"prescription":{"type":"object","properties":{"prescription_token":{"type":"string","description":"Token to reference the prescription","example":"7af31c1d350d"},"fillable":{"type":"boolean","description":"Is this prescription fillable","example":true},"is_refill":{"type":"number","description":"Is prescription a refill or new fill","example":0},"rx_number":{"type":"string","description":"Rx number of prescription","example":"1111111"},"prescribed_drug_strength":{"type":"string","description":"Drug strength prescribed","example":"20 mg"},"prescribed_written_name":{"type":"string","description":"Name of medication prescribed as written","example":"Cialis 20 Mg Tablet"},"prescribed_quantity":{"type":"number","description":"Quantity of prescribed medication","example":10},"prescribed_quantity_unit":{"type":"string","description":"Unit for the prescribed medication quantity","example":"tablets"},"prescribed_ndc":{"type":"string","description":"NDC of prescribed medication","example":"00002446430"},"medication_sig":{"type":"string","description":"Instructions for taking medication","example":"Take one tablet by mouth 45-60 minutes prior to sexual activity. Take no more than once per day."},"prescriber":{"type":"string","description":"Name of prescriber","example":"Dr. Doctor Doctor"},"prescriber_npi":{"type":"string","description":"NPI of prescriber","example":"1111111111"},"date_written":{"type":"string","format":"date","description":"When the prescription was written","example":"2021-06-30T00:00:00.000Z"},"days_supply":{"type":"string","description":"Number of days the medication covers","example":"30"},"number_of_refills_allowed":{"type":"number","description":"Number of refills allowed for prescription","example":2},"refills_remaining":{"type":"number","description":"Number of refills on this prescription","example":2},"quantity_remaining":{"type":"number","description":"Quantity of doses remaining on prescription","example":30},"current_rx_status_text":{"type":"string","description":"Current status of the prescription","example":"Active"},"rx_link":{"type":"string","description":"URL link to the prescription details","example":"rxl_cf1b5ce299ee432192b681d"},"medication_id":{"type":"string","description":"Unique medication ID","example":"ec09a90"},"prescribed_brand_name":{"type":"string","description":"Name of medication prescribed","example":"Cialis"},"expiration_date_utc":{"type":"string","format":"date","description":"When the prescription will expire","example":"2022-06-30T07:00:00.000Z"},"expiration_date":{"type":"string","format":"date","description":"When the prescription will expire","example":"2022-06-30T07:00:00.000Z"},"medication_name":{"type":"string","description":"Name of the prescribed medication","example":"Cialis"},"prescribed_generic_name":{"type":"string","description":"Name of generic medication prescribed","example":"tadalafil 20 mg tablet"},"formulary":{"$ref":"#/definitions/formulary"},"origin":{"type":"string","description":"Original source of prescription","example":"Electronic"},"prescriber_order_number":{"type":"string","description":"Prescriber order number of escript","example":"2222222"},"date_filled_utc":{"type":"string","format":"date","description":"Date and time when the prescription was filled, in UTC","example":"2021-06-30T00:00:00.000Z"},"last_filled_date":{"type":"string","format":"date","description":"When prescription was last filled","example":"2021-06-30T00:00:00.000Z"},"original_prescribed_ndc":{"type":"string","description":"Original National Drug Code if different from prescribed","example":"00002446430"},"prescriber_address":{"$ref":"#/definitions/Prescriber%20Address%20details"},"notes":{"type":"string","description":"Prescription notes associated with Rx","example":"A note"},"icd_codes":{"$ref":"#/definitions/icd_codes"},"is_daw":{"type":"boolean","description":"Is prescription dispense-as-written","example":false},"dea_schedule":{"type":"number","description":"Controlled Substance Act drug schedule","example":0},"direct_transfer_token":{"type":"string","example":"b5338d53e5"},"originator":{"type":"string","example":"surescripts"}},"required":["prescription_token","fillable","is_refill","rx_number","prescribed_drug_strength","prescribed_written_name","prescribed_quantity","prescribed_quantity_unit","prescribed_ndc","medication_sig","prescriber","prescriber_npi","date_written","days_supply","number_of_refills_allowed","refills_remaining","quantity_remaining","current_rx_status_text","rx_link"]},"Model62":{"type":"object","properties":{"prescription":{"$ref":"#/definitions/prescription"}}},"Model63":{"type":"object","properties":{"statusCode":{"type":"number","example":404},"error":{"type":"string","example":"Not Found"},"message":{"type":"string","example":"Unable to find Prescription."}}},"Model64":{"type":"object","properties":{"url_token":{"type":"string","example":"0a5211b5f1db"},"prescribed_written_name":{"type":"string","example":"Lisinopril 5 mg Oral Tablet"},"prescribed_generic_name":{"type":"string","example":"Generic 10mg tablet"},"last_filled_date":{"type":"string","example":"2021-02-28T22:34:50.000Z"},"prescribed_quantity":{"type":"number","example":60},"prescriber":{"type":"string","example":"Dr. Nick Rivera"},"num_refills_remaining":{"type":"number","example":0},"medication_name":{"type":"string","example":"Generic 10mg tablet"},"prescription_date":{"type":"string"},"days_supply":{"type":"string","example":"30"},"num_refills_filled":{"type":"string","example":"0"}}},"Model65":{"type":"object","properties":{"url_token":{"type":"string","example":"e6014ac9da658c1c"},"medication_name":{"type":"string","example":"duloxetine 30mg capsule"},"rejection_reason":{"type":"string"},"rejection_reason_other":{"type":"string"},"prescription":{"$ref":"#/definitions/Model64"}}},"Model66":{"type":"array","items":{"$ref":"#/definitions/Model65"}},"Model67":{"type":"object","properties":{"created_at":{"type":"string","example":"2021-02-28T22:34:50.000Z"},"url_token":{"type":"string","example":"e4bce6d1e2"},"status":{"type":"string","example":"completed"},"cancel_reason":{"type":"string"},"cancel_reason_other":{"type":"string"},"pharmacy_name":{"type":"string","example":"Test"},"pharmacy_phone":{"type":"string","example":"+1 (111) 222-3333"},"prescriber_name":{"type":"string"},"prescriber_phone":{"type":"string"},"notes":{"type":"string","example":"A note"},"metadata":{"type":"string","example":"m3t4"},"reject_reason":{"type":"string"},"reject_reason_other":{"type":"string"},"transfer_medications":{"$ref":"#/definitions/Model66"}}},"Model68":{"type":"array","items":{"$ref":"#/definitions/Model67"}},"Model69":{"type":"object","properties":{"statusCode":{"type":"number","example":404},"error":{"type":"string","example":"Not Found"},"message":{"type":"string","example":"Transfer not found."}}},"Model70":{"type":"object","properties":{"medication_name":{"type":"string","example":"Brand Label 10mg Tablet"},"prescriber":{"type":"string","example":"Dr. P. Scribe"},"prescription_token":{"type":"string","example":"bac3aa39d938"},"patient_token":{"type":"string","example":"a842f3e8112c916d"},"patient_token_duplicates":{"$ref":"#/definitions/insurance_tokens"},"merged_patients":{"$ref":"#/definitions/insurance_tokens"},"location":{"type":"string","example":"hayward"},"rx_link":{"type":"string","example":"rxl_750b5e71eb4261c1f73066ee"}}},"Model71":{"type":"object","properties":{"timestamp":{"type":"number","example":1631593381},"callback_type":{"type":"string","example":"NOTIFY_RX"},"details":{"$ref":"#/definitions/Model70"}}},"Model72":{"type":"object","properties":{"payload":{"$ref":"#/definitions/Model71"},"delivery_data":{"$ref":"#/definitions/delivery_data"},"next_page_token":{"type":"string","example":"eyJpdiI6IjRiNDc2ODM3ODI2MWU4N2Q1ZmQwNzQ2MzhlZWFiZmQ3IiwiY29udGVudCI6IjY3YWYxNGRmYTQ4Mzg1ZTMzMjBhZTA0MjAwODBhOTQ4OTIzNjMzYzIxODIwMzIifZ=="}}},"Model73":{"type":"array","items":{"$ref":"#/definitions/Model72"}},"Model74":{"type":"object","properties":{"results":{"$ref":"#/definitions/Model73"}}},"Model75":{"type":"object","properties":{"id":{"type":"string","example":"059d52b6-b2b0-4bd1-97df-082b1e2196c1","pattern":"^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$"},"name":{"type":"string","example":"Right ear"},"status":{"type":"string","example":"AVAILABLE","enum":["REVIEWING","AVAILABLE","QUARANTINE","AWAITING_UPLOADING"]},"url":{"type":"string","description":"This link is for read file using GET. Lifetime 24h.","example":"https://storage.googleapis.com/1512a193-065b-4360-bd1f-48b8a260f140?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=upload-scanner%40serviceaccount.com%2F20211126%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20211126T130011Z&X-Goog-Expires=900&X-Goog-SignedHeaders=content-type%3Bhost&X-Goog-Signature=123"}},"required":["id","name","status","url"]},"Model76":{"type":"object","properties":{"id":{"type":"string","example":"614e586cc9c226101c96007d"},"name":{"type":"string","example":"My Consult Program"}}},"payor":{"type":"object","properties":{"id":{"type":"string","description":"Insurance plan name","example":"LIC’s NEW MONEY BACK PLAN - 25 YEARS"},"name":{"type":"string","description":"Payor name","example":"John Doe"},"street1":{"type":"string","description":"Payor streen","example":"Jackson road"},"city":{"type":"string","description":"Payor city","example":"Boston"},"state":{"type":"string","description":"US state","example":"CA","x-constraint":{"length":2}},"country":{"type":"string","description":"Payor country","example":"US","x-constraint":{"length":2}},"zip":{"type":"string","description":"Zip code","example":"94538","pattern":"^\\d{5}(-\\d{4})?$"},"phone":{"type":"string","description":"Insurance’s phone number","example":"430-304-3949"}},"required":["zip"]},"Subscriber":{"type":"object","description":"Subscriber information","properties":{"first_name":{"type":"string","description":"Subscriber first name","example":"John"},"last_name":{"type":"string","description":"Subscriber last name","example":"Doe"},"dob":{"type":"string","description":"Date of birth","example":"2000-01-01","pattern":"^((1|2)\\d{3}-[01][0-9](?<!00)-[0-3][0-9](?<!00)$)"},"patient_relationship":{"type":"string","enum":["ORGAN_DONOR","CADAVER_DONOR","LIFE_PARTNER","OTHER","SELF","SPOUSE","CHILD","EMPLOYEE","UNKNOWN"]},"street1":{"type":"string","description":"Subscriber streen","example":"Jackson road"},"city":{"type":"string","description":"Subscriber city","example":"Boston"},"state":{"type":"string","description":"Subscriber state","example":"US","x-constraint":{"length":2}},"zip":{"type":"string","description":"Zip code","example":"94538","pattern":"^\\d{5}(-\\d{4})?$"},"country":{"type":"string","description":"Subscriber country","example":"US","x-constraint":{"length":2}}},"required":["zip"]},"Model77":{"type":"object","properties":{"id":{"type":"string","example":"62adf0a45e7022537790f5c8"},"bin":{"type":"string","description":"Bank identification number of insurance card","example":"997928"},"cardholder_id":{"type":"string","description":"Cardholder ID","example":"112233445566"},"medicare_beneficiary_id":{"type":"string","description":"Medicare Beneficiary Id","example":"1EG4-TE5-MK73"},"group":{"type":"string","description":"Insurance group","example":"RX881A"},"plan_id":{"type":"string","description":"Insurance plan ID","example":"512N284V02"},"plan_name":{"type":"string","description":"Insurance plan name","example":"LIC’s NEW MONEY BACK PLAN - 25 YEARS"},"payor":{"$ref":"#/definitions/payor"},"subscriber":{"$ref":"#/definitions/Subscriber"}}},"insurances":{"type":"array","items":{"$ref":"#/definitions/Model77"}},"appointment":{"type":"object","properties":{"scheduled":{"type":"boolean","example":false}}},"panels":{"type":"array","items":{"type":"string","example":"Lipids"}},"Model78":{"type":"array","items":{"$ref":"#/definitions/icd_codes"}},"Model79":{"type":"object","properties":{"id":{"type":"string","example":"61ae6866b6c29c001d3c7eag"},"order_id":{"type":"string","example":"8f4507a3-b3b6-4348-b1c3-91f8a34e8c78"},"name":{"type":"string","example":"BLOODTEST"},"panels":{"$ref":"#/definitions/panels"},"kit_serial":{"type":"string","example":"8f4507a3-b3b6-4348-b1c3-91f8a66e8c78"},"status":{"type":"string","example":"ACCEPTED"},"active_date":{"type":"string","example":"2021-12-06"},"created_at":{"type":"string","example":"2021-12-06T19:45:42.334Z"},"results":{"$ref":"#/definitions/Model78"}}},"Model80":{"type":"array","items":{"$ref":"#/definitions/Model79"}},"Model81":{"type":"object","properties":{"street1":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip":{"type":"string"}},"required":["street1","city","state","zip"]},"pharmacy":{"type":"object","properties":{"name":{"type":"string"},"address":{"$ref":"#/definitions/Model81"},"phone":{"type":"string"},"fax":{"type":"string"},"npi":{"type":"string"}},"required":["name"]},"Model82":{"type":"object","properties":{"id":{"type":"string","example":"62ae6fe8ea635e79f047e89e"},"ndc":{"type":"string","example":"00469260190"},"name":{"type":"string","example":"PFIZER 10"},"strength":{"type":"string","example":"1"},"refills":{"type":"number","example":0},"days_supply":{"type":"number","example":3},"sig":{"type":"string","example":"Take 500 mg twice daily for 5 days."},"quantity":{"type":"number","example":20},"created_at":{"type":"string","example":"2021-12-07T14:30:00.162Z"},"active_date":{"type":"string","example":"2021-12-07"},"pharmacy":{"$ref":"#/definitions/pharmacy"}}},"Model83":{"type":"array","items":{"$ref":"#/definitions/Model82"}},"notificationSettings":{"type":"object","properties":{"optOutSms":{"type":"boolean"},"optOutEmail":{"type":"boolean"},"optOutPhone":{"type":"boolean"}}},"Model84":{"type":"object","properties":{"npi":{"type":"number","example":1416394953},"first_name":{"type":"string","example":"JOHN"},"last_name":{"type":"string","example":"DOE"},"title":{"type":"string","example":"MD"}}},"current_medications":{"type":"object","properties":{"medications":{"$ref":"#/definitions/insurance_tokens"}}},"patient":{"type":"object","properties":{"id":{"type":"string"},"patient_token":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"current_medications":{"$ref":"#/definitions/current_medications"},"notificationSettings":{"$ref":"#/definitions/notificationSettings"},"demographicChanges":{"$ref":"#/definitions/icd_codes"},"phone":{"type":"string"},"email":{"type":"string"},"allergies":{"type":"string"},"conditions":{"type":"string"}}},"shipping_address":{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":"string"},"street1":{"type":"string"},"street2":{"type":"string"},"state":{"type":"string"},"city":{"type":"string"},"zip":{"type":"string","example":"13812"}}},"Model85":{"type":"object","properties":{"code":{"type":"string"},"description":{"type":"string"},"version":{"type":"string"}}},"diagnoses":{"type":"array","items":{"$ref":"#/definitions/Model85"}},"Model86":{"type":"object","properties":{"options":{"$ref":"#/definitions/insurance_tokens"},"key":{"type":"string"},"value":{"type":"string"}}},"provider_answers":{"type":"array","items":{"$ref":"#/definitions/Model86"}},"Model87":{"type":"object","properties":{"id":{"type":"string","example":"62adf0a45e7022537790f5c8"},"completed_at":{"type":"string","example":"2021-12-06T19:45:42.568Z"},"status":{"type":"string","example":"REVIEW"},"metadata":{"type":"string","example":"NA_"},"program":{"$ref":"#/definitions/Model76"},"insurances":{"$ref":"#/definitions/insurances"},"appointment":{"$ref":"#/definitions/appointment"},"lab_tests":{"$ref":"#/definitions/Model80"},"prescriptions":{"$ref":"#/definitions/Model83"},"notificationSettings":{"$ref":"#/definitions/notificationSettings"},"provider":{"$ref":"#/definitions/Model84"},"patient_token":{"type":"string","example":"5f7175be123aedb5"},"patient":{"$ref":"#/definitions/patient"},"shipping_address":{"$ref":"#/definitions/shipping_address"},"treatment_identifier":{"$ref":"#/definitions/insurance_tokens"},"diagnoses":{"$ref":"#/definitions/diagnoses"},"notes_to_patient":{"type":"string"},"provider_answers":{"$ref":"#/definitions/provider_answers"}}},"Model88":{"type":"object","properties":{"key":{"type":"string","example":"consult_id"},"message":{"type":"string","example":"length must be 24 characters long"}}},"Model89":{"type":"array","items":{"$ref":"#/definitions/Model88"}},"Model90":{"type":"object","properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"validation_errors":{"$ref":"#/definitions/Model89"}}},"Model91":{"type":"object","properties":{"statusCode":{"type":"number","example":404},"error":{"type":"string","example":"Not Found"},"message":{"type":"string","example":"61ae5a2fb6c29c001d3c7e91 not found"}}},"Model92":{"type":"array","example":[{"id":1,"prescription_token":"token","status":"active"}],"items":{"type":"string"}},"Model93":{"type":"object","properties":{"auto_refill_subscriptions":{"$ref":"#/definitions/Model92"},"nextPageToken":{"type":"string","example":"nextPageTokenString"},"total":{"type":"number","example":1}}},"Model94":{"type":"object","properties":{"timestamp":{"type":"string","format":"date","example":"2021-05-20T00:00:00.000Z"},"status":{"type":"string","example":"successful"},"details":{"$ref":"#/definitions/Model93"}}},"Model95":{"type":"object","properties":{"code":{"type":"number","example":200},"err":{"type":"boolean","example":false},"data":{"$ref":"#/definitions/Model94"}}},"Model96":{"type":"object","properties":{"metadata":{"type":"string","example":"my_identifier"},"message":{"type":"string","example":"Direct Transfer Accepted."},"patient_token":{"type":"string","example":"221e6f904c32faac"},"direct_transfer_token":{"type":"string","example":"b5338d53e5"},"prescription_token":{"type":"string","example":"622b9f344fa7"},"rx_link":{"type":"string","example":"rxl_31ad83984d0404f7109f0992"}}},"Model97":{"type":"object","properties":{"timestamp":{"type":"number","example":1631593381},"callback_type":{"type":"string","example":"DIRECT_TRANSFER"},"details":{"$ref":"#/definitions/Model96"}}},"Model98":{"type":"object","properties":{"payload":{"$ref":"#/definitions/Model97"},"delivery_data":{"$ref":"#/definitions/delivery_data"}}},"Model99":{"type":"array","items":{"$ref":"#/definitions/Model98"}},"Model100":{"type":"object","properties":{"results":{"$ref":"#/definitions/Model99"}}},"Model101":{"type":"object","properties":{"payload":{"$ref":"#/definitions/payload"},"delivery_data":{"$ref":"#/definitions/delivery_data"}}},"Model102":{"type":"array","items":{"$ref":"#/definitions/Model101"}},"Model103":{"type":"object","properties":{"results":{"$ref":"#/definitions/Model102"}}},"Prescription":{"type":"object","properties":{"date_written":{"type":"string","format":"date","description":"When the prescribed was written","example":"2021-09-11T13:09:27.000Z"},"days_supply":{"type":"string","description":"Days supply","example":"90"},"is_refill":{"type":"number","description":"Is prescription a refill or new fill?","example":0},"last_filled_date":{"type":"string","format":"date","description":"When prescription was last filled (null if not)","example":"2022-08-03T13:09:27.000Z"},"expiration_date_utc":{"type":"string","format":"date","description":"When the prescription will expire","example":"2022-09-11T13:09:27.000Z"},"medication_sig":{"type":"string","description":"Instructions for taking medication","example":"Use as directed for 90 days."},"number_of_refills_allowed":{"type":"string","description":"Number of refills allowed for prescription","example":2},"prescribed_brand_name":{"type":"string","description":"Name of medication prescribed","example":"Viagra"},"prescribed_drug_strength":{"type":"string","description":"Drug strength prescribed","example":"10 mg"},"prescribed_generic_name":{"type":"string","description":"Name of generic medication prescribed","example":"Generic 10mg tablet"},"prescribed_ndc":{"type":"string","description":"NDC of prescribed medication","example":"51580000807","pattern":"^[0-9]{4,5}-[0-9]{3,4}-[0-9]{1,3}$"},"prescribed_quantity":{"type":"string","description":"Quantity of prescribed medication","example":1},"prescribed_written_name":{"type":"string","description":"Name of medication prescribed as written","example":"Sildenafil"},"prescriber":{"type":"string","description":"Name of prescriber","example":"Molly"},"prescriber_npi":{"type":"string","description":"NPI of prescriber","example":"1111111111"},"quantity_remaining":{"type":"string","description":"Quantity of doses remaining on prescription","example":84},"refills_remaining":{"type":"string","description":"Number of refills on this prescription","example":2},"rx_number":{"type":"string","description":"Rx number of prescription","example":"111110000"},"origin":{"type":"string","description":"Original source of prescription","example":"Electronic"},"prescriber_order_number":{"type":"string","description":"Prescriber order number of escript","example":"2222222"},"original_prescribed_ndc":{"type":"string","description":"NDC of prescribed medication as originally written on eScript (if applicable)","example":"51580000807","pattern":"^[0-9]{4,5}-[0-9]{3,4}-[0-9]{1,3}$"},"date_filled_utc":{"type":"string","format":"date","description":"When prescription was last filled (null if not)","example":"2021-10-13T10:13:42Z"},"prescription_token":{"type":"string","description":"Token to reference the prescription","example":"deb071563ead"},"medication_name":{"type":"string","description":"Medication name","example":"Sildenafil"},"fillable":{"type":"boolean","description":"Is this prescription fillable (has not expired, been transferred-out, etc.)","example":true}}},"Prescriptions":{"type":"array","items":{"$ref":"#/definitions/Prescription"}},"Model104":{"type":"object","properties":{"patient_token":{"type":"string","example":"55d8131974c7af33"},"prescriptions":{"$ref":"#/definitions/Prescriptions"}}},"Model105":{"type":"object","properties":{"weight_value":{"type":"number","example":1.01},"weight_unit":{"type":"string","example":"oz"},"created_at":{"type":"string","format":"date","example":"2021-09-15T02:22:21.000Z"},"updated_at":{"type":"string","format":"date","example":"2021-09-15T02:22:21.000Z"},"asthma_breathing":{"type":"boolean","description":"Whether the patient has asthma or breathing problems"},"heart_disease":{"type":"boolean","description":"Whether the patient has heart disease"},"arthritis":{"type":"boolean","description":"Whether the patient has arthritis"},"lung_disorder":{"type":"boolean","description":"Whether the patient has a lung disorder"},"bleeding_clotting_disorder":{"type":"boolean","description":"Whether the patient has a bleeding or clotting disorder"},"neurological_chronic_headaches":{"type":"boolean","description":"Whether the patient has neurological disorders or chronic headaches"},"blood_transfusion":{"type":"boolean","description":"Whether the patient has had a blood transfusion"},"psychiatric_disorder":{"type":"boolean","description":"Whether the patient has a psychiatric disorder"},"bowel_stomach":{"type":"boolean","description":"Whether the patient has bowel or stomach problems"},"pulmonary_embolism":{"type":"boolean","description":"Whether the patient has had a pulmonary embolism"},"cancer":{"type":"boolean","description":"Whether the patient has had cancer"},"stroke":{"type":"boolean","description":"Whether the patient has had a stroke"},"cholesterol_disorder":{"type":"boolean","description":"Whether the patient has a cholesterol disorder"},"seizure_epilepsy":{"type":"boolean","description":"Whether the patient has seizures or epilepsy"},"diabetes":{"type":"boolean","description":"Whether the patient has diabetes"},"thyroid_disorder":{"type":"boolean","description":"Whether the patient has a thyroid disorder"},"eye_disorder":{"type":"boolean","description":"Whether the patient has an eye disorder"},"urinary_kidney_disorder":{"type":"boolean","description":"Whether the patient has a urinary or kidney disorder"},"conditions":{"type":"string"},"smoking_frequency":{"type":"string","description":"The frequency of smoking, if any"},"drinking_frequency":{"type":"string","description":"The frequency of drinking, if any"},"other_medications":{"type":"string"},"known_allergies":{"type":"boolean","description":"Any allergies this patient has"},"url_token":{"type":"string","example":"837ab5"},"pregnancy":{"type":"boolean","description":"Whether the patient is pregnant or not"}}},"Model106":{"type":"object","properties":{"xml":{"type":"string"}}},"GetOrderRejectionResponse":{"type":"object","properties":{"reason":{"type":"string","description":"Reason"},"rejected_at":{"type":"string","format":"date","description":"Reason where was rejected","example":"2011-10-05T14:48:00.000Z"},"fixable":{"type":"boolean","description":"Could be fixeable or not","example":false},"panel_name":{"type":"string"}},"required":["rejected_at"]},"OrderResult":{"type":"object","properties":{"name":{"type":"string","description":"Result name","example":"FEVER CHECK"},"quantitative_value":{"type":"string","example":"100.4"},"qualitative_value":{"type":"string","example":"POSITIVE"},"measured_at":{"type":"string","format":"date","description":"Date of receipt of the result ","example":"2011-10-05T14:48:00.000Z"},"panel_name":{"type":"string"},"severity":{"type":"string","description":"Severity of drug warning for this patient","example":"moderate"}},"required":["name","measured_at"]},"OrderResultResponse":{"type":"array","items":{"$ref":"#/definitions/OrderResult"}},"Model107":{"type":"object","properties":{"name":{"type":"string","description":"Result name","example":"FEVER CHECK"},"quantitative_value":{"type":"string","example":"100.4"},"qualitative_value":{"type":"string","example":"POSITIVE"},"measured_at":{"type":"string","format":"date","description":"Date of receipt of the result ","example":"2011-10-05T14:48:00.000Z"},"panel_name":{"type":"string"},"severity":{"type":"string","description":"Severity of drug warning for this patient","example":"moderate"},"media_ids":{"$ref":"#/definitions/Media IDs"}},"required":["name","measured_at"]},"OrderResultResponseV2":{"type":"array","items":{"$ref":"#/definitions/Model107"}},"Model108":{"type":"object","properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string","example":"This file cannot be downloaded"}}},"Model109":{"type":"object","properties":{"statusCode":{"type":"number","example":422},"error":{"type":"string","example":"Unprocessable Entity"},"message":{"type":"string","example":"File with this name already exists"}}},"insurance":{"type":"object","properties":{"group_number":{"type":"string","description":"Insurance group number associated to claim","example":"GRP"},"bin":{"type":"string","description":"Insurance BIN number associated to claim","example":"321654"},"pcn":{"type":"string","description":"Insurance PCN associated to claim","example":"321654"},"cardholder_id":{"type":"string","description":"Member ID number on insurance card","example":"321654"}}},"Model110":{"type":"object","properties":{"patient_copay_amount":{"type":"number","description":"Expected patient copay amount from claim if adjudication is successful","example":10},"transaction_code":{"type":"string","description":"Adjudication transaction type","example":"B2"},"claim_type":{"type":"string","description":"Insurance claim type","example":"Reversal"},"transmission_date":{"type":"string","format":"date","example":"2021-09-15T03:07:01.000Z"},"insurance":{"$ref":"#/definitions/insurance"},"payor":{"type":"string","description":"Payor's name","example":"Health Partners"},"payor_adjudication_amount":{"type":"number","description":"Payor adjudication amount","example":0}}},"Model111":{"type":"array","items":{"$ref":"#/definitions/Model110"}},"Model112":{"type":"object","properties":{"statusCode":{"type":"number","example":404},"error":{"type":"string","example":"Not Found"},"message":{"type":"string","example":"Unable to find Rx."}}},"POST ScheduledFill Request Payload":{"type":"object","properties":{"submit_on":{"type":"string","format":"date","example":"2026-08-26T21:27:03.315Z"},"original_fill_request_token":{"type":"string","example":"fill_request_token_abc123"},"fill_request_payload":{"$ref":"#/definitions/icd_codes"}},"required":["submit_on","original_fill_request_token"]},"Model113":{"type":"object","properties":{"id":{"type":"string","example":"f716ba1c-bd4b-43c7-9395-84255cd943cd","x-format":{"guid":true}},"submit_on":{"type":"string","format":"date","example":"2022-01-01T00:00:00.000Z"},"original_fill_request_token":{"type":"string","example":"fill_request_token_abc123"}},"required":["id","submit_on","original_fill_request_token"]},"Model114":{"type":"object","properties":{"sku":{"type":"string","description":"SKU of the OTC product to cancel"}},"required":["sku"]},"Model115":{"type":"array","description":"Array of OTC products to cancel. If provided, only these OTC products will be cancelled. If all OTC products on the order are cancelled, the entire order will be cancelled.","items":{"$ref":"#/definitions/Model114"}},"Model116":{"type":"object","properties":{"prescription_token":{"type":"string","description":"Prescription token to cancel"}},"required":["prescription_token"]},"Model117":{"type":"array","description":"Array of medications to cancel. If provided, only these medications will be cancelled. If all medications on the order are cancelled, the entire order will be cancelled.","items":{"$ref":"#/definitions/Model116"}},"Model118":{"type":"object","properties":{"request_id":{"type":"string","description":"Request id","example":"fill_request_5c4b21b9aecaea155d67"},"otc_products":{"$ref":"#/definitions/Model115"},"medications":{"$ref":"#/definitions/Model117"}},"required":["request_id"]},"Model119":{"type":"object","properties":{"prescription_token":{"type":"string","example":"e61e324f9018"}}},"cancelled_medications":{"type":"array","items":{"$ref":"#/definitions/Model119"}},"Model120":{"type":"object","properties":{"prescription_token":{"type":"string","example":"e61e324f9018"},"reason":{"type":"string","example":"Medication already cancelled or cancellation failed"}}},"failed_medications":{"type":"array","items":{"$ref":"#/definitions/Model120"}},"Model121":{"type":"object","properties":{"sku":{"type":"string","example":"SKU-123-456"}}},"cancelled_otc_products":{"type":"array","items":{"$ref":"#/definitions/Model121"}},"Model122":{"type":"object","properties":{"sku":{"type":"string","example":"SKU-123-456"},"reason":{"type":"string","example":"OTC Product already cancelled or cancellation failed"}}},"failed_otc_products":{"type":"array","items":{"$ref":"#/definitions/Model122"}},"Model123":{"type":"object","properties":{"code":{"type":"string","example":"03"},"description":{"type":"string","example":"Fill Request Cancelled by Customer Request"},"message":{"type":"string","example":"Accepted: Fill Request fill_request_5c4b21b9aecaea155d67 has been cancelled."},"cancelled_medications":{"$ref":"#/definitions/cancelled_medications"},"failed_medications":{"$ref":"#/definitions/failed_medications"},"cancelled_otc_products":{"$ref":"#/definitions/cancelled_otc_products"},"failed_otc_products":{"$ref":"#/definitions/failed_otc_products"}}},"Model124":{"type":"object","properties":{"request_id":{"type":"string","example":"cancel_request_a11d9497b96e188365e41fecadb947df"},"timestamp":{"type":"integer","example":1631571795.423},"status":{"type":"string","example":"success"},"details":{"$ref":"#/definitions/Model123"}}},"Model125":{"type":"object","properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"string","example":"There was an error cancelling this request (fill_request_5c4b21b9aecaea155d67), either you are not the owner of the request, or have already cancelled the request. Please contact us at (855) 910-8606 for help if neither is the case."}}},"Model126":{"type":"object","properties":{"statusCode":{"type":"number","example":403},"error":{"type":"string","example":"Forbidden"},"message":{"type":"string","example":"There was an error cancelling this request (fill_request_5c4b21b9aecaea155d67), either you are not the owner of the request, or have already cancelled the request. Please contact us at (855) 910-8606 for help if neither is the case."}}},"Model127":{"type":"object","properties":{"timestamp":{"type":"integer","example":1631571795.423},"status":{"type":"string","example":"error"},"message":{"type":"string","example":"There was an error cancelling this request (fill_request_5c4b21b9aecaea155d67), either you are not the owner of the request, or have already cancelled the request. Please contact us at (855) 910-8606 for help if neither is the case."}}},"Model128":{"type":"array","description":"Patient's prescriptions.","example":[{"prescription_token":"z3q2jr","quantity":8.7,"days_supply":30,"patient_consent":{"consent_statement":"Patient Bruce Banner consented that Truepill pharmacy will bill their insurance in order to provide a fill of Medication Sildenafil 10mg for a quantity of 10.","patient_name":"Bruce Banner","consent_provided_by":"Hulk","item":"sildenafil 10mg","consent_method":"VERBAL","consent_date":" 2021-01-25 15:17:51.000Z","consent_type":"INSURANCE"},"claim_overrides":[{"insurance_token":"adcbc795028c009d","prior_authorization_number":"ABC123","submission_clarification_code":"4"},{"insurance_token":"75539ed9ffb86f38","other_coverage_code":"8"}]},"b5q3t2","h3r55c"],"items":{"type":"string","description":"Prescription token","example":"4526d90a","minLength":1,"x-alternatives":[{"type":"string","description":"Prescription token","example":"4526d90a","minLength":1},{"$ref":"#/x-alt-definitions/Model4"}]}},"Model129":{"type":"array","example":["skhsyq83rkd3uht9","ubqfc1a0a17hjb1c","oi4aafwcsv5zzvvj"],"minItems":1,"items":{"type":"string"}},"Model130":{"type":"object","properties":{"prescriptions":{"$ref":"#/definitions/Model128"},"insurance_token":{"$ref":"#/definitions/Model129","x-alternatives":[{"$ref":"#/x-alt-definitions/insurance_token"},{"type":"string"}]},"metadata":{"type":"string","description":"Customer-side identifier to reference the Copay Request in Customer system","example":"cfe146"},"patient_token":{"type":"string","description":"Patient token","example":"4526d90a"},"notes":{"type":"string","description":"Additional information customer wishes to convey relating to this Copay Request","example":"This is a note"},"ship_to_state":{"type":"string","description":"State prescription is being shipped to as 2 letter abbreviation","example":"CA","x-constraint":{"length":2},"x-convert":{"case":"upper"}},"patient_payment_type":{"type":"string","description":"Whether to run with insurance (must be provided) or as cash","enum":["cash","insurance"]}},"required":["patient_token"]},"Model131":{"type":"object","properties":{"prescription_token":{"type":"string","example":"9df7a51822e2"},"copay_request_prescription_token":{"type":"string","example":"e13eab97b91c6b27"},"status":{"type":"string","example":"pending"}}},"copay_request_prescriptions_tokens":{"type":"array","items":{"$ref":"#/definitions/Model131"}},"Model132":{"type":"object","properties":{"copay_request_token":{"type":"string","example":"a2fcd842de60b010"},"copay_request_prescriptions_tokens":{"$ref":"#/definitions/copay_request_prescriptions_tokens"}}},"Model133":{"type":"object","properties":{"request_id":{"type":"string","example":"40277544de5c6ba685dc4161e189d3e2"},"timestamp":{"type":"integer","example":1631571795.423},"status":{"type":"string","example":"success"},"details":{"$ref":"#/definitions/Model132"}}},"Model134":{"type":"object","properties":{"message":{"type":"string","example":"Patient not found"}}},"Model135":{"type":"object","properties":{"patient_token":{"type":"string","example":"838a906bcc6e7671"},"metadata":{"type":"string","example":"metadata"}},"required":["patient_token"]},"Model136":{"type":"object","properties":{"coverage_request_token":{"type":"string","example":"097b844c799b9c00"},"message":{"type":"string","example":"Your coverage request has been processed successfully."}}},"Model137":{"type":"object","properties":{"request_id":{"type":"string","example":"40277544de5c6ba685dc4161e189d3e2"},"timestamp":{"type":"integer","example":1631571795.423},"status":{"type":"string","example":"success"},"details":{"$ref":"#/definitions/Model136"}}},"Model138":{"type":"object","properties":{"name":{"type":"string","x-convert":{"trim":true}},"street1":{"type":"string","description":"Primary street where the company is located","example":"123 Some Lane","x-convert":{"trim":true}},"city":{"type":"string","description":"City where the company is located","example":"San Mateo","x-convert":{"trim":true}},"state":{"type":"string","description":"State where the company is located","example":"CA","x-convert":{"trim":true}},"zip":{"type":"string","description":"Postal code where the company is located","example":"94538","pattern":"^\\d{5}(-\\d{4})?$"}},"required":["name","street1","city","state","zip"]},"Prescriber":{"type":"object","description":"Prescriber description","properties":{"prescriber_type":{"type":"string","example":"OD","enum":["OD","PMHNP","MBBS","DNP","D.O.","DPT","D.D.S.","F.N.P.","CPP","N.D.","P.A.","APNP","V.M.D.","RPh","APRN","DC APC","PsyD","CRNA","PharmD","B.V.M.S.","WHNP","PhD","ARNP","PT","CRNP","DPM","CNP","N.P.","CDH","D.M.D.","D.V.M.","M.D.","CNM"]},"first_name":{"type":"string","description":"Prescriber's first name","example":"Stephen","x-convert":{"trim":true}},"last_name":{"type":"string","description":"Prescriber's last name","example":"Strange","x-convert":{"trim":true}},"address":{"$ref":"#/definitions/Model138"},"dea":{"type":"string"},"npi":{"type":"string","description":"National provider identifier","example":"123123123"}},"required":["first_name","last_name","address","npi"]},"TransferFrom":{"type":"object","description":"Pharmacy to transfer prescriptions from","properties":{"name":{"type":"string","description":"Name of pharmacy","example":"Walmart Pharmacy"},"dea":{"type":"string"},"pharmacist":{"type":"string","example":"Dr. Storm"},"id_number":{"type":"string","example":"490382308"},"address":{"$ref":"#/definitions/Model138"}},"required":["name","pharmacist","id_number","address"]},"TransferTo":{"type":"object","description":"Pharmacy to transfer prescriptions to","properties":{"name":{"type":"string","description":"Name of pharmacy","example":"Walmart Pharmacy"},"dea":{"type":"string"},"pharmacist":{"type":"string","example":"Dr. Storm"},"id_number":{"type":"string"}},"required":["name","pharmacist"]},"Model139":{"type":"object","description":"Prescription description","properties":{"medication_name":{"type":"string","description":"Medication name","example":"Finasteride"},"quantity_written":{"type":"string","description":"Written medication quantity","example":"60"},"quantity_dispensed":{"type":"string","description":"Dispensed medication","example":"60"},"medication_sig":{"type":"string","description":"Recommendations for medicines","example":"Apply daily."},"written_date":{"type":"string","description":"Written date","example":"20180401","pattern":"^((1|2)\\d{3}[01][0-9][0-3][0-9]$)"},"expiration_date":{"type":"string","description":"Expiration date","example":"20180401","pattern":"^((1|2)\\d{3}[01][0-9][0-3][0-9]$)"},"last_fill_date":{"type":"string","description":"Last fill date","example":"20180401","pattern":"^((1|2)\\d{3}[01][0-9][0-3][0-9]$)"},"first_fill_date":{"type":"string","description":"First fill date","example":"20180401","pattern":"^((1|2)\\d{3}[01][0-9][0-3][0-9]$)"},"number":{"type":"string","example":"4567"},"direct_transfer_url":{"type":"string","example":"https://user:securelogin@www.assets.com/rx/saijhofiasjfoasoi2f.png","x-format":{"uri":{"scheme":["https","s3"]}}},"can_substitute":{"type":"boolean","example":true},"prescribed_ndc":{"type":"string","description":"National drug code","example":"12345678912","pattern":"^(\\d{10,11})$"},"days_supply":{"type":"integer","description":"Days supply","example":30},"icd10_code":{"type":"string","example":"G43.909"},"notes":{"type":"string","description":"Text note","example":"A note here"},"annotation":{"type":"string","description":"Short annotation","example":"Hair loss treatment"},"diagnosis":{"type":"string","description":"Diagnosis","example":"Male pattern baldness"},"quantity_transferred":{"type":"string","description":"Quantity of medication transferred","example":"60"},"original_refills":{"type":"integer","description":"Original number of refills","example":3}},"required":["medication_name","quantity_written","medication_sig","written_date","number","can_substitute"]},"CreateDirectTransfer":{"type":"object","description":"Create new direct transfer","properties":{"metadata":{"type":"string"},"prescriber":{"$ref":"#/definitions/Prescriber"},"patient_token":{"type":"string","description":"Token to reference patient record","example":"4526d90a"},"transfer_from":{"$ref":"#/definitions/TransferFrom"},"transfer_to":{"$ref":"#/definitions/TransferTo"},"prescription":{"$ref":"#/definitions/Model139"},"source":{"type":"string"}},"required":["prescriber","transfer_from","transfer_to","prescription"]},"Model140":{"type":"object","properties":{"direct_transfer_id":{"type":"string","example":"9a8b9e4161"}}},"Model141":{"type":"object","properties":{"request_id":{"type":"string","example":"40277544de5c6ba685dc4161e189d3e2"},"timestamp":{"type":"integer","example":1631571795.423},"status":{"type":"string","example":"success"},"details":{"$ref":"#/definitions/Model140"}}},"Model142":{"type":"object","properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"string","example":"Direct transfer already exists with token 4009e71e42"}}},"Model143":{"type":"object","properties":{"message":{"type":"string","example":"Unable to find Patient."}}},"copay_payment":{"type":"object","properties":{"cardholder_name":{"type":"string","description":"Cardholder name","example":"John Doe"},"payment_type":{"type":"string"},"last_four_digits":{"type":"string","example":"4132"},"transaction_amount":{"type":"number"},"card_type":{"type":"string"},"transaction_date":{"type":"string"},"transaction_id":{"type":"string"}},"required":["payment_type"]},"Medication":{"type":"object","description":"Medication description","example":[{"prescription_token":"z3q2jr"},{"prescription_token":"3cs873"}],"properties":{"medication_name":{"type":"string","description":"Medication name","example":"Ritalin","maxLength":255},"quantity_dispensed":{"type":"number","description":"Dispensed medication quantity","example":60},"days_supply":{"type":"number","description":"Days supply","example":30},"is_refill":{"type":"boolean","description":"Is prescription a refill or new fill","example":true},"medication_sig":{"type":"string","description":"Recommendations for medicines","example":"Apply daily."},"prescribing_doctor":{"type":"string","description":"Prescribing doctor","example":"Dr. Storm"},"prescription_token":{"type":"string","description":"Prescription token","example":"4526d90a","minLength":1},"rx_link":{"type":"string","minLength":1},"quantity":{"type":"number","description":"Quantity sent","example":30,"x-constraint":{"greater":0}},"copay_payment":{"$ref":"#/definitions/copay_payment"},"ndc":{"type":"string","description":"National drug code","example":"12345678901","pattern":"^[0-9]{11}$"},"daw":{"type":"string","example":"2","enum":["0","2"]},"patient_consent":{"$ref":"#/definitions/patient_consent"}},"required":["daw"]},"MedicationArray":{"type":"array","x-constraint":{},"items":{"$ref":"#/definitions/Medication"}},"Model144":{"type":"object","properties":{"sku":{"type":"string","description":"Store keeping unit","example":"14147565"},"quantity":{"type":"number","description":"Quantity","example":30,"minimum":1}},"required":["sku","quantity"]},"packing_materials":{"type":"array","items":{"$ref":"#/definitions/Model144"}},"pricing":{"type":"object","properties":{"cost":{"type":"number"},"tax":{"type":"number"},"total":{"type":"number"}}},"Model145":{"type":"object","properties":{"item":{"type":"string","example":"Vitamin B"},"sku":{"type":"string","description":"Store keeping unit","example":"14147565"},"bundle_id":{"type":"string"},"bundle_item_partial_return_allowed":{"type":"boolean","default":false},"quantity":{"type":"number","description":"Quantity","example":30,"minimum":1},"customer_item_id":{"type":"string","description":"Customer item ID"},"days_supply":{"type":"number","description":"Days supply"},"pricing":{"$ref":"#/definitions/pricing"},"patient_consent":{"$ref":"#/definitions/patient_consent"}},"required":["quantity"]},"Model146":{"type":"array","example":[{"item":"Vitamin B","quantity":30}],"items":{"$ref":"#/definitions/Model145"}},"weight":{"type":"object","properties":{"value":{"type":"number","example":1.01,"x-constraint":{"less":1000000,"precision":2,"sign":"positive"}},"unit":{"type":"string","example":"oz","enum":["oz"]}},"required":["value","unit"]},"Patient survey":{"type":"object","description":"Required information on patient's current health","example":{"medications":"Tafluprost","allergies":"Penicillian","conditions":"Glaucoma"},"properties":{"weight":{"$ref":"#/definitions/weight"},"allergies":{"type":"string","x-alternatives":[{"type":"string"},{"$ref":"#/x-alt-definitions/allergies"}]},"medications":{"type":"string","x-alternatives":[{"type":"string"},{"$ref":"#/x-alt-definitions/medications"}]},"conditions":{"type":"string"},"events":{"type":"string","x-alternatives":[{"type":"string"},{"$ref":"#/x-alt-definitions/events"}]},"smoking_frequency":{"type":"string","description":"The frequency of smoking, if any"},"drinking_frequency":{"type":"string","description":"The frequency of drinking, if any"},"asthma_breathing":{"type":"boolean","description":"Whether the patient has asthma or breathing problems"},"heart_disease":{"type":"boolean","description":"Whether the patient has heart disease"},"arthritis":{"type":"boolean","description":"Whether the patient has arthritis"},"lung_disorder":{"type":"boolean","description":"Whether the patient has a lung disorder"},"bleeding_clotting_disorder":{"type":"boolean","description":"Whether the patient has a bleeding or clotting disorder"},"neurological_chronic_headaches":{"type":"boolean","description":"Whether the patient has neurological disorders or chronic headaches"},"blood_transfusion":{"type":"boolean","description":"Whether the patient has had a blood transfusion"},"psychiatric_disorder":{"type":"boolean","description":"Whether the patient has a psychiatric disorder"},"bowel_stomach":{"type":"boolean","description":"Whether the patient has bowel or stomach problems"},"pulmonary_embolism":{"type":"boolean","description":"Whether the patient has had a pulmonary embolism"},"cancer":{"type":"boolean","description":"Whether the patient has had cancer"},"stroke":{"type":"boolean","description":"Whether the patient has had a stroke"},"cholesterol_disorder":{"type":"boolean","description":"Whether the patient has a cholesterol disorder"},"seizure_epilepsy":{"type":"boolean","description":"Whether the patient has seizures or epilepsy"},"diabetes":{"type":"boolean","description":"Whether the patient has diabetes"},"thyroid_disorder":{"type":"boolean","description":"Whether the patient has a thyroid disorder"},"eye_disorder":{"type":"boolean","description":"Whether the patient has an eye disorder"},"urinary_kidney_disorder":{"type":"boolean","description":"Whether the patient has a urinary or kidney disorder"},"pregnancy":{"type":"boolean","description":"Whether the patient is pregnant or not"}},"required":["allergies","medications","conditions"]},"stripe_payment":{"type":"object","properties":{"category":{"type":"string","example":"stripe"},"cardholder_name":{"type":"string","example":"Bruce Banner"},"last_four_digits":{"type":"string","example":"6789"},"stripe_id":{"type":"string","example":"pi_10f410zj3018s2"},"amount":{"type":"number","example":12.75},"description":{"type":"string","example":"Paid by patient"}},"required":["category","stripe_id","amount"]},"Model147":{"type":"object","properties":{"patient_token":{"type":"string","description":"Patient token","example":"4526d90a","minLength":1},"patient_payment_type":{"type":"string","example":"insurance","enum":["cash","insurance"],"x-convert":{"case":"lower"}},"insurances":{"type":"string","example":[{"insurance_token":"19sienglo92831n5"},{"cardholder_id":"112233445566","rx_bin":"172020","pcn":"HDMI","rx_group":"444555"}]},"medications":{"$ref":"#/definitions/MedicationArray","x-alternatives":[{"$ref":"#/x-alt-definitions/MedicationArray"},{"$ref":"#/x-alt-definitions/Model7"}]},"packing_materials":{"$ref":"#/definitions/packing_materials"},"otc_products":{"$ref":"#/definitions/Model146"},"address_to_name":{"type":"string","example":"Bruce Banner","x-convert":{"trim":true}},"address_to_company":{"type":"string","example":"Avengers","default":"","x-convert":{"trim":true}},"address_to_street1":{"type":"string","example":"1700 S Amphlett Blvd","maxLength":100,"x-convert":{"trim":true}},"address_to_street2":{"type":"string","example":"#221","default":"","x-convert":{"trim":true}},"address_to_city":{"type":"string","example":"San Mateo","x-convert":{"trim":true}},"address_to_state":{"type":"string","example":"CA","x-convert":{"trim":true}},"address_to_zip":{"type":"string","example":"94402","x-convert":{"trim":true}},"address_to_country":{"type":"string","example":"US","default":"US","x-convert":{"trim":true}},"address_to_phone":{"type":"string","example":"(347) 610-8896","x-convert":{"trim":true}},"address_to_email":{"type":"string","example":"bruce.banner@avengers.com","x-convert":{"trim":true}},"shipping_method":{"type":"string","description":"Shipping method","example":"usps_ground_advantage","default":"usps_ground_advantage","enum":["standard","priority","overnight","usps_ground_advantage","usps_priority","usps_priority_express","fedex_ground","fedex_2_day","fedex_smart_post","fedex_standard_overnight","fedex_priority_overnight","ups_mail_innovations_domestic","ups_next_day_air","ups_next_day_air_saver","ups_second_day_air","ups_ground","dhl_ecommerce_parcels_ground","dhl_ecommerce_parcels_expedited","dhl_ecommerce_parcels_expedited_max","dhl_ecommerce_parcel_plus_ground","dhl_ecommerce_parcel_plus_expedited","dhl_ecommerce_parcel_plus_expedited_max"],"x-convert":{"case":"lower"}},"signature_confirmation":{"type":"boolean","description":"Is signature required by patient upon delivery","example":false},"replacement_order":{"type":"string","description":"Fill Request token of the order that this Fill request is replacing","example":"fill_request_cb619ca2e133d37daefc"},"metadata":{"type":"string","example":"cfe146"},"notes":{"type":"string","example":"Here are some special instructions on how to fill this order"},"patient_survey":{"$ref":"#/definitions/Patient%20survey"},"check_in":{"type":"boolean","description":"Set to true to request a consultation with a Truepill pharmacist prior to completing the Fill request","example":false},"is_priority":{"type":"boolean"},"packaging_instructions":{"type":"string","maxLength":40},"receipt_items":{"$ref":"#/definitions/receipt_items"},"stripe_payment":{"$ref":"#/definitions/stripe_payment"}},"required":["patient_payment_type","address_to_name","address_to_street1","address_to_city","address_to_state","address_to_zip","address_to_phone","patient_survey"]},"Model148":{"type":"object","properties":{"message":{"type":"string","example":"Your fill request has been processed successfully."},"metadata":{"type":"string","example":"Some metadata"}}},"Model149":{"type":"object","properties":{"request_id":{"type":"string","example":"fill_request_d1f54cea86bb7e030f09"},"timestamp":{"type":"integer","example":1631571795},"status":{"type":"string","example":"success"},"details":{"$ref":"#/definitions/Model148"}}},"Model150":{"type":"object","properties":{"key":{"type":"string","example":"address_to_phone"},"message":{"type":"string","example":"X is not a valid phone number of the form +17895551234 (10-15 digits)"}}},"Model151":{"type":"array","items":{"$ref":"#/definitions/Model150"}},"Model152":{"type":"object","properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"validation_errors":{"$ref":"#/definitions/Model151"}}},"Model153":{"type":"object","properties":{"cardholder_id":{"type":"string","description":"Cardholder ID","example":"A9321328"},"rx_group":{"type":"string","example":"006726"},"rx_bin":{"type":"string","example":"997928","pattern":"^[0-9]{6}$"},"pcn":{"type":"string","description":"A processor control number (PCN) is identifier used to route pharmacy reimbursements","example":"AXA"},"phone_number":{"type":"string","description":"Insurance company phone number","example":"(955) 372-4143"},"insurance_card_image_url":{"type":"string","description":"Image URL for insurance card"},"relationship_code":{"type":"integer","description":"Relationship of the patient to the cardholder","example":1,"minimum":0,"maximum":8},"card_type":{"type":"string","description":"Insurance card type","example":"insurance","enum":["insurance","savings_card","commercial","government","medicare","medicaid"]},"person_code":{"type":"string","description":"Code assigned to a specific individual covered under the policy.","example":"01","maxLength":3,"x-format":{"alphanum":true},"x-convert":{"case":"upper","trim":true}},"coverage_type":{"type":"string","description":"Insurance coverage type","example":"insurance","enum":["medicare_bridge","medicare_part_d"]}}},"Model154":{"type":"object","properties":{"insurance":{"$ref":"#/definitions/Model153"},"patient_token":{"type":"string","example":"4526d90a"}},"required":["insurance","patient_token"]},"Model155":{"type":"object","properties":{"insurance_token":{"type":"string","example":"498147cb8c59541b"}}},"Model156":{"type":"object","properties":{"request_id":{"type":"string","example":"6996e3bde41c7fabbbd3df39619f78bf"},"timestamp":{"type":"integer","example":1631571795.423},"status":{"type":"string","example":"success"},"details":{"$ref":"#/definitions/Model155"}}},"Model157":{"type":"object","properties":{"key":{"type":"string","example":"insurance.cardholder_id"},"message":{"type":"string","example":"cardholder_id must be a string"}}},"Model158":{"type":"array","items":{"$ref":"#/definitions/Model157"}},"Model159":{"type":"object","properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"validation_errors":{"$ref":"#/definitions/Model158"}}},"CreateMedia":{"type":"object","properties":{"fileName":{"type":"string","description":"File name which is unique uuid identifier","example":"812750e4-1cae-44e5-8212-a9a2f9776fca","pattern":"^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$"},"title":{"type":"string","description":"Human readable media title","example":"Skin damage media"}},"required":["fileName"]},"Model160":{"type":"object","properties":{"id":{"type":"string","example":"059d52b6-b2b0-4bd1-97df-082b1e2196c1"},"createdAt":{"type":"string","description":"Date when media was uploaded to the bucket","example":"2021-11-09T08:00:00.000Z"},"updatedAt":{"type":"string","description":"Date when media status had been changed","example":"2021-11-09T08:00:00.000Z"},"title":{"type":"string","description":"Human readable media title","example":"Skin damage media"},"status":{"type":"string","description":"Captures whether we are currently scanning the media, or whether it is safe or not. Quarantined medias are inaccessible","example":"AVAILABLE"}}},"Model161":{"type":"object","properties":{"statusCode":{"type":"number","example":404},"error":{"type":"string","example":"Not Found"},"message":{"type":"string","example":"Media not found"}}},"Model162":{"type":"object","description":"Prescriber's address details","properties":{"clinic_name":{"type":"string","description":"Clinic name that the prescriber works at","example":"True Clinic"},"street1":{"type":"string","description":"Street 1 of prescriber’s working address","example":"3121 Diablo Ave"},"street2":{"type":"string","description":"Street 2 of prescriber’s working address","example":"123 Some Lane"},"city":{"type":"string","description":"City of prescriber’s working address","example":"Hayward"},"state":{"type":"string","description":"State of prescriber’s working address. Two-letter state abbreviation","example":"CA"},"country":{"type":"string","description":"US (default)","example":"US","default":"US"},"zip":{"type":"string","description":"Zip code of prescriber’s working address","example":"94545","pattern":"^\\d{5}(-\\d{4})?$"},"phone":{"type":"string","description":"Prescriber’s phone number","example":"(855) 910-8606"},"email":{"type":"string","description":"Prescriber’s email","example":"truepill@truepill.com","x-format":{"email":true}},"fax":{"type":"string","description":"Prescriber’s fax number","example":"(855) 910-8606"}},"required":["street1","city","state","zip","phone"]},"Model163":{"type":"object","properties":{"prescriber_type":{"type":"string","example":"OD","enum":["OD","PMHNP","MBBS","DNP","D.O.","DPT","D.D.S.","F.N.P.","CPP","N.D.","P.A.","APNP","V.M.D.","RPh","APRN","DC APC","PsyD","CRNA","PharmD","B.V.M.S.","WHNP","PhD","ARNP","PT","CRNP","DPM","CNP","N.P.","CDH","D.M.D.","D.V.M.","M.D.","CNM"]},"first_name":{"type":"string","description":"Prescriber’s first name","example":"True"},"last_name":{"type":"string","description":"Prescriber’s last name","example":"Pill"},"dea":{"type":"string","description":"Prescriber’s DEA license ID","example":"BI7884668"},"npi":{"type":"string","description":"Prescriber’s National Provider Identifier","example":"2888888888"},"active":{"type":"boolean","description":"Whether the prescriber is actively prescribing","example":true},"address":{"$ref":"#/definitions/Model162"}},"required":["first_name","last_name","npi","active","address"]},"Model164":{"type":"object","properties":{"prescriber_token":{"type":"string","example":"e9c4778365b209a81bc9"}}},"Model165":{"type":"object","properties":{"key":{"type":"string","example":"address.phone"},"message":{"type":"string","example":"is required"}}},"Model166":{"type":"array","items":{"$ref":"#/definitions/Model165"}},"Model167":{"type":"object","properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"validation_errors":{"$ref":"#/definitions/Model166"}}},"Prior Authorization Request Fields":{"type":"object","properties":{"patient_token":{"type":"string","description":"Associated patient's record token","example":"4526d90a"},"insurance_token":{"type":"string","description":"Associated patient's insurance record token","example":"19sienglo92831n5"},"prescription_token":{"type":"string","description":"Token to reference the prescription","example":"z3q2jr"},"metadata":{"type":"string","description":"Customer-side identifier to reference the PA request in customer system","example":"cfe146"},"prescriber_phone":{"type":"string","description":"Phone number associated with the prescribe","example":"1-800-123-4567"},"prescriber_fax":{"type":"string","description":"Fax number associated with the prescriber","example":"1-800-123-4567"}},"required":["patient_token","insurance_token","prescription_token"]},"Model168":{"type":"object","properties":{"message":{"type":"string","example":"Your prior authorization request has been processed successfully."},"patient_token":{"type":"string","description":"Associated patient's record token","example":"4526d90a"},"insurance_token":{"type":"string","description":"Associated patient's insurance record token","example":"19sienglo92831n5"},"prescription_token":{"type":"string","description":"Token to reference the prescription","example":"z3q2jr"},"metadata":{"type":"string","description":"Customer-side identifier to reference the PA request in customer system","example":"cfe146"},"prescriber_phone":{"type":"string","description":"Phone number associated with the prescribe","example":"1-800-123-4567"},"prescriber_fax":{"type":"string","description":"Fax number associated with the prescriber","example":"1-800-123-4567"}},"required":["patient_token","insurance_token","prescription_token"]},"Model169":{"type":"object","properties":{"request_id":{"type":"string","example":"e8ab3dc37eb5be523508cbb5d707adf0"},"timestamp":{"type":"integer","example":1631571795},"status":{"type":"string","example":"success"},"details":{"$ref":"#/definitions/Model168"}}},"Model170":{"type":"object","properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"string","example":"Invalid request payload JSON format"}}},"prescription_tokens":{"type":"array","items":{"type":"string","minLength":0,"pattern":"[a-f0-9]{8,16}"}},"Shipping Address":{"type":"object","properties":{"name":{"type":"string","minLength":1},"company":{"type":"string","minLength":0},"street1":{"type":"string","description":"Primary street of the address","minLength":1},"street2":{"type":"string","description":"Secondary street","minLength":0},"city":{"type":"string","description":"City","minLength":1},"state":{"type":"string","description":"State","minLength":1},"zip":{"type":"string","minLength":0,"pattern":"^\\d{5}(-\\d{4})?$"},"country":{"type":"string","description":"Country","default":"US","minLength":1},"phone":{"type":"string","minLength":0},"email":{"type":"string","minLength":1},"fax":{"type":"string","minLength":0}},"required":["name","street1","city","state","zip","country","email"]},"Model171":{"type":"object","properties":{"id":{"type":"string","description":"Stringified UUIDv4.\nSee [RFC 4112](https://tools.ietf.org/html/rfc4122)","minLength":0,"pattern":"^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$"},"pharmacy":{"type":"string","description":"References GET /v1/external_location_pharmacies","minLength":0},"npi":{"type":"string","description":"NPI - likely type 2","minLength":0,"maxLength":10,"pattern":"^[0-9]{10}$"},"address_to_street1":{"type":"string","minLength":0},"address_to_street2":{"type":"string","minLength":0},"address_to_city":{"type":"string","minLength":0},"address_to_state":{"type":"string","minLength":0,"pattern":"^[A-Z]{2}$"},"address_to_zip":{"type":"string","minLength":0,"pattern":"^\\d{5}(-?\\d{4})?$"},"address_to_country":{"type":"string","minLength":0,"pattern":"^[A-Z]{2}$"},"address_to_phone":{"type":"string","minLength":0,"pattern":"^(\\+)?[1-9]\\d{1,14}$"},"address_to_fax":{"type":"string","description":"The fax number of the address","minLength":0,"maxLength":255,"pattern":"^[1-9]\\d{1,14}$"}},"required":["id","pharmacy","npi","address_to_street1","address_to_city","address_to_state","address_to_zip","address_to_country"]},"Model172":{"type":"array","items":{"type":"string","minLength":0}},"Model173":{"type":"object","properties":{"patient_token":{"type":"string","minLength":0},"prescription_tokens":{"$ref":"#/definitions/prescription_tokens"},"shipping_address":{"$ref":"#/definitions/Shipping%20Address","x-alternatives":[{"$ref":"#/x-alt-definitions/Shipping%20Address"},{"$ref":"#/x-alt-definitions/shipping_address"}]},"external_location":{"$ref":"#/definitions/Model171","x-alternatives":[{"$ref":"#/x-alt-definitions/external_location"},{"$ref":"#/x-alt-definitions/Model8"}]},"insurance_tokens":{"$ref":"#/definitions/Model172"},"delivery_instruction":{"type":"string","minLength":0,"maxLength":280}},"required":["patient_token","prescription_tokens","shipping_address","external_location"]},"Model174":{"type":"array","example":["Finasteride, 1 mg","Sucralfate"],"default":[],"x-constraint":{"single":true},"items":{"type":"string"}},"Transfer request":{"type":"object","properties":{"patient_phone":{"type":"string"},"patient_token":{"type":"string","description":"Token to reference Patient record","example":"4526d90a"},"prescriber_phone":{"type":"string","description":"Prescriber’s phone number","example":"8881112222"},"prescriber_fax":{"type":"string","description":"Prescriber’s fax number","example":"34276634527"},"pharmacy_name":{"type":"string","description":"Name of pharmacy to transfer prescription(s) from","example":"Walmart Pharmacy"},"pharmacy_phone":{"type":"string","description":"Pharmacy’s phone number","example":"(949) 837-0504"},"pharmacy_fax":{"type":"string","description":"Pharmacy’s fax number","example":"(949) 837-0504"},"notes":{"type":"string","description":"Additional transfer notes to specify","example":"Transfer notes"},"metadata":{"type":"string","description":"Customer-side identifier to reference the transfer in customer system","example":"cfe146"},"medications":{"$ref":"#/definitions/Model174"}}},"Model175":{"type":"object","properties":{"transfer_medication_id":{"type":"string","example":"a4d262ba4793835c"},"transfer_medication_token":{"type":"string","example":"a4d262ba4793835c"},"medication_name":{"type":"string","example":"Lisinopril 5 mg Oral Tablet *[41]*"}}},"Model176":{"type":"array","items":{"$ref":"#/definitions/Model175"}},"Model177":{"type":"object","properties":{"message":{"type":"string","example":"Your transfer request has been received."},"transfer_id":{"type":"string","example":"d01f30b320"},"transfer_token":{"type":"string","example":"d01f30b320"},"transfer_medications":{"$ref":"#/definitions/Model176"},"patient_id":{"type":"string","example":"507ee4b3ea5318b7"},"patient_token":{"type":"string","example":"507ee4b3ea5318b7"}}},"Model178":{"type":"object","properties":{"request_id":{"type":"string","example":"7b8b4ed9ef459888d6bbb503363e5f00"},"timestamp":{"type":"integer","example":1631571795},"status":{"type":"string","example":"success"},"details":{"$ref":"#/definitions/Model177"}}},"Model179":{"type":"object","properties":{"key":{"type":"string","example":""},"message":{"type":"string","example":"Transfer request must contain at least one of [patient_token, patient_first_name]"}}},"Model180":{"type":"array","items":{"$ref":"#/definitions/Model179"}},"Model181":{"type":"object","properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"validation_errors":{"$ref":"#/definitions/Model180"}}},"Model182":{"type":"object","properties":{"request_id":{"type":"string","description":"Request id","example":"fill_request_aecafb34372151077db8"},"address_from_company":{"type":"string","description":"Desired name to display in the Return section of shipping label","example":"Avengers","default":""},"shipping_method":{"type":"string","description":"Shipping method","example":"usps_ground_advantage","default":"usps_ground_advantage","enum":["standard","priority","overnight","usps_ground_advantage","usps_priority","usps_priority_express","fedex_ground","fedex_2_day","fedex_smart_post","fedex_standard_overnight","fedex_priority_overnight","ups_mail_innovations_domestic","ups_next_day_air","ups_next_day_air_saver","ups_second_day_air","ups_ground","dhl_ecommerce_parcels_ground","dhl_ecommerce_parcels_expedited","dhl_ecommerce_parcels_expedited_max","dhl_ecommerce_parcel_plus_ground","dhl_ecommerce_parcel_plus_expedited","dhl_ecommerce_parcel_plus_expedited_max"],"x-convert":{"case":"lower"}},"signature_confirmation":{"type":"boolean","description":"Is signature required by patient upon delivery","example":false},"notes":{"type":"string","example":"Here are some special instructions on how to fill this order"},"address_to_name":{"type":"string","description":"Patient’s name as it should appear on shipping label","example":"Peter Parker"},"address_to_company":{"type":"string","description":"Desired return name to display on package shipping label sent to patient","example":"","default":""},"address_to_street1":{"type":"string","description":"Street 1 of patient’s shipping address","example":"1700 S Amphlett Blvd","maxLength":100},"address_to_street2":{"type":"string","description":"Street 2 of patient’s shipping address (if applicable)","example":"#221","default":""},"address_to_city":{"type":"string","description":"City of patient’s shipping address","example":"San Mateo"},"address_to_state":{"type":"string","description":"State of patient’s shipping address","example":"CA"},"address_to_zip":{"type":"string","description":"Zip code of patient’s shipping address","example":"94402"},"address_to_country":{"type":"string","description":"Use US for all requests","example":"US","default":"US"},"address_to_phone":{"type":"string","description":"Patient’s phone number","example":"(347) 610-8896"},"address_to_email":{"type":"string","description":"Patient’s email address","example":"peter.parker@avengers.com"}},"required":["address_to_name","address_to_street1","address_to_city","address_to_state","address_to_zip","address_to_phone"]},"Model183":{"type":"object","properties":{"message":{"type":"string","example":"Accepted: Order fill_request_aecafb34372151077db8 has been updated with the new request parameters."}}},"Model184":{"type":"object","properties":{"request_id":{"type":"string","example":"update_request_994aee2d04ae2f1995b5a86449a9c813"},"timestamp":{"type":"integer","example":1631571795},"status":{"type":"string","example":"success"},"details":{"$ref":"#/definitions/Model183"}}},"Model185":{"type":"object","properties":{"key":{"type":"string","example":"patient_token"},"message":{"type":"string","example":"is not allowed"}}},"Model186":{"type":"array","items":{"$ref":"#/definitions/Model185"}},"Model187":{"type":"object","properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"validation_errors":{"$ref":"#/definitions/Model186"}}},"CreateMediaV2":{"type":"object","properties":{"name":{"type":"string","description":"Human readable media title","example":"Skin damage media","maxLength":255}},"required":["name"]},"Model188":{"type":"object","properties":{"id":{"type":"string","example":"059d52b6-b2b0-4bd1-97df-082b1e2196c1","pattern":"^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$"},"name":{"type":"string","description":"Human readable media title","example":"Right ear"},"status":{"type":"string","description":"Captures whether we are currently scanning the media, or whether it is safe or not. Quarantined medias are inaccessible","example":"AVAILABLE","enum":["REVIEWING","AVAILABLE","QUARANTINE","AWAITING_UPLOADING"]},"upload_url":{"type":"string","description":"This link is for file upload using PUT. Lifetime 24h. File limit 4 GB using header: x-goog-content-length-range:0,4000000000","example":"https://storage.googleapis.com/1512a193-065b-4360-bd1f-48b8a260f140?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=upload-scanner%40serviceaccount.com%2F20211126%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20211126T130011Z&X-Goog-Expires=900&X-Goog-SignedHeaders=content-type%3Bhost&X-Goog-Signature=123","x-format":{"uri":true}}},"required":["id","name","status","upload_url"]},"Model189":{"type":"object","properties":{"number":{"type":"string","description":"other contact number","example":"430-304-3949"},"type":{"type":"string","description":"other contact type","enum":["mobile","home","power_of_attorney","care_giver","family_member","other"]}},"required":["number","type"]},"other_contacts":{"type":"array","description":"Patient’s other contacts","items":{"$ref":"#/definitions/Model189"}},"contacts":{"type":"object","properties":{"email":{"type":"string","example":"hulkout@hulk.com","x-format":{"email":true},"x-convert":{"trim":true}},"phone":{"type":"string","description":"Patient’s phone number","example":"430-304-3949"},"sms":{"type":"string"},"other_contacts":{"$ref":"#/definitions/other_contacts"}}},"payment":{"type":"object","properties":{"customer_token":{"type":"string"},"shipping_option":{"type":"string"}}},"side_effects":{"type":"array","items":{"type":"string","description":"Side effects of medication","example":"Diarrhea"}},"Model190":{"type":"object","properties":{"medication_name":{"type":"string","description":"Name of medication","example":"Amoxicillin"},"strength":{"type":"string","description":"Strength of medication","example":"20mg"},"quantity_written":{"type":"number","description":"Quantity of medication","example":2},"dosage_form":{"type":"string","description":"Dosage form of medication","example":"TABLET"},"dose":{"type":"number","description":"Dose of medication","example":1},"start_date":{"type":"string","format":"date-time","description":"Start date when patient started to take medicine","example":"2020-02-08"},"end_date":{"type":"string","format":"date-time","description":"End date when patient will stop taking medicine","example":"2020-03-08"},"refills":{"type":"number","description":"Refills of medication","example":2},"medication_sig":{"type":"string","description":"Directions to use medicine","example":"Take 1 daily"},"side_effects":{"$ref":"#/definitions/side_effects"},"notes":{"type":"string","description":"Notes of medication","example":"Prescibed by doctor"},"status":{"type":"string","description":"Status of the medication","example":"active","enum":["active","expired","discontinued"]}},"required":["medication_name"]},"Current medication":{"type":"array","description":"Current medication information","items":{"$ref":"#/definitions/Model190"}},"Model191":{"type":"object","properties":{"media_id":{"type":"string","description":"Should be a uuid","example":"059d52b6-b2b0-4bd1-97df-082b1e2196c1","pattern":"^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$"},"form":{"type":"string","description":"The valid forms of identification required by the consult's questionnaire","example":"SELF_PORTRAIT","enum":["SELF_PORTRAIT","PHOTO_IDENTIFICATION"]}}},"identification":{"type":"array","items":{"$ref":"#/definitions/Model191"}},"Patient":{"type":"object","properties":{"patient_token":{"type":"string"},"id":{"type":"string","example":"5dcf35ee85c869d281d85d43","x-constraint":{"length":24},"x-format":{"hex":{"byteAligned":false,"prefix":false}}},"first_name":{"type":"string","description":"Patient first name","example":"Lola","x-convert":{"trim":true}},"last_name":{"type":"string","description":"Patient last name","example":"Martin","x-convert":{"trim":true}},"gender":{"type":"string","description":"Patient gender","example":"female","enum":["male","female","unknown"],"x-convert":{"case":"lower"}},"dob":{"type":"string","description":"Date of birth","example":"2000-01-01","pattern":"^((1|2)\\d{3}-[01][0-9](?<!00)-[0-3][0-9](?<!00)$)"},"home_zip":{"type":"string","description":"Patient home zip","example":"94538","pattern":"^\\d{5}(-\\d{4})?$"},"preferred_contact":{"type":"string","example":"email","enum":["email","phone","sms"]},"contacts":{"$ref":"#/definitions/contacts"},"payment":{"$ref":"#/definitions/payment"},"current_medications":{"$ref":"#/definitions/Current%20medication"},"identification":{"$ref":"#/definitions/identification"}},"required":["last_name","gender","dob","home_zip","preferred_contact","preferred_contact"]},"Shipping address":{"type":"object","description":"Patient’s address for shipping medications and lab tests","example":{"line1":"Lola Martin","street1":"123 Paw St","city":"Ruff","state":"CA","zip":"94538"},"properties":{"line1":{"type":"string"},"line2":{"type":"string","default":" "},"street1":{"type":"string"},"street2":{"type":"string","default":" "},"city":{"type":"string"},"state":{"type":"string","x-constraint":{"length":2}},"zip":{"type":"string","pattern":"^\\d{5}(-\\d{4})?$"}},"required":["line1","street1","city","state"]},"disclaimer":{"type":"array","description":"Any additional information that the customer needs to disclose to the patient","example":"Accept a patient only on an empty stomach","items":{"type":"string"}},"custom_fields":{"type":"object","properties":{"patient_identifier":{"type":"string"}}},"Prescription template":{"type":"object","description":"Prescription template iss used by the customer to determine which prescription form to use. By default all of customers use the default one, but Kiinde needed a specific layout, which we’ve taken responsibility for as it’s our providers that we’re putting signatures on. So that specifies any additional information and which template required","properties":{"id":{"type":"string","default":"44376ef1-2ae1-4758-b844-3f02b1d15583","enum":["DEFAULT_PRESCRIPTION_ID","05d58414-fb80-4691-8459-896f5af735ed"]},"disclaimer":{"$ref":"#/definitions/disclaimer"},"due_date":{"type":"string","format":"date","description":"Some customers (now only Kiinde) works with pregnant patients, and that indicates the date at which they’re expecting their child. We only have one customer leveraging this so we can continue to obscure this if the approach needs to be re-looked at.","example":"2022-02-02"},"custom_fields":{"$ref":"#/definitions/custom_fields"}}},"Primary care provider":{"type":"object","description":"Patient’s primary care provider","properties":{"first_name":{"type":"string","description":"Primary care provider first name","example":"John"},"last_name":{"type":"string","description":"Primary care provider last name","example":"Doe"},"clinic_name":{"type":"string","description":"Primary care provider clinic name","example":"J. Doe"},"credential":{"type":"string","enum":["MD","DO","NP","PA","NONE"]},"name":{"type":"string","description":"Primary care provider name","example":"John Doe"},"npi":{"type":"number","description":"National Provider Identifier","example":1234567890},"email":{"type":"string","description":"Patient email","example":"fur@paws.net","x-format":{"email":true}},"phone":{"type":"string","description":"Primary Care Provider’s phone number","example":"430-304-3949"},"fax":{"type":"string","example":"(955) 372-4143"},"street1":{"type":"string","example":"Rose way"},"street2":{"type":"string","example":"Gate way"},"city":{"type":"string","example":"Jacksonewill"},"state":{"type":"string","example":"CA","x-constraint":{"length":2}},"zip":{"type":"string","example":"60660","pattern":"^\\d{5}(-\\d{4})?$"}}},"Standard questions":{"type":"object","description":"Questions on patient’s medication, allergies, and medical conditions","properties":{"medications":{"type":"string","description":"Information on medications taken","example":"Ritalin"},"allergies":{"type":"string","description":"Allergy information","example":"Penicillin"},"conditions":{"type":"string","description":"Patient condition information","example":"Too Fly"}},"required":["medications","allergies","conditions"]},"answers":{"type":"object","properties":{"dischargeDate":{"type":"string","pattern":"^((1|2)\\d{3}-[01][0-9](?<!00)-[0-3][0-9](?<!00)$)"},"gapClosure":{"type":"string","enum":["1","2","3"],"x-alternatives":[{"type":"string","enum":["1","2","3"]},{"type":"number","enum":[1,2,3]}]}}},"Model192":{"type":"object","properties":{"id":{"type":"string","description":"Medication ID in the Questionnaire","example":"5fd2e79d4ff610001c3b84c5"},"ndc":{"type":"string","description":"National drug code","example":"ndc_code","enum":["ANY"],"pattern":"^[0-9]{4,5}-[0-9]{3,4}-[0-9]{1,3}$"},"days_supply":{"type":"number","description":"Days supply","example":90},"quantity":{"type":"number","description":"RX quantity","example":1},"num_refills":{"type":"number","description":"Number of refills","example":1},"strength":{"type":"string","description":"RX strength","example":"20mg"},"allow_substitutions":{"type":"boolean","description":"If medication is allowed to substitute","example":false},"frequency":{"type":"string","description":"The frequency of medication use","example":"MONTHLY","enum":["MONTHLY","QUARTERLY"]},"sig":{"type":"string","example":"Take 1 daily"},"notes_to_pharmacist":{"type":"string","example":"Disclaimer: This is a compounded prescription order for..."}}},"RX":{"type":"array","description":"RX information","items":{"$ref":"#/definitions/Model192"}},"Model193":{"type":"object","properties":{"hcpcs":{"type":"string","example":"hcpcs_billing_code"},"quantity":{"type":"number","example":1},"num_refills":{"type":"number","example":1}},"required":["hcpcs"]},"devices":{"type":"array","items":{"$ref":"#/definitions/Model193"}},"Model194":{"type":"object","properties":{"lab_test_name":{"type":"string"},"days_from_now":{"type":"integer","minimum":0},"kit_serial":{"type":"string","example":"8f4507a3-b3b6-4348-b1c3-91f8a66e8c78"},"panels":{"$ref":"#/definitions/insurance_tokens"},"return_tracking_number":{"type":"string"},"return_carrier":{"type":"string"}},"required":["lab_test_name","days_from_now"]},"Model195":{"type":"array","x-constraint":{},"items":{"$ref":"#/definitions/Model194"}},"preferred_treatment":{"type":"object","properties":{"rx":{"$ref":"#/definitions/RX"},"devices":{"$ref":"#/definitions/devices"},"lab_tests":{"$ref":"#/definitions/Model195"}}},"other_consult_info":{"type":"object","description":"Other consult information","example":"Bad feeling after wake up"},"Appointment":{"type":"object","description":"Appointment information","properties":{"duration":{"type":"number","description":"Appointment duration","example":3600,"default":3600},"appt_date":{"type":"string","format":"date-time","description":"Appointment date","example":"2020-02-08"}},"required":["appt_date"]},"Lab test result":{"type":"object","properties":{"observation":{"type":"string","example":"Positive","enum":["Positive","Negative","No Result Obtained","Sample Could Not Be Processed","Cancelled - Duplicate Order","Cancelled - Order Expired","Cancelled - Patient Request","Cancelled - Provider Request","invalid","Detected","PRE_DIABETIC","DIABETIC","LOW","NORMAL","HIGH"]},"notes":{"type":"string","x-alternatives":[{"type":"string"},{"$ref":"#/x-alt-definitions/selected_allergies"}]}}},"Model196":{"type":"object","properties":{"name":{"type":"string","description":"Lab tests name","example":"A1C"},"description":{"type":"string","description":"Lab test description","example":"Blood work"},"result":{"$ref":"#/definitions/Lab%20test%20result"}}},"Lab tests":{"type":"array","description":"Lab tests information","items":{"$ref":"#/definitions/Model196"}},"Model197":{"type":"object","properties":{"id":{"type":"string","description":"Should be a uuid","example":"059d52b6-b2b0-4bd1-97df-082b1e2196c1","pattern":"^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$"}}},"videos":{"type":"array","items":{"$ref":"#/definitions/Model197"}},"media":{"type":"object","properties":{"videos":{"$ref":"#/definitions/videos"},"images":{"$ref":"#/definitions/videos"},"documents":{"$ref":"#/definitions/videos"}}},"Model198":{"type":"object","properties":{"full_name":{"type":"string"},"phone":{"type":"string"}}},"authorized_representatives":{"type":"array","items":{"$ref":"#/definitions/Model198"}},"CreateConsult":{"type":"object","properties":{"metadata":{"type":"string","description":"Customer-side identifier","example":"1234"},"patient":{"$ref":"#/definitions/Patient"},"customer_note_to_pharmacy":{"type":"string","description":"This will be appended to the prescription note","example":"ju12345"},"shipping_address":{"$ref":"#/definitions/Shipping%20address"},"prescription_template":{"$ref":"#/definitions/Prescription%20template"},"primary_care_provider":{"$ref":"#/definitions/Primary%20care%20provider"},"documents":{"$ref":"#/definitions/icd_codes"},"insurances":{"type":"string","description":"Insurances information"},"questionaire":{"type":"string","example":"5dcf35ee85c869d281d85d43","x-constraint":{"length":24},"x-format":{"hex":{"byteAligned":false,"prefix":false}}},"standard_questions":{"$ref":"#/definitions/Standard%20questions"},"answers":{"$ref":"#/definitions/answers"},"preferred_treatment":{"$ref":"#/definitions/preferred_treatment"},"other_consult_info":{"$ref":"#/definitions/other_consult_info"},"is_video_consult":{"type":"boolean","description":"If the consult is through video or not","example":false},"appointment":{"$ref":"#/definitions/Appointment"},"payment_type":{"type":"string","description":"Payment type preffered","example":"insurance","enum":["insurance","cash"]},"attribute":{"type":"string","description":"Additional identifier","example":"my_attribute"},"lab_tests":{"$ref":"#/definitions/Lab%20tests"},"notificationSettings":{"$ref":"#/definitions/notificationSettings"},"media":{"$ref":"#/definitions/media"},"authorized_representatives":{"$ref":"#/definitions/authorized_representatives"}},"required":["patient","shipping_address","insurances","questionaire"]},"Model199":{"type":"object","properties":{"patient_token":{"type":"string","example":"e0a515397a25044g"}}},"videoLinks":{"type":"object","properties":{"patient":{"type":"string","example":"https://video.falsepill.com/?t=cGF0aWVudA%3D%&src=MjNhbmRtZQ%3D%4E"}}},"Model200":{"type":"object","properties":{"consult":{"type":"string","example":"61b27d15999d5b001d6784bc"},"patient":{"$ref":"#/definitions/Model199"},"videoLinks":{"$ref":"#/definitions/videoLinks"},"patient_token":{"type":"string","example":"e0a515397a25044g"}}},"keys":{"type":"array","items":{"type":"string","example":"appointment.apptDate"}},"Model201":{"type":"object","properties":{"source":{"type":"string","example":"payload"},"keys":{"$ref":"#/definitions/keys"}}},"validation":{"type":"array","items":{"$ref":"#/definitions/Model201"}},"Model202":{"type":"object","properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"string","example":"appointment.apptDate is required"},"validation":{"$ref":"#/definitions/validation"}}},"Model203":{"type":"object","properties":{"statusCode":{"type":"number","example":404},"error":{"type":"string","example":"Not Found"},"message":{"type":"string","example":"Questionaire not found (You may not be authorized to it)."}}},"Model204":{"type":"object","description":"Patient information","properties":{"first_name":{"type":"string","description":"Patient first name","example":"John"},"last_name":{"type":"string","description":"Patient last name","example":"Doe"},"dob":{"type":"string","description":"Patient date of birth","example":"19950503","pattern":"^(19|20)\\d\\d(0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01])$"},"gender":{"type":"string","description":"Patient gender","example":"male","enum":["male","female","unknown"]},"email":{"type":"string","description":"Patient contact email address","example":"some_mail@gmail.com","x-format":{"email":true}},"phone":{"type":"string","description":"Patient contact phone number","example":"430-304-3949"},"street1":{"type":"string","description":"Patient street 1","example":"1234 Main St"},"street2":{"type":"string","description":"Patient street 2","example":"Apt 9B"},"city":{"type":"string","description":"Patient city","example":"San Mateo"},"state":{"type":"string","description":"Patient state","example":"CA","x-constraint":{"length":2}},"zip":{"type":"string","description":"Location postal code","example":"60660","pattern":"^\\d{5}(-\\d{4})?$"}},"required":["first_name","last_name","dob","gender","zip"]},"Model205":{"type":"array","minItems":1,"items":{"type":"string"}},"PostOrders":{"type":"object","properties":{"patient":{"$ref":"#/definitions/Model204"},"patient_token":{"type":"string","description":"Token to reference Patient record. Only one of patient_token or patient will be accepted","example":"p4t13ntt0k3n"},"panels":{"$ref":"#/definitions/Model205"},"address":{"$ref":"#/definitions/Address"},"physician":{"$ref":"#/definitions/Physician"},"insurance":{"$ref":"#/definitions/Insurance"},"insurance_token":{"type":"string","description":"Only one of insurance_token or insurance will be accepted","example":"9502a8162af55927"},"kit_id":{"type":"string","description":"ID indicating which kit should be ordered","example":"e457d2e7-ebf4-403c-b2c1-a1970f16d011","x-format":{"guid":true}},"test_id":{"type":"string","description":"ID indicating which test should to be ordered","example":"84e14b68-0372-4d5b-9a33-5e3fe5b43247","x-format":{"guid":true}},"custom_data_1":{"type":"string","description":"A custom data string for external use. This can be any arbitrary UTF-8 string","example":"2012-01-26T13:51:50.417-07:00"},"custom_data_2":{"type":"string","description":"A custom data string for external use. This can be any arbitrary UTF-8 string","example":"2012-01-26T13:51:50.417-07:00"},"custom_data_3":{"type":"string","description":"A custom data string for external use. This can be any arbitrary UTF-8 string","example":"2012-01-26T13:51:50.417-07:00"},"specimen":{"$ref":"#/definitions/specimen"}},"required":["address","test_id"]},"Model206":{"type":"object","properties":{"auto_refill_id":{"type":"number","description":"ID of the newly created auto refill subscription."},"auto_refill_date":{"type":"string","format":"date","description":"Date the next refill will be filled.","example":"2021-07-31T00:00:00.000Z"}}},"Model207":{"type":"object","properties":{"auto_refill_medications":{"$ref":"#/definitions/Model206"}}},"Model208":{"type":"object","properties":{"timestamp":{"type":"string","format":"date","example":"2021-05-20T00:00:00.000Z"},"status":{"type":"string","example":"successful"},"details":{"$ref":"#/definitions/Model207"}}},"Model209":{"type":"object","properties":{"code":{"type":"number","example":200},"err":{"type":"boolean","example":false},"data":{"$ref":"#/definitions/Model208"}}},"Model210":{"type":"object","properties":{"copay_request_token":{"type":"string","description":"Copay token","example":"4526d90a"},"request_id":{"type":"string","description":"Request id","example":"bf11da52584eb54188bf8ebed33ef15f"}}},"Model211":{"type":"object","properties":{"code":{"type":"string","example":"CUSTOMER_CANCELLATION_REQUEST"},"description":{"type":"string","example":"Copay Request Cancelled by Customer Request"},"message":{"type":"string","example":"Accepted: Copay Request 34f68f71f980f78bb0bc has been cancelled."}}},"Model212":{"type":"object","properties":{"request_id":{"type":"string","example":"40277544de5c6ba685dc4161e189d3e2"},"timestamp":{"type":"integer","example":1631571795.423},"status":{"type":"string","example":"success"},"details":{"$ref":"#/definitions/Model211"}}},"Model213":{"type":"object","properties":{"message":{"type":"string","example":"Copay not found"}}},"patient_details":{"type":"object","description":"Patient details","properties":{"first_name":{"type":"string","description":"Patient first name","example":"John"},"last_name":{"type":"string","description":"Patient last name","example":"Doe"},"dob":{"type":"string","description":"Patient date of birth in YYYYMMDD format","example":"19950503","pattern":"^\\d{8}$"},"gender":{"type":"string","description":"Patient gender","example":"male","enum":["male","female"]},"zip":{"type":"string","description":"Patient zip code","example":"94105","pattern":"^\\d{5}(-\\d{4})?$"},"city":{"type":"string","description":"Patient city","example":"San Francisco"},"state":{"type":"string","description":"Patient state code","example":"CA","x-constraint":{"length":2}}},"required":["first_name","last_name","dob","gender","zip","city"]},"Model214":{"type":"object","description":"Either patient_token or patient_details must be provided, but not both","properties":{"patient_token":{"type":"string","description":"Patient token","example":"4526d90a"},"patient_details":{"$ref":"#/definitions/patient_details"}}},"Model215":{"type":"object","properties":{"cardholder_id":{"type":"string","description":"Cardholder ID","example":"XBC1009876543"},"bin":{"type":"string","description":"Bank identification number","example":"880099"},"group_number":{"type":"string","description":"Group number","example":"D96009620"},"pcn":{"type":"string","description":"Processor control number","example":"SP9E6"},"plan_type":{"type":"string","description":"Insurance plan type","example":"commercial","enum":["commercial","medicare","medicaid","other"]},"effective_date":{"type":"string","description":"Insurance effective date","example":"2019-03-01T00:00:00.000Z","x-format":{"isoDate":true}},"termination_date":{"type":"string","description":"Insurance termination date","example":"2020-02-29T00:00:00.000Z","x-format":{"isoDate":true}},"payer_name":{"type":"string","description":"Insurance payer name","example":"Anthem BC"},"person_code":{"type":"string","description":"Person code","example":"03"},"patient_relationship":{"type":"string","description":"Patient relationship to subscriber","example":"Child"}}},"Model216":{"type":"object","properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"message":{"type":"string","example":"Invalid or missing patient_token"}}},"Model217":{"type":"object","properties":{"statusCode":{"type":"number","example":503},"error":{"type":"string","example":"Service Unavailable"},"message":{"type":"string","example":"Surescripts service is currently unavailable"}}},"Model218":{"type":"object","properties":{"statusCode":{"type":"number","example":504},"error":{"type":"string","example":"Gateway Timeout"},"message":{"type":"string","example":"Surescripts service request timed out"}}},"Model219":{"type":"object","properties":{"company":{"type":"string","description":"Name of company associated with patient (if applicable)","example":"True Pill","x-convert":{"trim":true}},"street1":{"type":"string","description":"Street 1 of patient’s address","example":"123 Some Lane","x-convert":{"trim":true}},"street2":{"type":"string","description":"Street 2 of patient’s address (if applicable)","example":"Apt. 123","x-convert":{"trim":true}},"city":{"type":"string","description":"City of patient’s address","example":"Los Angeles","x-convert":{"trim":true}},"state":{"type":"string","description":"State of patient’s address, two-letter abbreviation","example":"CA","x-convert":{"trim":true}},"country":{"type":"string","default":"US","x-convert":{"trim":true}},"zip":{"type":"string","description":"Patient’s zip code","example":"94402","pattern":"^\\d{5}(-\\d{4})?$"},"phone":{"type":"string","description":"Patient’s phone number","example":"430-304-3949"},"email":{"type":"string","description":"Patient’s email address","example":"hulkout@hulk.com","x-format":{"email":true},"x-convert":{"trim":true}},"ssn":{"type":"string","description":"Social Security Number","example":"123456789","pattern":"^\\d{3}\\d{2}\\d{4}$"},"ssn_serial":{"type":"string","description":"Social Security Number (last 4 digits)","example":"6789","pattern":"^\\d{4}$"},"communications_opt_in":{"type":"boolean","example":false},"language_preference":{"type":"string","description":"Patient’s preferred language","example":"English"},"id_image":{"type":"string","description":"URL for image of user ID"},"mbi":{"type":"string","description":"Medicare Beneficiary ID","pattern":"^[1-9](?![SLOIBZ])[A-Z](?![SLOIBZ])[A-Z0-9][0-9](?![SLOIBZ])[A-Z](?![SLOIBZ])[A-Z0-9][0-9](?![SLOIBZ])[A-Z](?![SLOIBZ])[A-Z][0-9][0-9]$"},"viewed_notice_of_privacy_practices":{"type":"boolean"},"viewed_notice_of_privacy_practices_date":{"type":"string","description":"Date NOPP was received","example":"20180401","pattern":"^((1|2)\\d{3}[01][0-9][0-3][0-9]$)"}}},"Model220":{"type":"object","properties":{"message":{"type":"string","example":"Accepted: Patient a35be240f1f5da6b has been updated"}}},"Model221":{"type":"object","properties":{"patient_token":{"type":"string","example":"a35be240f1f5da6b"},"timestamp":{"type":"integer","example":1631571795},"status":{"type":"string","example":"success"},"details":{"$ref":"#/definitions/Model220"}}},"Model222":{"type":"object","properties":{"key":{"type":"string","example":"first_name"},"message":{"type":"string","example":"is not allowed"}}},"Model223":{"type":"array","items":{"$ref":"#/definitions/Model222"}},"Model224":{"type":"object","properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"validation_errors":{"$ref":"#/definitions/Model223"}}},"RegisterOrder":{"type":"object","description":"Register a new order using the existing kit serial","properties":{"patient":{"$ref":"#/definitions/Model204"},"patient_token":{"type":"string","description":"Token to reference Patient record. Only one of patient_token or patient will be accepted","example":"p4t13ntt0k3n"},"panels":{"$ref":"#/definitions/Model205"},"address":{"$ref":"#/definitions/Address"},"physician":{"$ref":"#/definitions/Physician"},"insurance":{"$ref":"#/definitions/Insurance"},"insurance_token":{"type":"string","description":"\tToken to reference a Patient's insurance. Only one of insurance_token or insurance will be accepted","example":"19sienglo92831n5"},"kit_id":{"type":"string","description":"ID indicating which kit should be ordered","example":"e457d2e7-ebf4-403c-b2c1-a1970f16d011","x-format":{"guid":true}},"kit_serial":{"type":"string","description":"Serial number of the kit to associate with this order","example":"ABBAHAHAHAHAHAHSINZN","minLength":1},"custom_data_1":{"type":"string","description":"A custom data string for external use. This can be any arbitrary UTF-8 string","example":"2012-01-26T13:51:50.417-07:00"},"custom_data_2":{"type":"string","description":"A custom data string for external use. This can be any arbitrary UTF-8 string","example":"2012-01-26T13:51:50.417-07:00"},"custom_data_3":{"type":"string","description":"A custom data string for external use. This can be any arbitrary UTF-8 string","example":"2012-01-26T13:51:50.417-07:00"},"test_id":{"type":"string","description":"ID indicating which test should to be ordered","example":"84e14b68-0372-4d5b-9a33-5e3fe5b43247","x-format":{"guid":true}}},"required":["kit_serial","test_id"]},"Model225":{"type":"object","properties":{"sas_id":{"type":"string","example":"985c7f9f-b506-424a-b016-0a47144f46b6"}}},"Model226":{"type":"object","properties":{"code":{"type":"number","example":200},"err":{"type":"boolean","example":false},"data":{"$ref":"#/definitions/Model225"}}},"Model227":{"type":"object","properties":{"reason":{"type":"string","example":"Discontinuation of therapy"}},"required":["reason"]},"Model228":{"type":"object","properties":{"street1":{"type":"string"},"street2":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip":{"type":"string"}},"required":["street1","city","state","zip"]},"transfer_to":{"type":"object","properties":{"pharmacy_name":{"type":"string"},"pharmacist_name":{"type":"string"},"npi":{"type":"string","pattern":"^[0-9]+$","x-constraint":{"length":10}},"phone":{"type":"string","pattern":"^\\(?\\d{3}\\)?[-\\s]?\\d{3}[-\\s]?\\d{4}$"},"fax":{"type":"string","pattern":"^\\(?\\d{3}\\)?[-\\s]?\\d{3}[-\\s]?\\d{4}$"},"address":{"$ref":"#/definitions/Model228"}},"required":["pharmacy_name","address"]},"Model229":{"type":"object","properties":{"reason_code":{"type":"string","enum":["RETAIL","MAIL","OON","NOT_COVERED","OTHER"]},"additional_information":{"type":"string"},"transfer_to":{"$ref":"#/definitions/transfer_to"}},"required":["reason_code","additional_information","transfer_to"]},"PUT ScheduledFill Request Payload":{"type":"object","properties":{"submit_on":{"type":"string","format":"date","example":"2026-08-26T21:27:03.315Z"}},"required":["submit_on"]},"Model230":{"type":"object","properties":{"guardian":{"type":"string"},"prefix":{"type":"string","description":"Patient title","example":"Mr","enum":["Mr.","Ms.","Mrs.","Miss","Ms","Prof","Sir"]},"suffix":{"type":"string","description":"Suffix which qualifies a person","example":"Jr.","enum":["Jr.","Sr.","I","II","III","IV","V"]},"first_name":{"type":"string","description":"Patient first name","example":"Lola","x-convert":{"trim":true}},"last_name":{"type":"string","description":"Patient last name","example":"Martin","x-convert":{"trim":true}},"gender":{"type":"string","description":"Patient gender","example":"female","enum":["male","female","unknown"]},"dob":{"type":"string","format":"date","description":"Patient's date of birth","example":"20180401"},"zip":{"type":"string","description":"Patient’s zip code","example":"94402","pattern":"^\\d{5}(-\\d{4})?$"},"species":{"type":"string","example":"sparrow","default":"Human","enum":["Human","Crocodile","Frog","Iguana","Lizard","Snake","Tortoise","Turtle","Spider","Other Arthopoda","Chicken","African Goshawk","Budgerigar","Cockatiel","Cockatoo","Common Canary","Crow","Duck","Eagle","Goose","Guinea Fowl","Kestrel","Kite","Macaw","Ostrich","Other Aves","Owl","Parakeet","Parrot","Partridge","Peregrin Falcon","Pheasant","Pigeon","Quail","Snipe","Sparrow","Starling","Swan","Turtle Dove","Bison","Cattle/Bovine","Buffalo","Other Bovinae","Alpaca","Camel","Llama","Other Camelidae","Dog/Canine","Fox","Jackal","Raccoon Dog","Wolf","Other Caprinae","Goat/Carpine","Sheep/Ovine","Elk","Moose","Fallow","Other Cervidae","Red Deer","Reindeer","Roe Deer","Donkey/Asinine","Horse/Equine","Hybrid","Other Equidae","Zebra","Bobcat","Cougar","Puma","European Lynx","Cat/Feline","Jaguar","Leopard","Lion","Other Felidae","Tiger","Wild Cat","European Rabbit","Hare","Other Leporidae","Bivalvia","Cephalopoda","Other Mollusca","Badger","Ferret","Mink","Other Mustelidae","Bat","Bear","Hedgehog","Monkey","Other Mammalia","Arctic Char","Atlantic Salmon","Brill","Carp","Catfish","Cod","Crucian Carp","European Eel","Gilthead","Goldfish","Gudgeon","Halibut","Largemouth Bass","Mullet","Other Pisces","Perch","Pike","Roach","Sea Bream","Seabass","Sharpsnout Seabream","Sole","Sturgeon","Tench","Trout","Turbot","Rockfish/Wolffish","Beaver","Chinchilla","Dormouse","Dwarf Hamster","European Hamster","Gerbil","Guinea Pig","House Mouse","Other Rodentia","Rat","Russian Hamster","Syrian Hamster","Golden Hamster","Vole","Other Suidae","Pig/Porcine","Wild Boar","Addax"]},"company":{"type":"string","description":"Name of company associated with patient (if applicable)","example":"True Pill","x-convert":{"trim":true}},"street1":{"type":"string","description":"Street 1 of patient’s address","example":"123 Some Lane","x-convert":{"trim":true}},"street2":{"type":"string","description":"Street 2 of patient’s address (if applicable)","example":"Apt. 123","x-convert":{"trim":true}},"city":{"type":"string","description":"City of patient’s address","example":"Los Angeles","x-convert":{"trim":true}},"state":{"type":"string","description":"State of patient’s address, two-letter abbreviation","example":"CA","x-convert":{"trim":true}},"country":{"type":"string","default":"US","x-convert":{"trim":true}},"phone":{"type":"string","description":"Patient’s phone number","example":"430-304-3949"},"email":{"type":"string","description":"Patient’s email address","example":"hulkout@hulk.com","x-format":{"email":true},"x-convert":{"trim":true}},"ssn":{"type":"string","description":"Social Security Number","example":"123456789","pattern":"^\\d{3}\\d{2}\\d{4}$"},"ssn_serial":{"type":"string","description":"Social Security Number (last 4 digits)","example":"6789","pattern":"^\\d{4}$"},"communications_opt_in":{"type":"boolean","example":false},"language_preference":{"type":"string","description":"Patient’s preferred language","example":"English","x-convert":{"trim":true}},"id_image":{"type":"string","description":"URL for image of user ID"},"mbi":{"type":"string","description":"Medicare Beneficiary ID","pattern":"^[1-9](?![SLOIBZ])[A-Z](?![SLOIBZ])[A-Z0-9][0-9](?![SLOIBZ])[A-Z](?![SLOIBZ])[A-Z0-9][0-9](?![SLOIBZ])[A-Z](?![SLOIBZ])[A-Z][0-9][0-9]$"},"viewed_notice_of_privacy_practices":{"type":"boolean"},"viewed_notice_of_privacy_practices_date":{"type":"string","description":"Date NOPP was received","example":"20180401","pattern":"^((1|2)\\d{3}[01][0-9][0-3][0-9]$)"}},"required":["first_name","last_name","gender","dob"]},"Model231":{"type":"object","properties":{"patient_token":{"type":"string","example":"a35be240f1f5da6b"}}},"Model232":{"type":"object","properties":{"key":{"type":"string","example":"gender"},"message":{"type":"string","example":"is required"}}},"Model233":{"type":"array","items":{"$ref":"#/definitions/Model232"}},"Model234":{"type":"object","properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"validation_errors":{"$ref":"#/definitions/Model233"}}},"Model235":{"type":"object","properties":{"stripe_id":{"type":"string","example":"pi_10f410zj3018s2"}},"required":["stripe_id"]},"Model236":{"type":"object","properties":{"stripe_id":{"type":"string","example":"pi_10f410zj3018s2"},"fill_request_token":{"type":"string","example":"a2fcd842de60b010"}},"required":["stripe_id","fill_request_token"]},"Model237":{"type":"object","properties":{"timestamp":{"type":"integer","example":1631571795.423},"status":{"type":"string","example":"success"},"details":{"$ref":"#/definitions/Model236"}}},"Model238":{"type":"object","properties":{"message":{"type":"string","example":"Invalid Stripe ID"}}},"Model239":{"type":"object","properties":{"message":{"type":"string","example":"Unauthorized from viewing this fill request"}}},"Model240":{"type":"object","properties":{"id":{"type":"string","example":"f716ba1c-bd4b-43c7-9395-84255cd943cd","x-format":{"guid":true}},"status":{"type":"string","example":"CANCELLED"}},"required":["id","status"]},"Model241":{"type":"object","properties":{"timestamp":{"type":"string","format":"date","example":"2026-08-26T21:27:02.648Z"},"status":{"type":"string","example":"successful"}}},"Model242":{"type":"object","properties":{"code":{"type":"number","example":200},"err":{"type":"boolean","example":false},"data":{"$ref":"#/definitions/Model241"}}},"Model243":{"type":"object","properties":{"consult_id":{"type":"string","example":"607619bb13b4b6001d36f223"}}},"Model244":{"type":"array","items":{"$ref":"#/definitions/Model243"}},"Model245":{"type":"object","properties":{"statusCode":{"type":"number","example":400},"error":{"type":"string","example":"Bad Request"},"validation_errors":{"$ref":"#/definitions/Model244"}}},"Model246":{"type":"object","properties":{"statusCode":{"type":"number","example":404},"error":{"type":"string","example":"Not Found"},"message":{"type":"string","example":"Consult not found. (You may not be authorized to it)"}}},"Model247":{"type":"object","properties":{"timestamp":{"type":"string","format":"date","example":"2026-08-26T21:27:02.650Z"},"status":{"type":"string","example":"successful"}}},"Model248":{"type":"object","properties":{"code":{"type":"number","example":200},"err":{"type":"boolean","example":false},"data":{"$ref":"#/definitions/Model247"}}},"Model249":{"type":"object","properties":{"mediaId":{"type":"string","x-format":{"guid":true}},"form":{"type":"string"}},"required":["mediaId"]},"Model250":{"type":"object","properties":{"statusCode":{"type":"number","example":404},"error":{"type":"string","example":"Not Found"},"message":{"type":"string","example":"Media to be updated does not exists in consult"}}},"Model251":{"type":"object","properties":{"status":{"type":"string","example":"issue","enum":["completed","issue","rejected","issueCompleted","issueRejected"]},"issueReasonTopic":{"type":"string"},"issueReason":{"type":"string"},"rejectReasonTopic":{"type":"string"},"rejectReason":{"type":"string"},"notes":{"type":"string"},"completionState":{"type":"string"},"rx_ndc":{"type":"string"},"providerAnswers":{"$ref":"#/definitions/icd_codes"},"icd10":{"type":"string"}},"required":["status","issueReason","rejectReason","notes","completionState"]},"Model252":{"type":"object","properties":{"newStatus":{"type":"string"},"statusFlowFromTo":{"type":"string"}}}},"x-alt-definitions":{"selected_allergies":{"type":"array","items":{"type":"string"}},"allergies":{"type":"object","properties":{"selected_allergies":{"$ref":"#/x-alt-definitions/selected_allergies"},"presented_allergies":{"$ref":"#/x-alt-definitions/selected_allergies"},"free_form_allergy_information":{"type":"string"}},"required":["selected_allergies","presented_allergies","free_form_allergy_information"]},"Model1":{"type":"object","properties":{"name":{"type":"string"},"strength":{"type":"number"},"dosage":{"type":"string"},"frequency":{"type":"string"}},"required":["name"]},"medications":{"type":"array","items":{"$ref":"#/x-alt-definitions/Model1"}},"Model2":{"type":"object","properties":{"type":{"type":"string"},"year":{"type":"number"},"reason":{"type":"string"}},"required":["type","year","reason"]},"events":{"type":"array","items":{"$ref":"#/x-alt-definitions/Model2"}},"patient_consent":{"type":"object","properties":{"consent_statement":{"type":"string"},"consent_method":{"type":"string"},"consent_date":{"type":"string"},"consent_type":{"type":"string"},"patient_name":{"type":"string"},"consent_provided_by":{"type":"string"},"item":{"type":"string"}}},"Model3":{"type":"object","properties":{"insurance_token":{"type":"string","description":"Insurance token","example":"adcbc795028c009d","minLength":1},"prior_authorization_number":{"type":"string","example":"ABC123","pattern":"^[0-9a-zA-Z]{1,35}$"},"other_coverage_code":{"type":"string","example":"8","pattern":"^[0-8]{1}$"},"submission_clarification_code":{"type":"string","example":"3","pattern":"^(?:[1-9]\\d?|0)$"}},"required":["insurance_token"]},"claim_overrides":{"type":"array","items":{"$ref":"#/x-alt-definitions/Model3"}},"pricing":{"type":"object","properties":{"ingredient_cost_submitted":{"type":"number","x-constraint":{"greater":0,"precision":2}}}},"Model4":{"type":"object","properties":{"prescription_token":{"type":"string","description":"Prescription token","example":"4526d90a","minLength":1},"quantity":{"type":"number","example":8.7},"days_supply":{"type":"number","example":30},"patient_consent":{"$ref":"#/x-alt-definitions/patient_consent"},"claim_overrides":{"$ref":"#/x-alt-definitions/claim_overrides"},"ndc":{"type":"string","description":"National drug code","example":"71858002504","pattern":"^[0-9]{10,11}$"},"daw":{"type":"string","example":"2","enum":["0","2"]},"copay_limit":{"type":"number","minimum":0,"x-constraint":{"precision":2}},"pricing":{"$ref":"#/x-alt-definitions/pricing"}},"required":["prescription_token","daw"]},"insurance_token":{"type":"array","example":["skhsyq83rkd3uht9","ubqfc1a0a17hjb1c","oi4aafwcsv5zzvvj"],"minItems":1,"items":{"type":"string"}},"copay_payment":{"type":"object","properties":{"cardholder_name":{"type":"string","description":"Cardholder name","example":"John Doe"},"payment_type":{"type":"string"},"last_four_digits":{"type":"string","example":"4132"},"transaction_amount":{"type":"number"},"card_type":{"type":"string"},"transaction_date":{"type":"string"},"transaction_id":{"type":"string"}},"required":["payment_type"]},"Medication":{"type":"object","description":"Medication description","example":[{"prescription_token":"z3q2jr"},{"prescription_token":"3cs873"}],"properties":{"medication_name":{"type":"string","description":"Medication name","example":"Ritalin","maxLength":255},"quantity_dispensed":{"type":"number","description":"Dispensed medication quantity","example":60},"days_supply":{"type":"number","description":"Days supply","example":30},"is_refill":{"type":"boolean","description":"Is prescription a refill or new fill","example":true},"medication_sig":{"type":"string","description":"Recommendations for medicines","example":"Apply daily."},"prescribing_doctor":{"type":"string","description":"Prescribing doctor","example":"Dr. Storm"},"prescription_token":{"type":"string","description":"Prescription token","example":"4526d90a","minLength":1},"rx_link":{"type":"string","minLength":1},"quantity":{"type":"number","description":"Quantity sent","example":30,"x-constraint":{"greater":0}},"copay_payment":{"$ref":"#/x-alt-definitions/copay_payment"},"ndc":{"type":"string","description":"National drug code","example":"12345678901","pattern":"^[0-9]{11}$"},"daw":{"type":"string","example":"2","enum":["0","2"]},"patient_consent":{"$ref":"#/x-alt-definitions/patient_consent"}},"required":["daw"]},"MedicationArray":{"type":"array","x-constraint":{},"items":{"$ref":"#/x-alt-definitions/Medication"}},"auto_refill":{"type":"object","properties":{"date_provided":{"type":"string","format":"date","description":"Date of consent","example":"2022-05-12"},"consent_statement":{"type":"string","description":"Statement confirming consent","example":"I consent"}},"required":["date_provided","consent_statement"]},"Model5":{"type":"object","properties":{"consent_statement":{"type":"string"},"consent_method":{"type":"string"},"consent_date":{"type":"string"},"consent_type":{"type":"string"},"patient_name":{"type":"string"},"consent_provided_by":{"type":"string"},"item":{"type":"string"},"auto_refill":{"$ref":"#/x-alt-definitions/auto_refill"}}},"Model6":{"type":"object","description":"Medication description","example":[{"prescription_token":"z3q2jr"},{"prescription_token":"3cs873"}],"properties":{"medication_name":{"type":"string","description":"Medication name","example":"Ritalin","maxLength":255},"quantity_dispensed":{"type":"number","description":"Dispensed medication quantity","example":60},"days_supply":{"type":"number","description":"Days supply","example":30},"is_refill":{"type":"boolean","description":"Is prescription a refill or new fill","example":true},"medication_sig":{"type":"string","description":"Recommendations for medicines","example":"Apply daily."},"prescribing_doctor":{"type":"string","description":"Prescribing doctor","example":"Dr. Storm"},"prescription_token":{"type":"string","description":"Prescription token","example":"4526d90a","minLength":1},"rx_link":{"type":"string","minLength":1},"quantity":{"type":"number","description":"Quantity sent","example":30,"x-constraint":{"greater":0}},"copay_payment":{"$ref":"#/x-alt-definitions/copay_payment"},"ndc":{"type":"string","description":"National drug code","example":"12345678901","pattern":"^[0-9]{11}$"},"daw":{"type":"string","example":"2","enum":["0","2"]},"patient_consent":{"$ref":"#/x-alt-definitions/Model5"}},"required":["daw"]},"Model7":{"type":"array","x-constraint":{},"items":{"$ref":"#/x-alt-definitions/Model6"}},"Shipping Address":{"type":"object","properties":{"name":{"type":"string","minLength":1},"company":{"type":"string","minLength":0},"street1":{"type":"string","description":"Primary street of the address","minLength":1},"street2":{"type":"string","description":"Secondary street","minLength":0},"city":{"type":"string","description":"City","minLength":1},"state":{"type":"string","description":"State","minLength":1},"zip":{"type":"string","minLength":0,"pattern":"^\\d{5}(-\\d{4})?$"},"country":{"type":"string","description":"Country","default":"US","minLength":1},"phone":{"type":"string","minLength":0},"email":{"type":"string","minLength":1},"fax":{"type":"string","minLength":0}},"required":["name","street1","city","state","zip","country","email"]},"shipping_address":{"type":"object","properties":{"phone":{"type":"string","minLength":0}},"required":["phone"]},"external_location":{"type":"object","properties":{"id":{"type":"string","description":"Stringified UUIDv4.\nSee [RFC 4112](https://tools.ietf.org/html/rfc4122)","minLength":0,"pattern":"^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$"},"pharmacy":{"type":"string","description":"References GET /v1/external_location_pharmacies","minLength":0},"npi":{"type":"string","description":"NPI - likely type 2","minLength":0,"maxLength":10,"pattern":"^[0-9]{10}$"},"address_to_street1":{"type":"string","minLength":0},"address_to_street2":{"type":"string","minLength":0},"address_to_city":{"type":"string","minLength":0},"address_to_state":{"type":"string","minLength":0,"pattern":"^[A-Z]{2}$"},"address_to_zip":{"type":"string","minLength":0,"pattern":"^\\d{5}(-?\\d{4})?$"},"address_to_country":{"type":"string","minLength":0,"pattern":"^[A-Z]{2}$"},"address_to_phone":{"type":"string","minLength":0,"pattern":"^(\\+)?[1-9]\\d{1,14}$"},"address_to_fax":{"type":"string","description":"The fax number of the address","minLength":0,"maxLength":255,"pattern":"^[1-9]\\d{1,14}$"}},"required":["id","pharmacy","npi","address_to_street1","address_to_city","address_to_state","address_to_zip","address_to_country"]},"Model8":{"type":"object","properties":{"ncpdpid":{"type":"string","description":"NCPDP ID - National Council for Prescription Drug Programs","minLength":0},"distance_from_origin":{"type":"number","description":"Approximate distance rounded to nearest 0.01 mile"}},"required":["ncpdpid"]}}}