POST api/Provider/ProviderSurvey

Request Information

URI Parameters

None.

Body Parameters

ProviderSurveyViewModel
NameDescriptionTypeAdditional information
ProviderID

integer

Required

SurveyTypeID

byte

Required

PatientSurveyID

integer

Required

QuestionAnswers

Dictionary of integer [key] and byte [value]

None.

RehabPeriodTypeID

byte

None.

CreatedDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "ProviderID": 1,
  "SurveyTypeID": 64,
  "PatientSurveyID": 3,
  "QuestionAnswers": {
    "1": 64,
    "3": 64
  },
  "RehabPeriodTypeID": 64,
  "CreatedDate": "2025-05-17T19:30:46.870267+00:00"
}

application/xml, text/xml

Sample:
<ProviderSurveyViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Consensus.Ortho.Services.ViewModels.ProviderViewModels">
  <CreatedDate>2025-05-17T19:30:46.870267+00:00</CreatedDate>
  <PatientSurveyID>3</PatientSurveyID>
  <ProviderID>1</ProviderID>
  <QuestionAnswers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfshortunsignedByte>
      <d2p1:Key>1</d2p1:Key>
      <d2p1:Value>64</d2p1:Value>
    </d2p1:KeyValueOfshortunsignedByte>
    <d2p1:KeyValueOfshortunsignedByte>
      <d2p1:Key>3</d2p1:Key>
      <d2p1:Value>64</d2p1:Value>
    </d2p1:KeyValueOfshortunsignedByte>
  </QuestionAnswers>
  <RehabPeriodTypeID>64</RehabPeriodTypeID>
  <SurveyTypeID>64</SurveyTypeID>
</ProviderSurveyViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ActionResultViewModelOfString
NameDescriptionTypeAdditional information
StatusCode

integer

None.

Success

boolean

None.

Message

string

None.

Result

string

None.

Response Formats

application/json, text/json

Sample:
{
  "StatusCode": 1,
  "Success": true,
  "Message": "sample string 3",
  "Result": "sample string 4"
}

application/xml, text/xml

Sample:
<ActionResultViewModelOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Consensus.Ortho.Web.ViewModels.ResultViewModels">
  <Message>sample string 3</Message>
  <Result>sample string 4</Result>
  <StatusCode>1</StatusCode>
  <Success>true</Success>
</ActionResultViewModelOfstring>