-
-
Save johnkingzy/e16e20d7196de14dec9bafaa75f3d8dc to your computer and use it in GitHub Desktop.
CURL Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl --location --request POST 'https://api.redoxengine.com/endpoint' \ | |
| --header 'Authorization: Bearer 8c6f0a91-01a0-4240-bb90-412e285adcdc' \ | |
| --header 'Content-Type: application/json' \ | |
| --data-raw '{ | |
| "Meta": { | |
| "DataModel": "Results", | |
| "EventType": "New", | |
| "EventDateTime": "2021-06-29T21:13:48.430Z", | |
| "Test": true, | |
| "Source": { | |
| "ID": "7ce6f387-c33c-417d-8682-81e83628cbd9", | |
| "Name": "Redox Dev Tools" | |
| }, | |
| "Destinations": [ | |
| { | |
| "ID": "af394f14-b34a-464f-8d24-895f370af4c9", | |
| "Name": "Redox EMR" | |
| } | |
| ], | |
| "Message": { | |
| "ID": 5565 | |
| }, | |
| "Transmission": { | |
| "ID": 12414 | |
| }, | |
| "FacilityCode": null | |
| }, | |
| "Patient": { | |
| "Identifiers": [ | |
| { | |
| "ID": "0000000001", | |
| "IDType": "MR" | |
| }, | |
| { | |
| "ID": "e167267c-16c9-4fe3-96ae-9cff5703e90a", | |
| "IDType": "EHRID" | |
| }, | |
| { | |
| "ID": "a1d4ee8aba494ca", | |
| "IDType": "NIST" | |
| } | |
| ], | |
| "Demographics": { | |
| "FirstName": "Timothy", | |
| "MiddleName": "Paul", | |
| "LastName": "Bixby", | |
| "DOB": "2008-01-06", | |
| "SSN": "101-01-0001", | |
| "Sex": "Male", | |
| "Race": "White", | |
| "IsHispanic": null, | |
| "MaritalStatus": "Married", | |
| "IsDeceased": null, | |
| "DeathDateTime": null, | |
| "PhoneNumber": { | |
| "Home": "+18088675301", | |
| "Office": null, | |
| "Mobile": null | |
| }, | |
| "EmailAddresses": [], | |
| "Language": "en", | |
| "Citizenship": [], | |
| "Address": { | |
| "StreetAddress": "4762 Hickory Street", | |
| "City": "Monroe", | |
| "State": "WI", | |
| "ZIP": "53566", | |
| "County": "Green", | |
| "Country": "US" | |
| } | |
| }, | |
| "Notes": [], | |
| "Contacts": [ | |
| { | |
| "FirstName": "Barbara", | |
| "MiddleName": null, | |
| "LastName": "Bixby", | |
| "Address": { | |
| "StreetAddress": "4762 Hickory Street", | |
| "City": "Monroe", | |
| "State": "WI", | |
| "ZIP": "53566", | |
| "County": "Green", | |
| "Country": "US" | |
| }, | |
| "PhoneNumber": { | |
| "Home": "+18088675303", | |
| "Office": "+17077543758", | |
| "Mobile": "+19189368865" | |
| }, | |
| "RelationToPatient": "Mother", | |
| "EmailAddresses": [ | |
| "[email protected]" | |
| ], | |
| "Roles": [ | |
| "Emergency Contact" | |
| ] | |
| } | |
| ] | |
| }, | |
| "Orders": [ | |
| { | |
| "ID": "157968300", | |
| "ApplicationOrderID": null, | |
| "TransactionDateTime": "2015-05-06T06:00:58.872Z", | |
| "CollectionDateTime": "2015-05-06T06:00:58.872Z", | |
| "CompletionDateTime": "2015-05-06T06:00:58.872Z", | |
| "Notes": [], | |
| "ResultsStatus": "Final", | |
| "Procedure": { | |
| "Code": "49086-2", | |
| "Codeset": null, | |
| "Description": "First trimester maternal screen with nuchal translucency panel" | |
| }, | |
| "Provider": { | |
| "NPI": "4356789876", | |
| "ID": null, | |
| "IDType": null, | |
| "FirstName": "Pat", | |
| "LastName": "Granite", | |
| "Credentials": [], | |
| "Address": { | |
| "StreetAddress": null, | |
| "City": null, | |
| "State": null, | |
| "ZIP": null, | |
| "County": null, | |
| "Country": null | |
| }, | |
| "EmailAddresses": [], | |
| "PhoneNumber": { | |
| "Office": null | |
| }, | |
| "Location": { | |
| "Type": null, | |
| "Facility": null, | |
| "Department": null, | |
| "Room": null | |
| } | |
| }, | |
| "ResultCopyProviders": [], | |
| "Status": "Resulted", | |
| "ResponseFlag": "Associated Segments", | |
| "Priority": "Stat", | |
| "Results": [ | |
| { | |
| "Code": "TEST0001", | |
| "Codeset": null, | |
| "Description": "Cystic Fibrosis", | |
| "RelatedGroupID": null, | |
| "Specimen": { | |
| "Source": null, | |
| "BodySite": null, | |
| "ID": null | |
| }, | |
| "Value": "Positive Result", | |
| "ValueType": "String", | |
| "CompletionDateTime": null, | |
| "FileType": null, | |
| "Units": null, | |
| "Notes": [ | |
| "This individual is a carrier for Cystic Fibrosis." | |
| ], | |
| "AbnormalFlag": "Very Abnormal", | |
| "Status": "Final", | |
| "PrimaryResultsInterpreter": { | |
| "NPI": null, | |
| "ID": null, | |
| "IDType": null, | |
| "FirstName": null, | |
| "LastName": null, | |
| "Credentials": [], | |
| "Address": { | |
| "StreetAddress": null, | |
| "City": null, | |
| "State": null, | |
| "ZIP": null, | |
| "County": null, | |
| "Country": null | |
| }, | |
| "EmailAddresses": [], | |
| "PhoneNumber": { | |
| "Office": null | |
| }, | |
| "Location": { | |
| "Type": null, | |
| "Facility": null, | |
| "Department": null, | |
| "Room": null | |
| } | |
| }, | |
| "Producer": { | |
| "ID": "RL001", | |
| "Name": "Redox Lab WI", | |
| "IDType": null, | |
| "Address": { | |
| "StreetAddress": "111 W. Fairchild", | |
| "City": "Madison", | |
| "State": "WI", | |
| "ZIP": "53703", | |
| "County": "Dane", | |
| "Country": "USA" | |
| } | |
| }, | |
| "Performer": { | |
| "ID": null, | |
| "IDType": null, | |
| "FirstName": "Bob", | |
| "LastName": "Smith", | |
| "Credentials": [ | |
| "MD" | |
| ], | |
| "Address": { | |
| "StreetAddress": null, | |
| "City": null, | |
| "State": null, | |
| "ZIP": null, | |
| "County": null, | |
| "Country": null | |
| }, | |
| "EmailAddresses": [], | |
| "PhoneNumber": { | |
| "Office": null | |
| }, | |
| "Location": { | |
| "Type": null, | |
| "Facility": null, | |
| "Department": null, | |
| "Room": null | |
| } | |
| }, | |
| "ReferenceRange": { | |
| "Low": null, | |
| "High": null, | |
| "Text": null | |
| }, | |
| "ObservationMethod": { | |
| "Code": null, | |
| "Codeset": null, | |
| "Description": null | |
| } | |
| }, | |
| { | |
| "Code": "TEST0004", | |
| "Codeset": null, | |
| "Description": "Primary Carnitine Deficiency", | |
| "RelatedGroupID": null, | |
| "Specimen": { | |
| "Source": null, | |
| "BodySite": null, | |
| "ID": null | |
| }, | |
| "Value": "Negative Result", | |
| "ValueType": "String", | |
| "CompletionDateTime": null, | |
| "FileType": null, | |
| "Units": null, | |
| "Notes": [], | |
| "AbnormalFlag": "Normal", | |
| "Status": "Final", | |
| "PrimaryResultsInterpreter": { | |
| "NPI": null, | |
| "ID": null, | |
| "IDType": null, | |
| "FirstName": null, | |
| "LastName": null, | |
| "Credentials": [], | |
| "Address": { | |
| "StreetAddress": null, | |
| "City": null, | |
| "State": null, | |
| "ZIP": null, | |
| "County": null, | |
| "Country": null | |
| }, | |
| "EmailAddresses": [], | |
| "PhoneNumber": { | |
| "Office": null | |
| }, | |
| "Location": { | |
| "Type": null, | |
| "Facility": null, | |
| "Department": null, | |
| "Room": null | |
| } | |
| }, | |
| "Producer": { | |
| "ID": "RL001", | |
| "Name": "Redox Lab WI", | |
| "IDType": null, | |
| "Address": { | |
| "StreetAddress": "111 W. Fairchild", | |
| "City": "Madison", | |
| "State": "WI", | |
| "ZIP": "53703", | |
| "County": "Dane", | |
| "Country": "USA" | |
| } | |
| }, | |
| "Performer": { | |
| "ID": null, | |
| "IDType": null, | |
| "FirstName": "Bob", | |
| "LastName": "Smith", | |
| "Credentials": [ | |
| "MD" | |
| ], | |
| "Address": { | |
| "StreetAddress": null, | |
| "City": null, | |
| "State": null, | |
| "ZIP": null, | |
| "County": null, | |
| "Country": null | |
| }, | |
| "EmailAddresses": [], | |
| "PhoneNumber": { | |
| "Office": null | |
| }, | |
| "Location": { | |
| "Type": null, | |
| "Facility": null, | |
| "Department": null, | |
| "Room": null | |
| } | |
| }, | |
| "ReferenceRange": { | |
| "Low": null, | |
| "High": null, | |
| "Text": null | |
| }, | |
| "ObservationMethod": { | |
| "Code": null, | |
| "Codeset": null, | |
| "Description": null | |
| } | |
| } | |
| ] | |
| } | |
| ], | |
| "Visit": { | |
| "VisitDateTime": null, | |
| "VisitNumber": null, | |
| "AccountNumber": null, | |
| "PatientClass": null, | |
| "Location": { | |
| "Type": null, | |
| "Facility": null, | |
| "Department": null, | |
| "Room": null, | |
| "Bed": null | |
| }, | |
| "AttendingProvider": { | |
| "ID": null, | |
| "IDType": null, | |
| "FirstName": null, | |
| "LastName": null, | |
| "Credentials": [], | |
| "Address": { | |
| "StreetAddress": null, | |
| "City": null, | |
| "State": null, | |
| "ZIP": null, | |
| "County": null, | |
| "Country": null | |
| }, | |
| "EmailAddresses": [], | |
| "PhoneNumber": { | |
| "Office": null | |
| }, | |
| "Location": { | |
| "Type": null, | |
| "Facility": null, | |
| "Department": null, | |
| "Room": null | |
| } | |
| }, | |
| "ReferringProvider": { | |
| "ID": null, | |
| "IDType": null, | |
| "FirstName": null, | |
| "LastName": null, | |
| "Credentials": [], | |
| "Address": { | |
| "StreetAddress": null, | |
| "City": null, | |
| "State": null, | |
| "ZIP": null, | |
| "County": null, | |
| "Country": null | |
| }, | |
| "EmailAddresses": [], | |
| "PhoneNumber": { | |
| "Office": null | |
| }, | |
| "Location": { | |
| "Type": null, | |
| "Facility": null, | |
| "Department": null, | |
| "Room": null | |
| } | |
| } | |
| } | |
| }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment