WebService_EMR_PatientLetter


Click here for a complete list of operations.

SavePatientLetterForLeave

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
letter_id:
user_id:
visit_id:
letter_type_id:
title:
body:
status:
approved_by_id:
approved_on:
approval_remark:
is_need_helper:
helper_name:
helper_id:
letter_on:
cause_of_death:
next_of_kin:
relationship:
referralStation:
fromdate:
todate:
checkDate:
returnToWorkDate:
HSA2Type:
expectedBirthDate:
beforeBirthFromDate:
beforeBirthToDate:
actualBirthDate:
noOfBaby:
afterBirthFromDate:
afterBirthToDate:
adoptedDate:
childAgeMonth:
childAgeDay:
adoptedFromDate:
adoptedToDate:
wifeExpBirthDate:
wifeBirthDate:
wifeNoOfBaby:
paternityFromDate:
paternityToDate:
val_ChkHSA1:
hsa2_birth_type:
disablementByClinic:
confirmDateByClinic:
disablementByHO:
confirmDateByHO:
Has1type:
isEdited:
ward_id:
accidental_date:
check_revisit:
revisit_date:
check_revisitno:
hsa1_duration_days:
RequestID:

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /Modules/EMR/WebServices/WebService_EMR_PatientLetter.asmx HTTP/1.1
Host: 10.20.1.42
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/SavePatientLetterForLeave"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <SavePatientLetterForLeave xmlns="http://tempuri.org/">
      <letter_id>string</letter_id>
      <user_id>string</user_id>
      <visit_id>string</visit_id>
      <letter_type_id>string</letter_type_id>
      <title>string</title>
      <body>string</body>
      <status>string</status>
      <approved_by_id>string</approved_by_id>
      <approved_on>string</approved_on>
      <approval_remark>string</approval_remark>
      <is_need_helper>string</is_need_helper>
      <helper_name>string</helper_name>
      <helper_id>string</helper_id>
      <letter_on>string</letter_on>
      <cause_of_death>string</cause_of_death>
      <next_of_kin>string</next_of_kin>
      <relationship>string</relationship>
      <referralStation>string</referralStation>
      <fromdate>string</fromdate>
      <todate>string</todate>
      <checkDate>string</checkDate>
      <returnToWorkDate>string</returnToWorkDate>
      <HSA2Type>string</HSA2Type>
      <expectedBirthDate>string</expectedBirthDate>
      <beforeBirthFromDate>string</beforeBirthFromDate>
      <beforeBirthToDate>string</beforeBirthToDate>
      <actualBirthDate>string</actualBirthDate>
      <noOfBaby>string</noOfBaby>
      <afterBirthFromDate>string</afterBirthFromDate>
      <afterBirthToDate>string</afterBirthToDate>
      <adoptedDate>string</adoptedDate>
      <childAgeMonth>string</childAgeMonth>
      <childAgeDay>string</childAgeDay>
      <adoptedFromDate>string</adoptedFromDate>
      <adoptedToDate>string</adoptedToDate>
      <wifeExpBirthDate>string</wifeExpBirthDate>
      <wifeBirthDate>string</wifeBirthDate>
      <wifeNoOfBaby>string</wifeNoOfBaby>
      <paternityFromDate>string</paternityFromDate>
      <paternityToDate>string</paternityToDate>
      <val_ChkHSA1>string</val_ChkHSA1>
      <hsa2_birth_type>string</hsa2_birth_type>
      <disablementByClinic>string</disablementByClinic>
      <confirmDateByClinic>string</confirmDateByClinic>
      <disablementByHO>string</disablementByHO>
      <confirmDateByHO>string</confirmDateByHO>
      <Has1type>string</Has1type>
      <isEdited>string</isEdited>
      <ward_id>string</ward_id>
      <accidental_date>string</accidental_date>
      <check_revisit>string</check_revisit>
      <revisit_date>string</revisit_date>
      <check_revisitno>string</check_revisitno>
      <hsa1_duration_days>string</hsa1_duration_days>
      <RequestID>string</RequestID>
    </SavePatientLetterForLeave>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <SavePatientLetterForLeaveResponse xmlns="http://tempuri.org/">
      <SavePatientLetterForLeaveResult>string</SavePatientLetterForLeaveResult>
    </SavePatientLetterForLeaveResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /Modules/EMR/WebServices/WebService_EMR_PatientLetter.asmx HTTP/1.1
