POST api/form/UpdateFormsTemplate?_id={_id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
_id

string

None.

Body Parameters

FormTemplate
NameDescriptionTypeAdditional information
_id

ObjectId

None.

formName

string

None.

formType

integer

None.

active

boolean

None.

tabs

Collection of TabsForm

None.

CreationTime

date

None.

updationTime

date

None.

is_start_oper

boolean

None.

is_finish_oper

boolean

None.

is_release_date

boolean

None.

is_start_counting

boolean

None.

is_digital_signature

boolean

None.

is_copy_from_old

boolean

None.

defaultIcd9

boolean

None.

copy_form_Type

Collection of integer

None.

updateBy

string

None.

staffs

Collection of StaffTamplate

None.

displayStaffLandscape

boolean

None.

images

Collection of ImageTamplate

None.

dynamicFields

Collection of DynamicFiledTemplate

None.

icd9Settings

Collection of Icd9Settings

None.

accupationsSign

Collection of integer

None.

displayQuestionnaireTamplate

string

None.

Request Formats

application/json, text/json

Sample:
{
  "_id": "000000000000000000000000",
  "formName": "sample string 1",
  "formType": 2,
  "active": true,
  "tabs": [
    {
      "name": "sample string 1",
      "text": "sample string 2",
      "active": true
    },
    {
      "name": "sample string 1",
      "text": "sample string 2",
      "active": true
    }
  ],
  "CreationTime": "2020-02-27T00:27:26.4697662+02:00",
  "updationTime": "2020-02-27T00:27:26.4697662+02:00",
  "is_start_oper": true,
  "is_finish_oper": true,
  "is_release_date": true,
  "is_start_counting": true,
  "is_digital_signature": true,
  "is_copy_from_old": true,
  "defaultIcd9": true,
  "copy_form_Type": [
    1,
    2
  ],
  "updateBy": "sample string 13",
  "staffs": [
    {
      "Tamplate": "000000000000000000000000",
      "Key": "sample string 1",
      "staff_name": "sample string 2",
      "isDisplayTimeArrive": "sample string 3",
      "isDisplayTimeEnterExit": "sample string 4",
      "isDisplayPresent": "sample string 5",
      "occup": 6,
      "occupName": "sample string 7",
      "occupFunction": 1,
      "occupFunctionsName": "sample string 8",
      "defualtValue": 9,
      "defualtValuesName": "sample string 10",
      "isSign": "sample string 11",
      "staffTamplate": 1,
      "staffTamplateName": "sample string 12",
      "isRequired": true
    },
    {
      "Tamplate": "000000000000000000000000",
      "Key": "sample string 1",
      "staff_name": "sample string 2",
      "isDisplayTimeArrive": "sample string 3",
      "isDisplayTimeEnterExit": "sample string 4",
      "isDisplayPresent": "sample string 5",
      "occup": 6,
      "occupName": "sample string 7",
      "occupFunction": 1,
      "occupFunctionsName": "sample string 8",
      "defualtValue": 9,
      "defualtValuesName": "sample string 10",
      "isSign": "sample string 11",
      "staffTamplate": 1,
      "staffTamplateName": "sample string 12",
      "isRequired": true
    }
  ],
  "displayStaffLandscape": true,
  "images": [
    {
      "ImageTamplateId": "000000000000000000000000",
      "Key": "sample string 1",
      "title": "sample string 2",
      "isFromTemplate": "sample string 3",
      "templateId": 4,
      "isCanDraw": "sample string 5"
    },
    {
      "ImageTamplateId": "000000000000000000000000",
      "Key": "sample string 1",
      "title": "sample string 2",
      "isFromTemplate": "sample string 3",
      "templateId": 4,
      "isCanDraw": "sample string 5"
    }
  ],
  "dynamicFields": [
    {
      "name": "sample string 1",
      "category": "sample string 2",
      "subCategory": "sample string 3",
      "usingType": 4,
      "text": "sample string 5",
      "type": "dropdown",
      "withNewType": true,
      "isSymmetry": true,
      "nameSymmetry": "sample string 8",
      "withMultiSelect": true,
      "withAddNewType": true,
      "withNull": true,
      "DisabledInClient": true,
      "isMammography": true,
      "isPregnancy": true,
      "optionRR": "sample string 15",
      "optionsValue": [
        "sample string 1",
        "sample string 2"
      ],
      "optionText": [
        "sample string 1",
        "sample string 2"
      ],
      "minValue": 16.1,
      "maxValue": 17.1,
      "minlength": 18,
      "maxlength": 19,
      "minValueToWarning": 20.1,
      "maxValueToWarning": 21.1,
      "defualtValue": "sample string 22",
      "defualtValueText": "sample string 23",
      "maskFiled": "sample string 24",
      "patternFiled": "sample string 25",
      "functionValid": "sample string 26",
      "valideByFiled": {
        "filedName": "sample string 1",
        "symbol": "sample string 2",
        "value1": "sample string 3",
        "value2": "sample string 4"
      },
      "displayByFiled": {
        "filedName": "sample string 1",
        "symbol": "sample string 2",
        "value1": "sample string 3",
        "value2": "sample string 4"
      },
      "eventFiled": [
        {
          "eventTime": "sample string 1",
          "eventName": "sample string 2",
          "eventResult": "sample string 3",
          "moreEventResult": [
            "sample string 1",
            "sample string 2"
          ],
          "parameters": [
            {
              "name": "sample string 1",
              "filedName": "sample string 2"
            },
            {
              "name": "sample string 1",
              "filedName": "sample string 2"
            }
          ],
          "moreParameters": [
            {
              "name": "sample string 1",
              "value": "sample string 2"
            },
            {
              "name": "sample string 1",
              "value": "sample string 2"
            }
          ]
        },
        {
          "eventTime": "sample string 1",
          "eventName": "sample string 2",
          "eventResult": "sample string 3",
          "moreEventResult": [
            "sample string 1",
            "sample string 2"
          ],
          "parameters": [
            {
              "name": "sample string 1",
              "filedName": "sample string 2"
            },
            {
              "name": "sample string 1",
              "filedName": "sample string 2"
            }
          ],
          "moreParameters": [
            {
              "name": "sample string 1",
              "value": "sample string 2"
            },
            {
              "name": "sample string 1",
              "value": "sample string 2"
            }
          ]
        }
      ],
      "multiFiled": true
    },
    {
      "name": "sample string 1",
      "category": "sample string 2",
      "subCategory": "sample string 3",
      "usingType": 4,
      "text": "sample string 5",
      "type": "dropdown",
      "withNewType": true,
      "isSymmetry": true,
      "nameSymmetry": "sample string 8",
      "withMultiSelect": true,
      "withAddNewType": true,
      "withNull": true,
      "DisabledInClient": true,
      "isMammography": true,
      "isPregnancy": true,
      "optionRR": "sample string 15",
      "optionsValue": [
        "sample string 1",
        "sample string 2"
      ],
      "optionText": [
        "sample string 1",
        "sample string 2"
      ],
      "minValue": 16.1,
      "maxValue": 17.1,
      "minlength": 18,
      "maxlength": 19,
      "minValueToWarning": 20.1,
      "maxValueToWarning": 21.1,
      "defualtValue": "sample string 22",
      "defualtValueText": "sample string 23",
      "maskFiled": "sample string 24",
      "patternFiled": "sample string 25",
      "functionValid": "sample string 26",
      "valideByFiled": {
        "filedName": "sample string 1",
        "symbol": "sample string 2",
        "value1": "sample string 3",
        "value2": "sample string 4"
      },
      "displayByFiled": {
        "filedName": "sample string 1",
        "symbol": "sample string 2",
        "value1": "sample string 3",
        "value2": "sample string 4"
      },
      "eventFiled": [
        {
          "eventTime": "sample string 1",
          "eventName": "sample string 2",
          "eventResult": "sample string 3",
          "moreEventResult": [
            "sample string 1",
            "sample string 2"
          ],
          "parameters": [
            {
              "name": "sample string 1",
              "filedName": "sample string 2"
            },
            {
              "name": "sample string 1",
              "filedName": "sample string 2"
            }
          ],
          "moreParameters": [
            {
              "name": "sample string 1",
              "value": "sample string 2"
            },
            {
              "name": "sample string 1",
              "value": "sample string 2"
            }
          ]
        },
        {
          "eventTime": "sample string 1",
          "eventName": "sample string 2",
          "eventResult": "sample string 3",
          "moreEventResult": [
            "sample string 1",
            "sample string 2"
          ],
          "parameters": [
            {
              "name": "sample string 1",
              "filedName": "sample string 2"
            },
            {
              "name": "sample string 1",
              "filedName": "sample string 2"
            }
          ],
          "moreParameters": [
            {
              "name": "sample string 1",
              "value": "sample string 2"
            },
            {
              "name": "sample string 1",
              "value": "sample string 2"
            }
          ]
        }
      ],
      "multiFiled": true
    }
  ],
  "icd9Settings": [
    {
      "title": "sample string 1",
      "typeCode": 2
    },
    {
      "title": "sample string 1",
      "typeCode": 2
    }
  ],
  "accupationsSign": [
    1,
    2
  ],
  "displayQuestionnaireTamplate": "sample string 15"
}

application/xml, text/xml

Sample:
<FormTemplate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLMedical">
  <CreationTime>2020-02-27T00:27:26.4697662+02:00</CreationTime>
  <_id xmlns:d2p1="http://schemas.datacontract.org/2004/07/MongoDB.Bson">
    <d2p1:_a>0</d2p1:_a>
    <d2p1:_b>0</d2p1:_b>
    <d2p1:_c>0</d2p1:_c>
  </_id>
  <accupationsSign xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </accupationsSign>
  <active>true</active>
  <copy_form_Type xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </copy_form_Type>
  <defaultIcd9>true</defaultIcd9>
  <displayQuestionnaireTamplate>sample string 15</displayQuestionnaireTamplate>
  <displayStaffLandscape>true</displayStaffLandscape>
  <dynamicFields>
    <DynamicFiledTemplate>
      <DisabledInClient>true</DisabledInClient>
      <category>sample string 2</category>
      <defualtValue>sample string 22</defualtValue>
      <defualtValueText>sample string 23</defualtValueText>
      <displayByFiled>
        <filedName>sample string 1</filedName>
        <symbol>sample string 2</symbol>
        <value1>sample string 3</value1>
        <value2>sample string 4</value2>
      </displayByFiled>
      <eventFiled>
        <EventFiled>
          <eventName>sample string 2</eventName>
          <eventResult>sample string 3</eventResult>
          <eventTime>sample string 1</eventTime>
          <moreEventResult xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </moreEventResult>
          <moreParameters>
            <moreParameter>
              <name>sample string 1</name>
              <value>sample string 2</value>
            </moreParameter>
            <moreParameter>
              <name>sample string 1</name>
              <value>sample string 2</value>
            </moreParameter>
          </moreParameters>
          <parameters>
            <parametersEvent>
              <filedName>sample string 2</filedName>
              <name>sample string 1</name>
            </parametersEvent>
            <parametersEvent>
              <filedName>sample string 2</filedName>
              <name>sample string 1</name>
            </parametersEvent>
          </parameters>
        </EventFiled>
        <EventFiled>
          <eventName>sample string 2</eventName>
          <eventResult>sample string 3</eventResult>
          <eventTime>sample string 1</eventTime>
          <moreEventResult xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </moreEventResult>
          <moreParameters>
            <moreParameter>
              <name>sample string 1</name>
              <value>sample string 2</value>
            </moreParameter>
            <moreParameter>
              <name>sample string 1</name>
              <value>sample string 2</value>
            </moreParameter>
          </moreParameters>
          <parameters>
            <parametersEvent>
              <filedName>sample string 2</filedName>
              <name>sample string 1</name>
            </parametersEvent>
            <parametersEvent>
              <filedName>sample string 2</filedName>
              <name>sample string 1</name>
            </parametersEvent>
          </parameters>
        </EventFiled>
      </eventFiled>
      <functionValid>sample string 26</functionValid>
      <isMammography>true</isMammography>
      <isPregnancy>true</isPregnancy>
      <isSymmetry>true</isSymmetry>
      <maskFiled>sample string 24</maskFiled>
      <maxValue>17.1</maxValue>
      <maxValueToWarning>21.1</maxValueToWarning>
      <maxlength>19</maxlength>
      <minValue>16.1</minValue>
      <minValueToWarning>20.1</minValueToWarning>
      <minlength>18</minlength>
      <multiFiled>true</multiFiled>
      <name>sample string 1</name>
      <nameSymmetry>sample string 8</nameSymmetry>
      <optionRR>sample string 15</optionRR>
      <optionText xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </optionText>
      <optionsValue xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </optionsValue>
      <patternFiled>sample string 25</patternFiled>
      <subCategory>sample string 3</subCategory>
      <text>sample string 5</text>
      <type>dropdown</type>
      <usingType>4</usingType>
      <valideByFiled>
        <filedName>sample string 1</filedName>
        <symbol>sample string 2</symbol>
        <value1>sample string 3</value1>
        <value2>sample string 4</value2>
      </valideByFiled>
      <withAddNewType>true</withAddNewType>
      <withMultiSelect>true</withMultiSelect>
      <withNewType>true</withNewType>
      <withNull>true</withNull>
    </DynamicFiledTemplate>
    <DynamicFiledTemplate>
      <DisabledInClient>true</DisabledInClient>
      <category>sample string 2</category>
      <defualtValue>sample string 22</defualtValue>
      <defualtValueText>sample string 23</defualtValueText>
      <displayByFiled>
        <filedName>sample string 1</filedName>
        <symbol>sample string 2</symbol>
        <value1>sample string 3</value1>
        <value2>sample string 4</value2>
      </displayByFiled>
      <eventFiled>
        <EventFiled>
          <eventName>sample string 2</eventName>
          <eventResult>sample string 3</eventResult>
          <eventTime>sample string 1</eventTime>
          <moreEventResult xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </moreEventResult>
          <moreParameters>
            <moreParameter>
              <name>sample string 1</name>
              <value>sample string 2</value>
            </moreParameter>
            <moreParameter>
              <name>sample string 1</name>
              <value>sample string 2</value>
            </moreParameter>
          </moreParameters>
          <parameters>
            <parametersEvent>
              <filedName>sample string 2</filedName>
              <name>sample string 1</name>
            </parametersEvent>
            <parametersEvent>
              <filedName>sample string 2</filedName>
              <name>sample string 1</name>
            </parametersEvent>
          </parameters>
        </EventFiled>
        <EventFiled>
          <eventName>sample string 2</eventName>
          <eventResult>sample string 3</eventResult>
          <eventTime>sample string 1</eventTime>
          <moreEventResult xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </moreEventResult>
          <moreParameters>
            <moreParameter>
              <name>sample string 1</name>
              <value>sample string 2</value>
            </moreParameter>
            <moreParameter>
              <name>sample string 1</name>
              <value>sample string 2</value>
            </moreParameter>
          </moreParameters>
          <parameters>
            <parametersEvent>
              <filedName>sample string 2</filedName>
              <name>sample string 1</name>
            </parametersEvent>
            <parametersEvent>
              <filedName>sample string 2</filedName>
              <name>sample string 1</name>
            </parametersEvent>
          </parameters>
        </EventFiled>
      </eventFiled>
      <functionValid>sample string 26</functionValid>
      <isMammography>true</isMammography>
      <isPregnancy>true</isPregnancy>
      <isSymmetry>true</isSymmetry>
      <maskFiled>sample string 24</maskFiled>
      <maxValue>17.1</maxValue>
      <maxValueToWarning>21.1</maxValueToWarning>
      <maxlength>19</maxlength>
      <minValue>16.1</minValue>
      <minValueToWarning>20.1</minValueToWarning>
      <minlength>18</minlength>
      <multiFiled>true</multiFiled>
      <name>sample string 1</name>
      <nameSymmetry>sample string 8</nameSymmetry>
      <optionRR>sample string 15</optionRR>
      <optionText xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </optionText>
      <optionsValue xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </optionsValue>
      <patternFiled>sample string 25</patternFiled>
      <subCategory>sample string 3</subCategory>
      <text>sample string 5</text>
      <type>dropdown</type>
      <usingType>4</usingType>
      <valideByFiled>
        <filedName>sample string 1</filedName>
        <symbol>sample string 2</symbol>
        <value1>sample string 3</value1>
        <value2>sample string 4</value2>
      </valideByFiled>
      <withAddNewType>true</withAddNewType>
      <withMultiSelect>true</withMultiSelect>
      <withNewType>true</withNewType>
      <withNull>true</withNull>
    </DynamicFiledTemplate>
  </dynamicFields>
  <formName>sample string 1</formName>
  <formType>2</formType>
  <icd9Settings>
    <Icd9Settings>
      <title>sample string 1</title>
      <typeCode>2</typeCode>
    </Icd9Settings>
    <Icd9Settings>
      <title>sample string 1</title>
      <typeCode>2</typeCode>
    </Icd9Settings>
  </icd9Settings>
  <images>
    <ImageTamplate>
      <ImageTamplateId xmlns:d4p1="http://schemas.datacontract.org/2004/07/MongoDB.Bson">
        <d4p1:_a>0</d4p1:_a>
        <d4p1:_b>0</d4p1:_b>
        <d4p1:_c>0</d4p1:_c>
      </ImageTamplateId>
      <Key>sample string 1</Key>
      <isCanDraw>sample string 5</isCanDraw>
      <isFromTemplate>sample string 3</isFromTemplate>
      <templateId>4</templateId>
      <title>sample string 2</title>
    </ImageTamplate>
    <ImageTamplate>
      <ImageTamplateId xmlns:d4p1="http://schemas.datacontract.org/2004/07/MongoDB.Bson">
        <d4p1:_a>0</d4p1:_a>
        <d4p1:_b>0</d4p1:_b>
        <d4p1:_c>0</d4p1:_c>
      </ImageTamplateId>
      <Key>sample string 1</Key>
      <isCanDraw>sample string 5</isCanDraw>
      <isFromTemplate>sample string 3</isFromTemplate>
      <templateId>4</templateId>
      <title>sample string 2</title>
    </ImageTamplate>
  </images>
  <is_copy_from_old>true</is_copy_from_old>
  <is_digital_signature>true</is_digital_signature>
  <is_finish_oper>true</is_finish_oper>
  <is_release_date>true</is_release_date>
  <is_start_counting>true</is_start_counting>
  <is_start_oper>true</is_start_oper>
  <staffs>
    <StaffTamplate>
      <Key>sample string 1</Key>
      <Tamplate xmlns:d4p1="http://schemas.datacontract.org/2004/07/MongoDB.Bson">
        <d4p1:_a>0</d4p1:_a>
        <d4p1:_b>0</d4p1:_b>
        <d4p1:_c>0</d4p1:_c>
      </Tamplate>
      <defualtValue>9</defualtValue>
      <defualtValuesName>sample string 10</defualtValuesName>
      <isDisplayPresent>sample string 5</isDisplayPresent>
      <isDisplayTimeArrive>sample string 3</isDisplayTimeArrive>
      <isDisplayTimeEnterExit>sample string 4</isDisplayTimeEnterExit>
      <isRequired>true</isRequired>
      <isSign>sample string 11</isSign>
      <occup>6</occup>
      <occupFunction>1</occupFunction>
      <occupFunctionsName>sample string 8</occupFunctionsName>
      <occupName>sample string 7</occupName>
      <staffTamplate>1</staffTamplate>
      <staffTamplateName>sample string 12</staffTamplateName>
      <staff_name>sample string 2</staff_name>
    </StaffTamplate>
    <StaffTamplate>
      <Key>sample string 1</Key>
      <Tamplate xmlns:d4p1="http://schemas.datacontract.org/2004/07/MongoDB.Bson">
        <d4p1:_a>0</d4p1:_a>
        <d4p1:_b>0</d4p1:_b>
        <d4p1:_c>0</d4p1:_c>
      </Tamplate>
      <defualtValue>9</defualtValue>
      <defualtValuesName>sample string 10</defualtValuesName>
      <isDisplayPresent>sample string 5</isDisplayPresent>
      <isDisplayTimeArrive>sample string 3</isDisplayTimeArrive>
      <isDisplayTimeEnterExit>sample string 4</isDisplayTimeEnterExit>
      <isRequired>true</isRequired>
      <isSign>sample string 11</isSign>
      <occup>6</occup>
      <occupFunction>1</occupFunction>
      <occupFunctionsName>sample string 8</occupFunctionsName>
      <occupName>sample string 7</occupName>
      <staffTamplate>1</staffTamplate>
      <staffTamplateName>sample string 12</staffTamplateName>
      <staff_name>sample string 2</staff_name>
    </StaffTamplate>
  </staffs>
  <tabs>
    <TabsForm>
      <active>true</active>
      <name>sample string 1</name>
      <text>sample string 2</text>
    </TabsForm>
    <TabsForm>
      <active>true</active>
      <name>sample string 1</name>
      <text>sample string 2</text>
    </TabsForm>
  </tabs>
  <updateBy>sample string 13</updateBy>
  <updationTime>2020-02-27T00:27:26.4697662+02:00</updationTime>
</FormTemplate>

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 'FormTemplate'.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.