amIhealthy
Click here for a complete list of operations.
MOSSleep12Revised2010Session
This method scores the MOSSleep12 Revised 2010, saves it to the SMS database, and returns scores.
Test
To test the operation using the HTTP POST protocol, click the 'Invoke' button.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 /api2/amihealthy.asmx HTTP/1.1
Host: staging.qualitymetric.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.amihealthy.com/api2/MOSSleep12Revised2010Session"
<?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>
<MOSSleep12Revised2010Session xmlns="http://www.amihealthy.com/api2">
<Key>string</Key>
<GroupID>int</GroupID>
<GroupLogin>string</GroupLogin>
<SiteLogin>string</SiteLogin>
<SurveyID>int</SurveyID>
<AdministrationDate>string</AdministrationDate>
<TimepointLabel>string</TimepointLabel>
<MemberLogin>string</MemberLogin>
<FirstName>string</FirstName>
<LastName>string</LastName>
<DOB>string</DOB>
<Gender>string</Gender>
<Sleep1_Response>int</Sleep1_Response>
<Sleep2_Response>int</Sleep2_Response>
<Sleep3_Response>int</Sleep3_Response>
<Sleep4_Response>int</Sleep4_Response>
<Sleep5_Response>int</Sleep5_Response>
<Sleep6_Response>int</Sleep6_Response>
<Sleep7_Response>int</Sleep7_Response>
<Sleep8_Response>int</Sleep8_Response>
<Sleep9_Response>int</Sleep9_Response>
<Sleep10_Response>int</Sleep10_Response>
<Sleep11_Response>int</Sleep11_Response>
<Sleep12_Response>int</Sleep12_Response>
</MOSSleep12Revised2010Session>
</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>
<MOSSleep12Revised2010SessionResponse xmlns="http://www.amihealthy.com/api2">
<MOSSleep12Revised2010SessionResult>
<Key>string</Key>
<GroupId>int</GroupId>
<GroupLogin>string</GroupLogin>
<SiteLogin>string</SiteLogin>
<SurveyID>int</SurveyID>
<AdministrationDate>string</AdministrationDate>
<TimepointLabel>string</TimepointLabel>
<MemberLogin>string</MemberLogin>
<FirstName>string</FirstName>
<LastName>string</LastName>
<DOB>string</DOB>
<Gender>string</Gender>
<Sleep1_Response>int</Sleep1_Response>
<Sleep2_Response>int</Sleep2_Response>
<Sleep3_Response>int</Sleep3_Response>
<Sleep4_Response>int</Sleep4_Response>
<Sleep5_Response>int</Sleep5_Response>
<Sleep6_Response>int</Sleep6_Response>
<Sleep7_Response>int</Sleep7_Response>
<Sleep8_Response>int</Sleep8_Response>
<Sleep9_Response>int</Sleep9_Response>
<Sleep10_Response>int</Sleep10_Response>
<Sleep11_Response>int</Sleep11_Response>
<Sleep12_Response>int</Sleep12_Response>
<KeyValidated>boolean</KeyValidated>
<GroupValidated>boolean</GroupValidated>
<SiteValidated>boolean</SiteValidated>
<SiteID>int</SiteID>
<SiteName>string</SiteName>
<SurveyCreditsValidated>boolean</SurveyCreditsValidated>
<SurveyValidated>boolean</SurveyValidated>
<MemberValidated>boolean</MemberValidated>
<MemberID>int</MemberID>
<SessionSet>boolean</SessionSet>
<SessionSaved>boolean</SessionSaved>
<SessionID>string</SessionID>
<ResponsesSet>boolean</ResponsesSet>
<Scored>boolean</Scored>
<SLP_D_NBS>double</SLP_D_NBS>
<SLP_SN_NBS>double</SLP_SN_NBS>
<SLP_SOB_NBS>double</SLP_SOB_NBS>
<SLP_ADQ_NBS>double</SLP_ADQ_NBS>
<SLP_SM_NBS>double</SLP_SM_NBS>
<SLP_I6_NBS>double</SLP_I6_NBS>
<SLP_I9_NBS>double</SLP_I9_NBS>
<SLPOP1>double</SLPOP1>
<SLEEP2>double</SLEEP2>
</MOSSleep12Revised2010SessionResult>
</MOSSleep12Revised2010SessionResponse>
</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 /api2/amihealthy.asmx HTTP/1.1
Host: staging.qualitymetric.com
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>
<MOSSleep12Revised2010Session xmlns="http://www.amihealthy.com/api2">
<Key>string</Key>
<GroupID>int</GroupID>
<GroupLogin>string</GroupLogin>
<SiteLogin>string</SiteLogin>
<SurveyID>int</SurveyID>
<AdministrationDate>string</AdministrationDate>
<TimepointLabel>string</TimepointLabel>
<MemberLogin>string</MemberLogin>
<FirstName>string</FirstName>
<LastName>string</LastName>
<DOB>string</DOB>
<Gender>string</Gender>
<Sleep1_Response>int</Sleep1_Response>
<Sleep2_Response>int</Sleep2_Response>
<Sleep3_Response>int</Sleep3_Response>
<Sleep4_Response>int</Sleep4_Response>
<Sleep5_Response>int</Sleep5_Response>
<Sleep6_Response>int</Sleep6_Response>
<Sleep7_Response>int</Sleep7_Response>
<Sleep8_Response>int</Sleep8_Response>
<Sleep9_Response>int</Sleep9_Response>
<Sleep10_Response>int</Sleep10_Response>
<Sleep11_Response>int</Sleep11_Response>
<Sleep12_Response>int</Sleep12_Response>
</MOSSleep12Revised2010Session>
</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>
<MOSSleep12Revised2010SessionResponse xmlns="http://www.amihealthy.com/api2">
<MOSSleep12Revised2010SessionResult>
<Key>string</Key>
<GroupId>int</GroupId>
<GroupLogin>string</GroupLogin>
<SiteLogin>string</SiteLogin>
<SurveyID>int</SurveyID>
<AdministrationDate>string</AdministrationDate>
<TimepointLabel>string</TimepointLabel>
<MemberLogin>string</MemberLogin>
<FirstName>string</FirstName>
<LastName>string</LastName>
<DOB>string</DOB>
<Gender>string</Gender>
<Sleep1_Response>int</Sleep1_Response>
<Sleep2_Response>int</Sleep2_Response>
<Sleep3_Response>int</Sleep3_Response>
<Sleep4_Response>int</Sleep4_Response>
<Sleep5_Response>int</Sleep5_Response>
<Sleep6_Response>int</Sleep6_Response>
<Sleep7_Response>int</Sleep7_Response>
<Sleep8_Response>int</Sleep8_Response>
<Sleep9_Response>int</Sleep9_Response>
<Sleep10_Response>int</Sleep10_Response>
<Sleep11_Response>int</Sleep11_Response>
<Sleep12_Response>int</Sleep12_Response>
<KeyValidated>boolean</KeyValidated>
<GroupValidated>boolean</GroupValidated>
<SiteValidated>boolean</SiteValidated>
<SiteID>int</SiteID>
<SiteName>string</SiteName>
<SurveyCreditsValidated>boolean</SurveyCreditsValidated>
<SurveyValidated>boolean</SurveyValidated>
<MemberValidated>boolean</MemberValidated>
<MemberID>int</MemberID>
<SessionSet>boolean</SessionSet>
<SessionSaved>boolean</SessionSaved>
<SessionID>string</SessionID>
<ResponsesSet>boolean</ResponsesSet>
<Scored>boolean</Scored>
<SLP_D_NBS>double</SLP_D_NBS>
<SLP_SN_NBS>double</SLP_SN_NBS>
<SLP_SOB_NBS>double</SLP_SOB_NBS>
<SLP_ADQ_NBS>double</SLP_ADQ_NBS>
<SLP_SM_NBS>double</SLP_SM_NBS>
<SLP_I6_NBS>double</SLP_I6_NBS>
<SLP_I9_NBS>double</SLP_I9_NBS>
<SLPOP1>double</SLPOP1>
<SLEEP2>double</SLEEP2>
</MOSSleep12Revised2010SessionResult>
</MOSSleep12Revised2010SessionResponse>
</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 /api2/amihealthy.asmx/MOSSleep12Revised2010Session?Key=string&GroupID=string&GroupLogin=string&SiteLogin=string&SurveyID=string&AdministrationDate=string&TimepointLabel=string&MemberLogin=string&FirstName=string&LastName=string&DOB=string&Gender=string&Sleep1_Response=string&Sleep2_Response=string&Sleep3_Response=string&Sleep4_Response=string&Sleep5_Response=string&Sleep6_Response=string&Sleep7_Response=string&Sleep8_Response=string&Sleep9_Response=string&Sleep10_Response=string&Sleep11_Response=string&Sleep12_Response=string HTTP/1.1 Host: staging.qualitymetric.com
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <SoapMOSSleep12Revised2010Session xmlns="http://www.amihealthy.com/api2"> <Key>string</Key> <GroupId>int</GroupId> <GroupLogin>string</GroupLogin> <SiteLogin>string</SiteLogin> <SurveyID>int</SurveyID> <AdministrationDate>string</AdministrationDate> <TimepointLabel>string</TimepointLabel> <MemberLogin>string</MemberLogin> <FirstName>string</FirstName> <LastName>string</LastName> <DOB>string</DOB> <Gender>string</Gender> <Sleep1_Response>int</Sleep1_Response> <Sleep2_Response>int</Sleep2_Response> <Sleep3_Response>int</Sleep3_Response> <Sleep4_Response>int</Sleep4_Response> <Sleep5_Response>int</Sleep5_Response> <Sleep6_Response>int</Sleep6_Response> <Sleep7_Response>int</Sleep7_Response> <Sleep8_Response>int</Sleep8_Response> <Sleep9_Response>int</Sleep9_Response> <Sleep10_Response>int</Sleep10_Response> <Sleep11_Response>int</Sleep11_Response> <Sleep12_Response>int</Sleep12_Response> <KeyValidated>boolean</KeyValidated> <GroupValidated>boolean</GroupValidated> <SiteValidated>boolean</SiteValidated> <SiteID>int</SiteID> <SiteName>string</SiteName> <SurveyCreditsValidated>boolean</SurveyCreditsValidated> <SurveyValidated>boolean</SurveyValidated> <MemberValidated>boolean</MemberValidated> <MemberID>int</MemberID> <SessionSet>boolean</SessionSet> <SessionSaved>boolean</SessionSaved> <SessionID>string</SessionID> <ResponsesSet>boolean</ResponsesSet> <Scored>boolean</Scored> <SLP_D_NBS>double</SLP_D_NBS> <SLP_SN_NBS>double</SLP_SN_NBS> <SLP_SOB_NBS>double</SLP_SOB_NBS> <SLP_ADQ_NBS>double</SLP_ADQ_NBS> <SLP_SM_NBS>double</SLP_SM_NBS> <SLP_I6_NBS>double</SLP_I6_NBS> <SLP_I9_NBS>double</SLP_I9_NBS> <SLPOP1>double</SLPOP1> <SLEEP2>double</SLEEP2> </SoapMOSSleep12Revised2010Session>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /api2/amihealthy.asmx/MOSSleep12Revised2010Session HTTP/1.1 Host: staging.qualitymetric.com Content-Type: application/x-www-form-urlencoded Content-Length: length Key=string&GroupID=string&GroupLogin=string&SiteLogin=string&SurveyID=string&AdministrationDate=string&TimepointLabel=string&MemberLogin=string&FirstName=string&LastName=string&DOB=string&Gender=string&Sleep1_Response=string&Sleep2_Response=string&Sleep3_Response=string&Sleep4_Response=string&Sleep5_Response=string&Sleep6_Response=string&Sleep7_Response=string&Sleep8_Response=string&Sleep9_Response=string&Sleep10_Response=string&Sleep11_Response=string&Sleep12_Response=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <SoapMOSSleep12Revised2010Session xmlns="http://www.amihealthy.com/api2"> <Key>string</Key> <GroupId>int</GroupId> <GroupLogin>string</GroupLogin> <SiteLogin>string</SiteLogin> <SurveyID>int</SurveyID> <AdministrationDate>string</AdministrationDate> <TimepointLabel>string</TimepointLabel> <MemberLogin>string</MemberLogin> <FirstName>string</FirstName> <LastName>string</LastName> <DOB>string</DOB> <Gender>string</Gender> <Sleep1_Response>int</Sleep1_Response> <Sleep2_Response>int</Sleep2_Response> <Sleep3_Response>int</Sleep3_Response> <Sleep4_Response>int</Sleep4_Response> <Sleep5_Response>int</Sleep5_Response> <Sleep6_Response>int</Sleep6_Response> <Sleep7_Response>int</Sleep7_Response> <Sleep8_Response>int</Sleep8_Response> <Sleep9_Response>int</Sleep9_Response> <Sleep10_Response>int</Sleep10_Response> <Sleep11_Response>int</Sleep11_Response> <Sleep12_Response>int</Sleep12_Response> <KeyValidated>boolean</KeyValidated> <GroupValidated>boolean</GroupValidated> <SiteValidated>boolean</SiteValidated> <SiteID>int</SiteID> <SiteName>string</SiteName> <SurveyCreditsValidated>boolean</SurveyCreditsValidated> <SurveyValidated>boolean</SurveyValidated> <MemberValidated>boolean</MemberValidated> <MemberID>int</MemberID> <SessionSet>boolean</SessionSet> <SessionSaved>boolean</SessionSaved> <SessionID>string</SessionID> <ResponsesSet>boolean</ResponsesSet> <Scored>boolean</Scored> <SLP_D_NBS>double</SLP_D_NBS> <SLP_SN_NBS>double</SLP_SN_NBS> <SLP_SOB_NBS>double</SLP_SOB_NBS> <SLP_ADQ_NBS>double</SLP_ADQ_NBS> <SLP_SM_NBS>double</SLP_SM_NBS> <SLP_I6_NBS>double</SLP_I6_NBS> <SLP_I9_NBS>double</SLP_I9_NBS> <SLPOP1>double</SLPOP1> <SLEEP2>double</SLEEP2> </SoapMOSSleep12Revised2010Session>