Skip to content

Instantly share code, notes, and snippets.

@tharinduNA
Created March 9, 2015 05:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tharinduNA/378a3b107dc58f28177f to your computer and use it in GitHub Desktop.
Save tharinduNA/378a3b107dc58f28177f to your computer and use it in GitHub Desktop.
Debug area output of the Xcode, when trying to save a patient, https://wiki.openmrs.org/display/projects/OpenMRS+iOS+Client+Extensions
//This is the output of debug area when the app is on simulator
2015-03-09 10:57:50.611 OpenMRS-iOS[1156:25224] Parameters: {
age = 35;
gender = M;
names = (
{
familyName = Siemon;
givenName = Don;
}
);
}
2015-03-09 10:57:51.911 OpenMRS-iOS[1156:25224] failure: {"error":{"message":"Invalid Submission","code":"webservices.rest.error.invalid.submission","globalErrors":[{"code":"Identifier Location cannot be null for 123","message":"Identifier Location cannot be null for 123"}],"fieldErrors":{}}}
//This is the output of debug area when the app runs on a device
2015-03-09 10:55:49.918 OpenMRS-iOS[1384:334531] Parameters: {
age = 35;
gender = M;
names = (
{
familyName = Siemon;
givenName = Don;
}
);
}
2015-03-09 10:56:50.824 OpenMRS-iOS[1384:334531] Failure adding patient:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment