Skip to content

Instantly share code, notes, and snippets.

@pbraswell
Created August 23, 2014 18:44
Show Gist options
  • Save pbraswell/c295773959e4d5fee55a to your computer and use it in GitHub Desktop.
Save pbraswell/c295773959e4d5fee55a to your computer and use it in GitHub Desktop.
Patient creation via curl
curl -u 'api_uid:api_pw' --data "[email protected]&AddressCity=SomeCity&AddressStreet1=Main&AdressRegion=VA&TimeZone=EST&CustomerPhone=555-555-5555&CustomerLastName=Smith&CustomerFirstName=John&[email protected]&HeardAbout=yep&OrderReference=1&OrderProductName=widget&ClinicalAccessCode=CCSD2013&OrderReferrer=bob&CustomerSleepPhysician=Dr.%20Who&CustomerBirthDate=27&CustomerBirthMonth=01" http://107.22.212.178/callback/activate
Results in:
<?xml version="1.0" encoding="UTF-8"?>
<participant>
<account-type>None</account-type>
<created-at type="datetime">2014-08-23T18:42:48+00:00</created-at>
<deleted type="boolean">false</deleted>
<detailed-logging type="boolean" nil="true"></detailed-logging>
<id type="integer">36</id>
<login-id>6751</login-id>
<participant-type>Patient</participant-type>
<randomizationblock type="integer" nil="true"></randomizationblock>
<snapshot type="boolean">false</snapshot>
<status nil="true"></status>
<time-delta-days type="integer">0</time-delta-days>
<timezone>EST</timezone>
<updated-at type="datetime">2014-08-23T18:42:56+00:00</updated-at>
</participant>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment