POST api/Drugs/SavePrescription

Request Information

URI Parameters

None.

Body Parameters

Collection of DrugsInPrescription
NameDescriptionTypeAdditional information
index_code

integer

None.

prescription_code

integer

None.

drug_code

integer

None.

dosag_form

integer

None.

dosage_unit

string

String length: inclusive between 0 and 100

dosage

decimal number

None.

capacity

integer

None.

times_per_unit

integer

None.

remark

string

String length: inclusive between 0 and 250

total

decimal number

None.

times_per_time_unit

integer

None.

guidelines

string

String length: inclusive between 0 and 250

drug_unit

integer

None.

CommonSimpleTables

CommonSimpleTable

None.

Drugs

Drug

None.

Prescriptions

Prescription

None.

Units

Unit

None.

free_text

string

String length: inclusive between 0 and 60

change

string

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected for property 'Debits' with type 'CustDemog.Debit'. Path '[0].CommonSimpleTables.Debits[0].AnswerStatusHistory[0]'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected for property 'Debits' with type 'CustDemog.Debit'. Path '[0].CommonSimpleTables.Debits[0].AnswerStatusHistory[0]'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[CustDemog.BranchGroupKodMahon, CustDemog, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[CustDemog.BranchGroupKodMahon, CustDemog, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

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 'List`1'.

application/bson

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

Response Information

Resource Description

None.