Create a medication statement
post
/MedicationStatement
Creates a new medication statement.
Note:
- If MedicationStatement.medication is a reference, it must refer to a contained medication with the code field populated and cannot have any product.ingredients populated.
- Only medication statements about home medications or historical medications can be created. Medication statements about prescribed medications cannot be created because the MedicationStatement resource is not used to capture compliance information.
- Only the body fields mentioned below are supported. Unsupported fields are ignored or result in errors.
Authorization Types
This operation supports the following authorization types:
- Provider
- System
Request
Supported Media Types
- application/json+fhir
Header Parameters
-
Accept(required): string
The media type to be requested. See what the resource's operation produces for what is supported.
-
Authorization(required): string
Contains the credentials to authenticate a consumer to the service. This should be the OAuth2 Bearer token.
The body of the create operation.
Root Schema : MedicationStatementCreate
Type:
object
A summary representation of the Create (POST) operation for MedicationStatement.
Show Source
-
dosage:
array dosage
How the medication is or was used by the patient.
Note: At most one dosage can be populated. -
effectivePeriod:
object effectivePeriod
The interval of time during which the patient was taking the medication.
Note: IfeffectivePeriod
anddosage.timing.repeat.boundsPeriod
are both populated, they must be the same value.
Example:{ "effectivePeriod": { "start": "2015-05-05T14:00:00.000Z", "end": "2015-05-06T01:00:00.000Z" } }
-
medication[x](required):
Identifies the medication being administered.
Example:{ "medicationReference": { "reference": "#456235", "display": "Ibuprofen" } } { "medicationCodeableConcept": { "coding": [ { "system": "http://www.nlm.nih.gov/research/umls/rxnorm", "code": "2551", "display": "Ciprofloxacin", "userSelected": false } ], "text": "ciprofloxacin" } }
-
note:
string
Provides extra information about the medication statement that is not conveyed by the other attributes.
Example:{ "note": "do not take with alcohol" }
-
patient(required):
object patient
Who is or was taking the medication.
Example:{ "patient": { "reference": "Patient/5366327" } }
-
resourceType(required):
string
Allowed Values:
[ "MedicationStatement" ]
The type of the FHIR resource. -
status(required):
string
A code representing the patient or other source's judgment about the state of the medication that this statement is about.
Note:- When creating a medication statement, only the
active
status is supported. - When updating a medication statement, only the
completed
status is supported.
{ "status": "active" }
- When creating a medication statement, only the
Nested Schema : dosage
Type:
array
How the medication is or was used by the patient.
Note: At most one dosage can be populated.
Show Source
Note: At most one dosage can be populated.
Nested Schema : effectivePeriod
Type:
object
The interval of time during which the patient was taking the medication.
Note: If
Example:
Show Source
Note: If
effectivePeriod
and dosage.timing.repeat.boundsPeriod
are both populated, they must be the same value.Example:
{
"effectivePeriod": {
"start": "2015-05-05T14:00:00.000Z",
"end": "2015-05-06T01:00:00.000Z"
}
}
Nested Schema : patient
Type:
object
Who is or was taking the medication.
Example:
Show Source
Example:
{
"patient": {
"reference": "Patient/5366327"
}
}
Nested Schema : items
Type:
Show Source
object
-
dosage.asNeeded[x]:
Whether the medication is only taken when needed in a specific dosing schedule.
Example:{ "asNeededCodeableConcept": { "coding": [ { "system": "http://snomed.info/sct", "code": "25064002", "display": "for headache" } ] } }
{ "asNeededBoolean" : true }
-
dosage.quantityQuantity:
object dosage.quantityQuantity
The amount of therapeutic or other substance given at one administration event.
Example:{ "quantityQuantity": { "value": 2, "unit": "tabs", "system": "http://unitsofmeasure.org", "code": "tbl" } }
-
dosage.route:
object dosage.route
A code specifying the route or physiological path of administration of a therapeutic agent into or onto a subject.
Example:{ "route": { "coding": [ { "system": "http://snomed.info/sct", "code": "41974700", "display": "Chew (qualifier value)" } ], "text": "Chewed" } }
-
dosage.siteCodeableConcept:
object dosage.siteCodeableConcept
Where on the body the medication is or was administered.
Example:{ "siteCodeableConcept": { "coding": [ { "system": "http://snomed.info/sct", "code": "368208006", "display": "left upper arm structure (body structure)" } ], "text": "Left Arm" } }
-
dosage.text:
string
Free-text dosage information as reported about a patient's medication use.
Example:{ "text": "2, Oral, 2x/Wk, first dose 05/05/15 10:00:00 EDT" }
-
dosage.timing:
string
The timing schedule for giving the medication to the patient.
-
dosage.timing.code:
object dosage.timing.code
A code for the timing pattern.
Example:{ "code": { "coding": [ { "system": "http://hl7.org/fhir/v3/vs/GTSAbbreviation", "code": "TID", "display": "TID" } ], "text": "TID" } }
-
dosage.timing.repeat:
string
A set of rules that describe when the event should occur.
-
dosage.timing.repeat.bounds[x]:
The length of timing schedule or the outer bounds for the start and end limits of the timing schedule.
Note: IfeffectivePeriod
anddosage.timing.repeat.boundsPeriod
are both populated, they must be the same value.
Example:{ "boundsPeriod": { "start": "2014-11-03T14:38:00.000-05:00" } }
{ "boundsQuantity": { "value": 10, "unit": "days", "system": "http://unitsofmeasure.org", "code": "d" } }
-
dosage.timing.repeat.count:
integer
A total count for the number of repetitions.
Example:{ "count": 5 }
Nested Schema : dosage.quantityQuantity
Type:
object
The amount of therapeutic or other substance given at one administration event.
Example:
Show Source
Example:
{
"quantityQuantity": {
"value": 2,
"unit": "tabs",
"system": "http://unitsofmeasure.org",
"code": "tbl"
}
}
Nested Schema : dosage.route
Type:
object
A code specifying the route or physiological path of administration of a therapeutic agent into or onto a subject.
Example:
Show Source
Example:
{
"route": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "41974700",
"display": "Chew (qualifier value)"
}
],
"text": "Chewed"
}
}
Nested Schema : dosage.siteCodeableConcept
Type:
object
Where on the body the medication is or was administered.
Example:
Show Source
Example:
{
"siteCodeableConcept": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "368208006",
"display": "left upper arm structure (body structure)"
}
],
"text": "Left Arm"
}
}
Nested Schema : dosage.timing.code
Type:
object
A code for the timing pattern.
Example:
Show Source
Example:
{
"code": {
"coding": [
{
"system": "http://hl7.org/fhir/v3/vs/GTSAbbreviation",
"code": "TID",
"display": "TID"
}
],
"text": "TID"
}
}
Response
Supported Media Types
- application/json+fhir
Default Response
Example Request:
POST https://fhir-ehr-code.cerner.com/dstu2/ec2458f2-1e24-41c8-b71b-0e701af7583d/MedicationStatement/
Example Request Body:
{
'resourceType': 'MedicationStatement',
'contained': [
{
'resourceType': 'Medication',
'id': '123',
'code': {
'text': 'FHIR Test Medication'
}
}
],
'patient': {
'reference': 'Patient/12724067'
},
'status': 'active',
'medicationReference': {
'reference': '#123'
},
'dosage': [
{
'timing': {
'code': {
'coding': [
{
'system': 'http://hl7.org/fhir/v3/vs/GTSAbbreviation',
'code': 'BID'
}
],
'text': 'BID'
}
},
'quantityQuantity': {
'value': 60.0,
'units': 'mg',
'system': 'http://unitsofmeasure.org',
'code': 'mg'
}
}
]
}
Example Response:
HTTP Status: 201 Created
Connection: Keep-Alive
Content-Encoding: gzip
Content-Length: 20
Content-Type: text/html; charset=UTF-8
Date: Wed, 13 Jan 2016 21:45:47 GMT
Keep-Alive: timeout=15, max=100
Last-Modified: Tue, 15 Dec 2015 19:13:20 GMT
access-control-allow-methods: DELETE, GET, POST, PUT, OPTIONS, HEAD
access-control-allow-origin: *
access-control-expose-headers: ETag, Content-Location, Location, X-Request-Id, WWW-Authenticate, Date
access-control-max-age: 0
cache-control: no-cache
etag: W/"0"
location: https://fhir-ehr-code.cerner.com/dstu2/ec2458f2-1e24-41c8-b71b-0e701af7583d/MedicationStatement/20465903
strict-transport-security: max-age=631152000
vary: Origin,User-Agent,Accept-Encoding
opc-request-id: /11111111111111111111111111111111/11111111111111111111111111111111
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-request-id: 11111111-1111-1111-1111-111111111111
x-xss-protection: 1; mode=block
Headers
-
Etag: string
For Update or Patch versioning controls. Related to
If-Match
. When a resource performs an operation that creates or updates a record, anEtag
value is returned as a header. This same value should be included in request headers as anIf-Match
for any subsequent update to that record. -
X-Request-Id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the
X-Request-Id
, if present. -
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the
opc-Request-Id
, if present.