POST api/patients/{patientId}/prescriptions/coded

Request Information

URI Parameters

NameDescriptionTypeAdditional information
patientId

integer

Required

Body Parameters

CodedPrescriptionRequest
NameDescriptionTypeAdditional information
LexiGenProductId

integer

Required

LexiDrugSynId

integer

Required

LexiSynonymTypeId

integer

Required

IsNotIntendedForDetox

boolean

None.

PatientFormularyId

integer

None.

Refills

integer

Required

Range: inclusive between 0 and 99

DaysSupply

integer

Range: inclusive between 0 and 365

DispenseUnitId

integer

Required

Quantity

decimal number

Required

Directions

string

Required

String length: inclusive between 0 and 1000

PharmacyId

integer

None.

PharmacyNotes

string

String length: inclusive between 0 and 210

NoSubstitutions

boolean

None.

EffectiveDate

date

None.

RxReferenceNumber

string

String length: inclusive between 0 and 35

EligibilityId

integer

None.

NonDoseSpotPrescriptionId

string

String length: inclusive between 0 and 35

OnBehalfOfUserId

integer

None.

DiagnosisId

integer

None.

FirstPrescriptionDiagnosis

PrescriptionDiagnosisIdentifiers

None.

SecondPrescriptionDiagnosis

PrescriptionDiagnosisIdentifiers

None.

IsRefillReplace

boolean

None.

IsUrgent

boolean

None.

SupervisorId

integer

None.

RetailPharmacyToMailToPatient

boolean

None.

Status

PatientMedicationStatusType

Required

Range: inclusive between 1 and 5

InactiveDate

date

None.

Comment

string

String length: inclusive between 0 and 500

Encounter

string

String length: inclusive between 0 and 50

Request Formats

application/json, text/json

Sample:
{
  "LexiGenProductId": 1,
  "LexiDrugSynId": 1,
  "LexiSynonymTypeId": 1,
  "IsNotIntendedForDetox": true,
  "PatientFormularyId": 1,
  "Refills": 2,
  "DaysSupply": 1,
  "DispenseUnitId": 1,
  "Quantity": 3.0,
  "Directions": "sample string 4",
  "PharmacyId": 1,
  "PharmacyNotes": "sample string 5",
  "NoSubstitutions": true,
  "EffectiveDate": "2024-05-17T13:34:56.998089+00:00",
  "RxReferenceNumber": "sample string 7",
  "EligibilityId": 8,
  "NonDoseSpotPrescriptionId": "sample string 9",
  "OnBehalfOfUserId": 1,
  "DiagnosisId": 10,
  "FirstPrescriptionDiagnosis": {
    "PrimaryDiagnosisId": 1,
    "SecondaryDiagnosisId": 1
  },
  "SecondPrescriptionDiagnosis": {
    "PrimaryDiagnosisId": 1,
    "SecondaryDiagnosisId": 1
  },
  "IsRefillReplace": true,
  "IsUrgent": true,
  "SupervisorId": 1,
  "RetailPharmacyToMailToPatient": true,
  "Status": 0,
  "InactiveDate": "2024-05-17T13:34:56.998089+00:00",
  "Comment": "sample string 14",
  "Encounter": "sample string 15"
}

application/xml, text/xml

Sample:
<CodedPrescriptionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DoseSpot.UI.API.DataContracts._13">
  <Comment>sample string 14</Comment>
  <Encounter>sample string 15</Encounter>
  <InactiveDate>2024-05-17T13:34:56.998089+00:00</InactiveDate>
  <Status>Unknown</Status>
  <DaysSupply>1</DaysSupply>
  <DiagnosisId>10</DiagnosisId>
  <Directions>sample string 4</Directions>
  <DispenseUnitId>1</DispenseUnitId>
  <EffectiveDate>2024-05-17T13:34:56.998089+00:00</EffectiveDate>
  <EligibilityId>8</EligibilityId>
  <FirstPrescriptionDiagnosis xmlns:d2p1="http://schemas.datacontract.org/2004/07/DoseSpot.UI.API.DataContracts._13.Objects">
    <d2p1:PrimaryDiagnosisId>1</d2p1:PrimaryDiagnosisId>
    <d2p1:SecondaryDiagnosisId>1</d2p1:SecondaryDiagnosisId>
  </FirstPrescriptionDiagnosis>
  <IsRefillReplace>true</IsRefillReplace>
  <IsUrgent>true</IsUrgent>
  <NoSubstitutions>true</NoSubstitutions>
  <NonDoseSpotPrescriptionId>sample string 9</NonDoseSpotPrescriptionId>
  <OnBehalfOfUserId>1</OnBehalfOfUserId>
  <PharmacyId>1</PharmacyId>
  <PharmacyNotes>sample string 5</PharmacyNotes>
  <Quantity>3</Quantity>
  <Refills>2</Refills>
  <RetailPharmacyToMailToPatient>true</RetailPharmacyToMailToPatient>
  <RxReferenceNumber>sample string 7</RxReferenceNumber>
  <SecondPrescriptionDiagnosis xmlns:d2p1="http://schemas.datacontract.org/2004/07/DoseSpot.UI.API.DataContracts._13.Objects">
    <d2p1:PrimaryDiagnosisId>1</d2p1:PrimaryDiagnosisId>
    <d2p1:SecondaryDiagnosisId>1</d2p1:SecondaryDiagnosisId>
  </SecondPrescriptionDiagnosis>
  <SupervisorId>1</SupervisorId>
  <IsNotIntendedForDetox>true</IsNotIntendedForDetox>
  <LexiDrugSynId>1</LexiDrugSynId>
  <LexiGenProductId>1</LexiGenProductId>
  <LexiSynonymTypeId>1</LexiSynonymTypeId>
  <PatientFormularyId>1</PatientFormularyId>
</CodedPrescriptionRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IdentifierResponse
NameDescriptionTypeAdditional information
Id

integer

None.

Result

Result

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Result": {
    "ResultCode": "sample string 1",
    "ResultDescription": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<IdentifierResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DoseSpot.UI.API.DataContracts._13">
  <Result>
    <ResultCode>sample string 1</ResultCode>
    <ResultDescription>sample string 2</ResultDescription>
  </Result>
  <Id>1</Id>
</IdentifierResponse>