Skip to content

Instantly share code, notes, and snippets.

@isears
Created December 21, 2019 20:18
Show Gist options
  • Save isears/4638353c0811e50043f06be0510fcb4f to your computer and use it in GitHub Desktop.
Save isears/4638353c0811e50043f06be0510fcb4f to your computer and use it in GitHub Desktop.
Register patient on staging through proxy
# Get an Identifier
curl "https://openmrs-staging.fortitudotelemed.com/mobile-gateway/fetch" --insecure
# Replace identifier in JSON data with new identifier for new patient registration
curl -X POST "https://openmrs-staging.fortitudotelemed.com/mobile-gateway/register" -H "Content-type: application/json" --insecure -d '{ "identifiers": [{ "identifier":"1000MJ", "identifierType":"05a29f94-c0ed-11e2-94be-8c13b969e334", "location":"aff27d58-a15c-49a6-9beb-d30dcfc0c66e", "preferred": true }], "person": { "gender": "M", "age": 47, "birthdate": "1970-01-01T00:00:00.000+0100","birthdateEstimated": false, "dead": false, "deathDate": null, "causeOfDeath": null, "names": [{"givenName": "Thomas5", "familyName": "Smith"}], "attributes":[{"attributeType":{"uuid":"14d4f066-15f5-102d-96e4-000c29c2a5d7"}, "value":"4444444442"}]}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment