POST api/Drugs/insertDrug

Request Information

URI Parameters

None.

Body Parameters

Drug
NameDescriptionTypeAdditional information
drug_code

integer

None.

drug_name

string

Required

String length: inclusive between 0 and 100

drug_hebrew_name

string

String length: inclusive between 0 and 100

dosage

decimal number

None.

drug_unit

integer

None.

capacity

integer

None.

dosage_unit

string

String length: inclusive between 0 and 20

times_per_unit

integer

None.

dosage_from

integer

None.

active

string

String length: inclusive between 0 and 1

barcode

string

None.

custPermanentDrugs

Collection of custPermanentDrug

None.

Units

Unit

None.

DrugsForCocktails

Collection of DrugsForCocktails

None.

DrugsForInsures

Collection of DrugsForInsures

None.

DrugsInPrescriptions

Collection of DrugsInPrescription

None.

Request Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

application/bson

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

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>

application/bson

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