Host: 10.20.1.42
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <SavePatientLetterForLeave xmlns="http://tempuri.org/">
      <letter_id>string</letter_id>
      <user_id>string</user_id>
      <visit_id>string</visit_id>
      <letter_type_id>string</letter_type_id>
      <title>string</title>
      <body>string</body>
      <status>string</status>
      <approved_by_id>string</approved_by_id>
      <approved_on>string</approved_on>
      <approval_remark>string</approval_remark>
      <is_need_helper>string</is_need_helper>
      <helper_name>string</helper_name>
      <helper_id>string</helper_id>
      <letter_on>string</letter_on>
      <cause_of_death>string</cause_of_death>
      <next_of_kin>string</next_of_kin>
      <relationship>string</relationship>
      <referralStation>string</referralStation>
      <fromdate>string</fromdate>
      <todate>string</todate>
      <checkDate>string</checkDate>
      <returnToWorkDate>string</returnToWorkDate>
      <HSA2Type>string</HSA2Type>
      <expectedBirthDate>string</expectedBirthDate>
      <beforeBirthFromDate>string</beforeBirthFromDate>
      <beforeBirthToDate>string</beforeBirthToDate>
      <actualBirthDate>string</actualBirthDate>
      <noOfBaby>string</noOfBaby>
      <afterBirthFromDate>string</afterBirthFromDate>
      <afterBirthToDate>string</afterBirthToDate>
      <adoptedDate>string</adoptedDate>
      <childAgeMonth>string</childAgeMonth>
      <childAgeDay>string</childAgeDay>
      <adoptedFromDate>string</adoptedFromDate>
      <adoptedToDate>string</adoptedToDate>
      <wifeExpBirthDate>string</wifeExpBirthDate>
      <wifeBirthDate>string</wifeBirthDate>
      <wifeNoOfBaby>string</wifeNoOfBaby>
      <paternityFromDate>string</paternityFromDate>
      <paternityToDate>string</paternityToDate>
      <val_ChkHSA1>string</val_ChkHSA1>
      <hsa2_birth_type>string</hsa2_birth_type>
      <disablementByClinic>string</disablementByClinic>
      <confirmDateByClinic>string</confirmDateByClinic>
      <disablementByHO>string</disablementByHO>
      <confirmDateByHO>string</confirmDateByHO>
      <Has1type>string</Has1type>
      <isEdited>string</isEdited>
      <ward_id>string</ward_id>
      <accidental_date>string</accidental_date>
      <check_revisit>string</check_revisit>
      <revisit_date>string</revisit_date>
      <check_revisitno>string</check_revisitno>
      <hsa1_duration_days>string</hsa1_duration_days>
      <RequestID>string</RequestID>
    </SavePatientLetterForLeave>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <SavePatientLetterForLeaveResponse xmlns="http://tempuri.org/">
      <SavePatientLetterForLeaveResult>string</SavePatientLetterForLeaveResult>
    </SavePatientLetterForLeaveResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.

GET /Modules/EMR/WebServices/WebService_EMR_PatientLetter.asmx/SavePatientLetterForLeave?letter_id=string&user_id=string&visit_id=string&letter_type_id=string&title=string&body=string&status=string&approved_by_id=string&approved_on=string&approval_remark=string&is_need_helper=string&helper_name=string&helper_id=string&letter_on=string&cause_of_death=string&next_of_kin=string&relationship=string&referralStation=string&fromdate=string&todate=string&checkDate=string&returnToWorkDate=string&HSA2Type=string&expectedBirthDate=string&beforeBirthFromDate=string&beforeBirthToDate=string&actualBirthDate=string&noOfBaby=string&afterBirthFromDate=string&afterBirthToDate=string&adoptedDate=string&childAgeMonth=string&childAgeDay=string&adoptedFromDate=string&adoptedToDate=string&wifeExpBirthDate=string&wifeBirthDate=string&wifeNoOfBaby=string&paternityFromDate=string&paternityToDate=string&val_ChkHSA1=string&hsa2_birth_type=string&disablementByClinic=string&confirmDateByClinic=string&disablementByHO=string&confirmDateByHO=string&Has1type=string&isEdited=string&ward_id=string&accidental_date=string&check_revisit=string&revisit_date=string&check_revisitno=string&hsa1_duration_days=string&RequestID=string HTTP/1.1
Host: 10.20.1.42
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://tempuri.org/">string</string>

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /Modules/EMR/WebServices/WebService_EMR_PatientLetter.asmx/SavePatientLetterForLeave HTTP/1.1
Host: 10.20.1.42
Content-Type: application/x-www-form-urlencoded
Content-Length: length

letter_id=string&user_id=string&visit_id=string&letter_type_id=string&title=string&body=string&status=string&approved_by_id=string&approved_on=string&approval_remark=string&is_need_helper=string&helper_name=string&helper_id=string&letter_on=string&cause_of_death=string&next_of_kin=string&relationship=string&referralStation=string&fromdate=string&todate=string&checkDate=string&returnToWorkDate=string&HSA2Type=string&expectedBirthDate=string&beforeBirthFromDate=string&beforeBirthToDate=string&actualBirthDate=string&noOfBaby=string&afterBirthFromDate=string&afterBirthToDate=string&adoptedDate=string&childAgeMonth=string&childAgeDay=string&adoptedFromDate=string&adoptedToDate=string&wifeExpBirthDate=string&wifeBirthDate=string&wifeNoOfBaby=string&paternityFromDate=string&paternityToDate=string&val_ChkHSA1=string&hsa2_birth_type=string&disablementByClinic=string&confirmDateByClinic=string&disablementByHO=string&confirmDateByHO=string&Has1type=string&isEdited=string&ward_id=string&accidental_date=string&check_revisit=string&revisit_date=string&check_revisitno=string&hsa1_duration_days=string&RequestID=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://tempuri.org/">string</string>