POST API/V1/Patients/{patientId}/AdministeredDoses/CreateOrphanDoseFromTemplate

Request Information

URI Parameters

NameDescriptionTypeAdditional information
patientId

integer

Required

Body Parameters

iMDsoft.API.Metavision.Data.Doses.DoseActionDataModels.OrphanDoseFromTemplateData
NameDescriptionTypeAdditional information
TemplateId

Orphan Template Id

integer

None.

TemplateInstanceGuid

Template Instance Guid

globally unique identifier

None.

IsHomeMedication

Is orphan dose HomeMedication

boolean

None.

IsSelfAdmin

Is orphan dose self administration

boolean

None.

StartTime

Start time of the orphan dose

date

None.

CoSignPreparationUser

CoSign user for preparation

string

None.

CosignAdministrationUser

CoSign user for administration

string

None.

OrderedBy

order by user

string

None.

IsPrepared

Is orphan dose prepared

boolean

None.

PumpId

Pump id to associste to the dose

integer

None.

AttachedForms

Attached Forms

Collection of iMDsoft.API.Metavision.Data.Doses.AttachedForm

None.

ActionTime

Action time. in offline case we also support the former report not in the future.

date

None.

Request Formats

application/json, text/json

Sample:
{
  "templateId": 1,
  "templateInstanceGuid": "9e183730-325d-4ed5-b31a-7c85b0bcb965",
  "isHomeMedication": true,
  "isSelfAdmin": true,
  "startTime": "2024-11-07T02:32:53.7606203+02:00",
  "coSignPreparationUser": "sample string 4",
  "cosignAdministrationUser": "sample string 5",
  "orderedBy": "sample string 6",
  "isPrepared": true,
  "pumpId": 1,
  "attachedForms": [
    {
      "formId": "a4baa800-a910-4e59-a585-cd64799aa716",
      "formName": "sample string 2",
      "isMandatory": true,
      "callerId": "e66e13a8-a991-43b9-bf6b-3edea0f43755",
      "isCrossPlatform": true
    },
    {
      "formId": "a4baa800-a910-4e59-a585-cd64799aa716",
      "formName": "sample string 2",
      "isMandatory": true,
      "callerId": "e66e13a8-a991-43b9-bf6b-3edea0f43755",
      "isCrossPlatform": true
    }
  ],
  "actionTime": "2024-11-07T02:32:53.7606203+02:00"
}

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

Response Information

Resource Description

System.Web.Http.IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.