Skip to main content
POST
/
v1
/
assessments
Create a medication safety assessment
curl --request POST \
  --url https://cds.marmar.life/v1/assessments \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --header 'X-Tenant-Code: <api-key>' \
  --data '
{
  "patient": {
    "patientId": null,
    "externalId": null,
    "demographics": null,
    "reproductiveStatus": null,
    "hormonalTherapies": null
  },
  "medications": [
    {
      "name": "<string>",
      "dosage": {
        "amount": 123,
        "unit": null,
        "frequency": "<string>"
      },
      "form": null,
      "route": null,
      "status": null,
      "providedRxNormCode": null,
      "providedDrugbankId": null,
      "source": null,
      "startDate": null,
      "endDate": null
    }
  ],
  "conditions": null,
  "allergies": null,
  "vitals": null,
  "labs": null,
  "socialHistory": null
}
'
{
  "assessmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "PENDING",
  "createdAt": "2023-11-07T05:31:56Z"
}

Authorizations

X-Tenant-Code
string
header
required

Tenant slug returned during registration.

X-API-Key
string
header
required

Tenant API key. The server also accepts the lowercase x-api-key header for convenience.

Body

application/json
patient
object
required
  • Option 1
  • Option 2
medications
object[]
required
Minimum array length: 1
conditions
object[] | null
Example:

null

allergies
object[] | null
Example:

null

vitals
object[] | null
Example:

null

labs
object[] | null
Example:

null

socialHistory
object[] | null
Example:

null

Response

Assessment request accepted for processing

assessmentId
string<uuid>
required
status
enum<string>
required
Available options:
PENDING
createdAt
string<date-time>
required