PUT api/Questions/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

Question
NameDescriptionTypeAdditional information
QID

integer

None.

DIV_ID

integer

None.

STEP_ID

integer

None.

VERSION

string

None.

SEQ

integer

None.

FIELDNAME

string

None.

DESCRIPTION

string

None.

TYPE_ID

integer

None.

FORM_ID

integer

None.

ALT_ID

integer

None.

HASCHILD

boolean

None.

FATHERID

integer

None.

LEVEL

integer

None.

TABLENAME

string

None.

COLUMNNAME

string

None.

SQL

string

None.

DISPLAY

boolean

None.

MANDATORY

boolean

None.

MANDATORY_GROUP

boolean

None.

DESTINATION

string

None.

GENDER

string

None.

SECTION_ID

integer

None.

ON_RPT

boolean

None.

OLD

integer

None.

ON_DOC

boolean

None.

SHOW_IN_PATIENT_FORM

boolean

None.

Options

Collection of QuestionOption

None.

Conditions

Collection of QuestionCondition

None.

Type

QuestionType

None.

Request Formats

application/json, text/json

Sample:
{
  "QID": 1,
  "DIV_ID": 2,
  "STEP_ID": 1,
  "VERSION": "sample string 3",
  "SEQ": 4,
  "FIELDNAME": "sample string 5",
  "DESCRIPTION": "sample string 6",
  "TYPE_ID": 1,
  "FORM_ID": 1,
  "ALT_ID": 1,
  "HASCHILD": true,
  "FATHERID": 1,
  "LEVEL": 1,
  "TABLENAME": "sample string 8",
  "COLUMNNAME": "sample string 9",
  "SQL": "sample string 10",
  "DISPLAY": true,
  "MANDATORY": true,
  "MANDATORY_GROUP": true,
  "DESTINATION": "sample string 14",
  "GENDER": "sample string 15",
  "SECTION_ID": 16,
  "ON_RPT": true,
  "OLD": 1,
  "ON_DOC": true,
  "SHOW_IN_PATIENT_FORM": true,
  "Options": [
    {
      "OptionID": 1,
      "QID": 2,
      "OptionDescription": "sample string 3",
      "OptionAltID": "sample string 4",
      "OpenChild": true,
      "OpenIDs": "sample string 6",
      "PopUp": true,
      "Type_Msg": "sample string 8",
      "Formula": "sample string 9",
      "LastStep": true,
      "SEQ": 11,
      "OptionCode": "sample string 12",
      "OLD": 1,
      "ACTIVE": true
    },
    {
      "OptionID": 1,
      "QID": 2,
      "OptionDescription": "sample string 3",
      "OptionAltID": "sample string 4",
      "OpenChild": true,
      "OpenIDs": "sample string 6",
      "PopUp": true,
      "Type_Msg": "sample string 8",
      "Formula": "sample string 9",
      "LastStep": true,
      "SEQ": 11,
      "OptionCode": "sample string 12",
      "OLD": 1,
      "ACTIVE": true
    }
  ],
  "Conditions": [
    {
      "Id": 1,
      "Key": "sample string 2",
      "QID": 3,
      "OLD": 1,
      "Values": [
        {
          "Id": 1,
          "ConditionId": 2,
          "Code": "sample string 3",
          "Label": "sample string 4",
          "Checked": true,
          "OLD": 1
        },
        {
          "Id": 1,
          "ConditionId": 2,
          "Code": "sample string 3",
          "Label": "sample string 4",
          "Checked": true,
          "OLD": 1
        }
      ]
    },
    {
      "Id": 1,
      "Key": "sample string 2",
      "QID": 3,
      "OLD": 1,
      "Values": [
        {
          "Id": 1,
          "ConditionId": 2,
          "Code": "sample string 3",
          "Label": "sample string 4",
          "Checked": true,
          "OLD": 1
        },
        {
          "Id": 1,
          "ConditionId": 2,
          "Code": "sample string 3",
          "Label": "sample string 4",
          "Checked": true,
          "OLD": 1
        }
      ]
    }
  ],
  "Type": {
    "ID": 1,
    "CODE": "sample string 2",
    "NAME": "sample string 3",
    "TEMPLATE": "sample string 4",
    "SEQ": 1,
    "ACTIVE": true,
    "OLD": 1,
    "MEASURE_ID": 1,
    "GROUP": "sample string 6",
    "DIV_ID": 1,
    "MEASURE": {
      "ID": 1,
      "SEQ": 2,
      "DIV_ID": 3,
      "TYPE_ID": 1,
      "ACTIVE": true,
      "FREQUENCY": 1,
      "CHART_DEFAULT": true,
      "BILLABLE": true,
      "TYPE": {
        "ID": 1,
        "DEFAULT_NAME": "sample string 2",
        "SYSTEM_CODES": "sample string 3",
        "UNITS": "sample string 4",
        "GROUP_NAME": "sample string 5",
        "ORDER": 1,
        "DECIMALS": 1
      },
      "AbnormalRanges": [
        {
          "ID": 1,
          "MEASURE_ID": 2,
          "MIN_VALUE": 3.0,
          "MAX_VALUE": 4.0,
          "BADGE_COLOR": "sample string 5",
          "TYPE": "sample string 6",
          "LABEL": "sample string 7"
        },
        {
          "ID": 1,
          "MEASURE_ID": 2,
          "MIN_VALUE": 3.0,
          "MAX_VALUE": 4.0,
          "BADGE_COLOR": "sample string 5",
          "TYPE": "sample string 6",
          "LABEL": "sample string 7"
        }
      ]
    }
  }
}

