amIhealthy


Click here for a complete list of operations.

MOSSleep12Revised2010Scoring

This method scores the MOSSleep12 Revised 2010 and returns scores.

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
Key:
GroupID:
GroupLogin:
SurveyID:
Sleep1_Response:
Sleep2_Response:
Sleep3_Response:
Sleep4_Response:
Sleep5_Response:
Sleep6_Response:
Sleep7_Response:
Sleep8_Response:
Sleep9_Response:
Sleep10_Response:
Sleep11_Response:
Sleep12_Response:

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/MOSSleep12Revised2010Scoring"

<?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>
    <MOSSleep12Revised2010Scoring xmlns="http://www.amihealthy.com/api2">
      <Key>string</Key>
      <GroupID>int</GroupID>
      <GroupLogin>string</GroupLogin>
      <SurveyID>int</SurveyID>
      <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>
    </MOSSleep12Revised2010Scoring>
  </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>
    <MOSSleep12Revised2010ScoringResponse xmlns="http://www.amihealthy.com/api2">
      <MOSSleep12Revised2010ScoringResult>
        <Key>string</Key>
        <GroupId>int</GroupId>
        <GroupLogin>string</GroupLogin>
        <SurveyID>int</SurveyID>
        <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>
        <SurveyCreditsValidated>boolean</SurveyCreditsValidated>
        <ResponsesSet>boolean</ResponsesSet>
        <Scored>boolean</Scored>
        <MDEMethod>int</MDEMethod>
        <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>
      </MOSSleep12Revised2010ScoringResult>
    </MOSSleep12Revised2010ScoringResponse>
  </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>
    <MOSSleep12Revised2010Scoring xmlns="http://www.amihealthy.com/api2">
      <Key>string</Key>
      <GroupID>int</GroupID>
      <GroupLogin>string</GroupLogin>
      <SurveyID>int</SurveyID>
      <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>
    </MOSSleep12Revised2010Scoring>
  </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>
    <MOSSleep12Revised2010ScoringResponse xmlns="http://www.amihealthy.com/api2">
      <MOSSleep12Revised2010ScoringResult>
        <Key>string</Key>
        <GroupId>int</GroupId>
        <GroupLogin>string</GroupLogin>
        <SurveyID>int</SurveyID>
        <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>
        <SurveyCreditsValidated>boolean</SurveyCreditsValidated>
        <ResponsesSet>boolean</ResponsesSet>
        <Scored>boolean</Scored>
        <MDEMethod>int</MDEMethod>
        <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>
      </MOSSleep12Revised2010ScoringResult>
    </MOSSleep12Revised2010ScoringResponse>
  </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/MOSSleep12Revised2010Scoring?Key=string&GroupID=string&GroupLogin=string&SurveyID=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"?>
<SoapMOSSleep12Revised2010Scoring xmlns="http://www.amihealthy.com/api2">
  <Key>string</Key>
  <GroupId>int</GroupId>
  <GroupLogin>string</GroupLogin>
  <SurveyID>int</SurveyID>
  <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>
  <SurveyCreditsValidated>boolean</SurveyCreditsValidated>
  <ResponsesSet>boolean</ResponsesSet>
  <Scored>boolean</Scored>
  <MDEMethod>int</MDEMethod>
  <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>
</SoapMOSSleep12Revised2010Scoring>

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/MOSSleep12Revised2010Scoring HTTP/1.1
Host: staging.qualitymetric.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

Key=string&GroupID=string&GroupLogin=string&SurveyID=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"?>
<SoapMOSSleep12Revised2010Scoring xmlns="http://www.amihealthy.com/api2">
  <Key>string</Key>
  <GroupId>int</GroupId>
  <GroupLogin>string</GroupLogin>
  <SurveyID>int</SurveyID>
  <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>
  <SurveyCreditsValidated>boolean</SurveyCreditsValidated>
  <ResponsesSet>boolean</ResponsesSet>
  <Scored>boolean</Scored>
  <MDEMethod>int</MDEMethod>
  <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>
</SoapMOSSleep12Revised2010Scoring>