---
title: "Creating MedicationStatements"
canonical: "https://wiki.patientsknowbest.com/space/api/4839997441/Creating%20MedicationStatements"
format: markdown
---
> Macro (toc)

> Macro (excerpt)
> 
> # How
> 
> 1. When you send the [MedicationStatement resource](https://hl7.org/fhir/R4/medicationstatement.html), you will assign it a **[logical id](https://wiki.hub.patientsknowbest.com/wiki/spaces/api/pages/5003673621)****.**
> 2. Reference the logical ID of a previously created Patient resource in the **subject** field of the MedicationStatement.
> 3. A status must be included.  See the FHIR R4 spec for the [status value set](https://hl7.org/fhir/R4/valueset-medication-statement-status.html).
> 4. Include any other information in the MedicationStatement, using coding when possible.
> 5. POST https://<client><u>.fhir-api.sandbox.patientsknowbest.com/fhir/MedicationStatement</u>

> Macro (excerpt)
> 
> Very basic MedicationStatement resource example (no coding):
> 
> ```
> {
>   "resourceType": "MedicationStatement",
>   "id": "<Client assigned patient logical id>",
>   "status": "stopped",
>   "medicationCodeableConcept": {
>     "text": "FCR (fludarabine-cyclofosfamide-rituximab)"
>   },
>   "subject": {
>     "reference": "Patient/<Client assigned logical id for Patient resource>"
>   },
>   "effectivePeriod": {
>     "start": "2024-10-22",
>     "end": "2024-12-22"
>   },
>   "dateAsserted": "2024-10-22"
> }
> ```
> 
> 
> Very basic MedicationStatement resource example (with coding):
> 
> ```
> {
>   "resourceType": "MedicationStatement",
>   "id": "<Client assigned patient logical id>",
>   "status": "active",
>   "medicationCodeableConcept": {
>     "coding": [
>             {
>                 "system": "http://snomed.info/sct",
>                 "code": "776550005",
>                 "display": "Lisinopril"
>             }
>     ],
>     "text": "Lisinopril 40 mg tablet"
>   },
>   "subject": {
>     "reference": "Patient/<Client assigned logical id for Patient resource>"
>   },
>   "effectivePeriod": {
>     "start": "2018-10-03"
>   },
>   "dosage": [
>     {
>       "text": "Take 40 mg tablet once daily",
>       "timing": {
>         "repeat": {
>           "frequency": 1,
>           "period": 1,
>           "periodUnit": "d"
>         }
>       },
>       "doseAndRate": [
>         {
>           "doseQuantity": {
>             "value": 1,
>             "unit": "tablet",
>             "system": "http://unitsofmeasure.org",
>             "code": "tablet"
>           }
>         }
>       ]
>     }
>   ]
> }
> ```