application/octet-stream

Sample:
{"QID":1,"DIV_ID":2,"STEP_ID":1,"VERSION":"sample string 3","SEQ":4,"FIELDNAME":"sample string 5","DESCRIPTION":"sample string 6","TYPE_ID":1,"FORM_ID":1,"ALT_ID":1,"HASCHILD":true,"FATHERID":1,"LEVEL":1,"TABLENAME":"sample string 8","COLUMNNAME":"sample string 9","SQL":"sample string 10","DISPLAY":true,"MANDATORY":true,"MANDATORY_GROUP":true,"DESTINATION":"sample string 14","GENDER":"sample string 15","SECTION_ID":16,"ON_RPT":true,"OLD":1,"ON_DOC":true,"SHOW_IN_PATIENT_FORM":true,"Options":[{"OptionID":1,"QID":2,"OptionDescription":"sample string 3","OptionAltID":"sample string 4","OpenChild":true,"OpenIDs":"sample string 6","PopUp":true,"Type_Msg":"sample string 8","Formula":"sample string 9","LastStep":true,"SEQ":11,"OptionCode":"sample string 12","OLD":1,"ACTIVE":true},{"OptionID":1,"QID":2,"OptionDescription":"sample string 3","OptionAltID":"sample string 4","OpenChild":true,"OpenIDs":"sample string 6","PopUp":true,"Type_Msg":"sample string 8","Formula":"sample string 9","LastStep":true,"SEQ":11,"OptionCode":"sample string 12","OLD":1,"ACTIVE":true}],"Conditions":[{"Id":1,"Key":"sample string 2","QID":3,"OLD":1,"Values":[{"Id":1,"ConditionId":2,"Code":"sample string 3","Label":"sample string 4","Checked":true,"OLD":1},{"Id":1,"ConditionId":2,"Code":"sample string 3","Label":"sample string 4","Checked":true,"OLD":1}]},{"Id":1,"Key":"sample string 2","QID":3,"OLD":1,"Values":[{"Id":1,"ConditionId":2,"Code":"sample string 3","Label":"sample string 4","Checked":true,"OLD":1},{"Id":1,"ConditionId":2,"Code":"sample string 3","Label":"sample string 4","Checked":true,"OLD":1}]}],"Type":{"ID":1,"CODE":"sample string 2","NAME":"sample string 3","TEMPLATE":"sample string 4","SEQ":1,"ACTIVE":true,"OLD":1,"MEASURE_ID":1,"GROUP":"sample string 6","DIV_ID":1,"MEASURE":{"ID":1,"SEQ":2,"DIV_ID":3,"TYPE_ID":1,"ACTIVE":true,"FREQUENCY":1,"CHART_DEFAULT":true,"BILLABLE":true,"TYPE":{"ID":1,"DEFAULT_NAME":"sample string 2","SYSTEM_CODES":"sample string 3","UNITS":"sample string 4","GROUP_NAME":"sample string 5","ORDER":1,"DECIMALS":1},"AbnormalRanges":[{"ID":1,"MEASURE_ID":2,"MIN_VALUE":3.0,"MAX_VALUE":4.0,"BADGE_COLOR":"sample string 5","TYPE":"sample string 6","LABEL":"sample string 7"},{"ID":1,"MEASURE_ID":2,"MIN_VALUE":3.0,"MAX_VALUE":4.0,"BADGE_COLOR":"sample string 5","TYPE":"sample string 6","LABEL":"sample string 7"}]}}}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Question'.

Response Information

Resource Description

None.