Difference between revisions of "Template:Json PatientDirectMessageSend Block - Java"
From Updox API
(2 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | private | + | private Map<String,Object> BuildMessage() throws Exception |
{ | { | ||
Map<String,Object> messageData = new HashMap(); | Map<String,Object> messageData = new HashMap(); | ||
Line 10: | Line 10: | ||
patientDemographics.put("middleName", ""); | patientDemographics.put("middleName", ""); | ||
patientDemographics.put("lastName", "Doe"); | patientDemographics.put("lastName", "Doe"); | ||
− | patientDemographics.put(" | + | patientDemographics.put("dateOfBirth","1990-10-10"); |
patientDemographics.put("gender","F"); | patientDemographics.put("gender","F"); | ||
patientDemographics.put("emailAddress",""); | patientDemographics.put("emailAddress",""); | ||
messageData.put("patientDemographics", patientDemographics); | messageData.put("patientDemographics", patientDemographics); | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Map<String,String> authData = new HashMap(); | Map<String,String> authData = new HashMap(); | ||
authData.put("applicationId", "updox"); | authData.put("applicationId", "updox"); | ||
authData.put("applicationPassword", "password"); | authData.put("applicationPassword", "password"); | ||
− | authData.put("accountId", " | + | authData.put("accountId", "updox_acct"); |
− | authData.put("userId", " | + | authData.put("userId", "updox_user"); |
messageData.put("auth", authData); | messageData.put("auth", authData); | ||
return messageData; | return messageData; | ||
} | } |
Latest revision as of 09:38, 4 December 2013
private Map<String,Object> BuildMessage() throws Exception { Map<String,Object> messageData = new HashMap(); messageData.put("to","dublin@direct.updoxqa.com"); messageData.put("subject","Test Subject"); messageData.put("textMessage","Test message body"); Map<String,String> patientDemographics = new HashMap(); patientDemographics.put("patientId", "100030"); patientDemographics.put("firstName", "Jane"); patientDemographics.put("middleName", ""); patientDemographics.put("lastName", "Doe"); patientDemographics.put("dateOfBirth","1990-10-10"); patientDemographics.put("gender","F"); patientDemographics.put("emailAddress",""); messageData.put("patientDemographics", patientDemographics); Map<String,String> authData = new HashMap(); authData.put("applicationId", "updox"); authData.put("applicationPassword", "password"); authData.put("accountId", "updox_acct"); authData.put("userId", "updox_user"); messageData.put("auth", authData); return messageData; }