POST API/V1/Patients/{patientId}/Forms

Request Information

URI Parameters

NameDescriptionTypeAdditional information
patientId

integer

Required

Body Parameters

iMDsoft.API.Metavision.Data.Forms.SessionBundle
NameDescriptionTypeAdditional information
Sessions

Session data

Collection of iMDsoft.API.Metavision.Data.Forms.SessionData

None.

Success

Is request successful

boolean

None.

ValidationError

Validation error

iMDsoft.API.Metavision.Data.Forms.ValidationError

None.

Request Formats

application/json, text/json

Sample:
{
  "sessions": [
    {
      "formId": "2d35410c-d5e9-4a3a-806c-c26082686188",
      "sessionId": "19dc9ab5-daf8-4b7d-ba01-0fc4d5198570",
      "sessionTime": "2024-11-07T02:41:38.3237125+02:00",
      "updateDate": "2024-11-07T02:41:38.3237125+02:00",
      "actionTime": "2024-11-07T02:41:38.3237125+02:00",
      "updateUserName": "sample string 5",
      "updateUserID": 1,
      "sessionSignet": {
        "userId": 1
      },
      "callerId": "09c61e46-95f4-4db2-869f-02bd2e39fa7a",
      "isPatientCaller": true,
      "dbTimeStamp": "QEA=",
      "summary": "sample string 7",
      "importedSummary": "sample string 8",
      "tabs": [
        {
          "tabId": "754aa2ae-8c86-4138-801a-691b7155b4a9",
          "comment": "sample string 2"
        },
        {
          "tabId": "754aa2ae-8c86-4138-801a-691b7155b4a9",
          "comment": "sample string 2"
        }
      ]
    },
    {
      "formId": "2d35410c-d5e9-4a3a-806c-c26082686188",
      "sessionId": "19dc9ab5-daf8-4b7d-ba01-0fc4d5198570",
      "sessionTime": "2024-11-07T02:41:38.3237125+02:00",
      "updateDate": "2024-11-07T02:41:38.3237125+02:00",
      "actionTime": "2024-11-07T02:41:38.3237125+02:00",
      "updateUserName": "sample string 5",
      "updateUserID": 1,
      "sessionSignet": {
        "userId": 1
      },
      "callerId": "09c61e46-95f4-4db2-869f-02bd2e39fa7a",
      "isPatientCaller": true,
      "dbTimeStamp": "QEA=",
      "summary": "sample string 7",
      "importedSummary": "sample string 8",
      "tabs": [
        {
          "tabId": "754aa2ae-8c86-4138-801a-691b7155b4a9",
          "comment": "sample string 2"
        },
        {
          "tabId": "754aa2ae-8c86-4138-801a-691b7155b4a9",
          "comment": "sample string 2"
        }
      ]
    }
  ],
  "success": true,
  "validationError": {
    "errorCode": 1,
    "description": "sample string 2",
    "type": 0
  }
}

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

Response Information

Resource Description

iMDsoft.API.Metavision.Data.Forms.SessionBundle
NameDescriptionTypeAdditional information
Sessions

Session data

Collection of iMDsoft.API.Metavision.Data.Forms.SessionData

None.

Success

Is request successful

boolean

None.

ValidationError

Validation error

iMDsoft.API.Metavision.Data.Forms.ValidationError

None.

Response Formats

application/json, text/json

Sample:
{
  "sessions": [
    {
      "formId": "8ac2716e-cdc7-4699-8de8-f931d0ad5cd2",
      "sessionId": "24502320-166b-473e-9363-34d83e33f57e",
      "sessionTime": "2024-11-07T02:41:38.3393334+02:00",
      "updateDate": "2024-11-07T02:41:38.3393334+02:00",
      "actionTime": "2024-11-07T02:41:38.3393334+02:00",
      "updateUserName": "sample string 5",
      "updateUserID": 1,
      "sessionSignet": {
        "userId": 1
      },
      "callerId": "d4adc58e-853e-4321-b0d7-d962980b584c",
      "isPatientCaller": true,
      "dbTimeStamp": "QEA=",
      "summary": "sample string 7",
      "importedSummary": "sample string 8",
      "tabs": [
        {
          "tabId": "ebad4165-651b-4eb2-9f2d-911c9ddce80b",
          "comment": "sample string 2"
        },
        {
          "tabId": "ebad4165-651b-4eb2-9f2d-911c9ddce80b",
          "comment": "sample string 2"
        }
      ]
    },
    {
      "formId": "8ac2716e-cdc7-4699-8de8-f931d0ad5cd2",
      "sessionId": "24502320-166b-473e-9363-34d83e33f57e",
      "sessionTime": "2024-11-07T02:41:38.3393334+02:00",
      "updateDate": "2024-11-07T02:41:38.3393334+02:00",
      "actionTime": "2024-11-07T02:41:38.3393334+02:00",
      "updateUserName": "sample string 5",
      "updateUserID": 1,
      "sessionSignet": {
        "userId": 1
      },
      "callerId": "d4adc58e-853e-4321-b0d7-d962980b584c",
      "isPatientCaller": true,
      "dbTimeStamp": "QEA=",
      "summary": "sample string 7",
      "importedSummary": "sample string 8",
      "tabs": [
        {
          "tabId": "ebad4165-651b-4eb2-9f2d-911c9ddce80b",
          "comment": "sample string 2"
        },
        {
          "tabId": "ebad4165-651b-4eb2-9f2d-911c9ddce80b",
          "comment": "sample string 2"
        }
      ]
    }
  ],
  "success": true,
  "validationError": {
    "errorCode": 1,
    "description": "sample string 2",
    "type": 0
  }
}