POST api/Patient/PatientSurvey

Request Information

URI Parameters

None.

Body Parameters

PatientSurveyViewModel
NameDescriptionTypeAdditional information
PatientID

integer

Required

SurveyTypeID

byte

Required

QuestionAnswers

Dictionary of integer [key] and byte [value]

None.

RehabPeriodTypeID

byte

None.

Other

string

None.

DiscretionaryActivities

Collection of string

None.

CreatedDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "PatientID": 1,
  "SurveyTypeID": 64,
  "QuestionAnswers": {
    "1": 64,
    "3": 64
  },
  "RehabPeriodTypeID": 64,
  "Other": "sample string 3",
  "DiscretionaryActivities": [
    "sample string 1",
    "sample string 2"
  ],
  "CreatedDate": "2025-05-17T18:10:10.4272799+00:00"
}

application/xml, text/xml

Sample:
<PatientSurveyViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Consensus.Ortho.Services.ViewModels.PatientsViewModels">
  <CreatedDate>2025-05-17T18:10:10.4272799+00:00</CreatedDate>
  <DiscretionaryActivities xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </DiscretionaryActivities>
  <Other>sample string 3</Other>
  <PatientID>1</PatientID>
  <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>
</PatientSurveyViewModel>

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>