Defining a Medication Schedule in FHIR DSTU2 - hl7-fhir

We are looking to define a Medication Schedule using the FHIR Medicatation Prescription resource. Data model aside the schedule is as follows:
Drug / Medication
Start Date
End Date
Administration times
Site / Route
For example
Amoxicillin 50mg - Orally - From 01/06/2015 to 05/06/2015 3 times a
day : 09.00 / 13.00 / 18.00
Does anybody know if this is possible with the existing DSTU2 specification?
Cheers

Yes, this is possible.
This is possible but only in a laborious way.
You want this to be a MedicationPrescription. Ideally this would be a dosageInstruction.dosageTiming Timing property, but this element can not (yet?) specify specific Times during a day. You will have to create one dosageInstruction.scheduledDateTime for every occurrence of your prescription.

The Timing data type is intended to support this. It allows you to say "3 times per day" and also enumerate the specific times.

This object is now MedicationOrder
Please see answers / comments here:
MedicationOrder for Times of day
This is hopefully coming soon

Related

What is a good way to store arbitrary schedule data?

I am working on a project where the objective is to keep track of whether a client has uploaded data within their expected time-window or not. These windows can occur daily, weekly, bi-weekly, bi-monthly, quarterly... etc. I'm currently using the CRON syntax to describe these schedules which kind-of works, but it falls short in some scenarios, for example the bi-weekly one.
I was wondering if there is some industry standard way to efficiently describe and store schedules that I don't know of. I tried to educate myself via Google, but when I put the word schedule into the mix, it always assumes I'm trying to schedule some task, but I only want to calculate dates based on these schedule definitions and compare the incoming file dates with them.
Thank you

how to capture non-event-driven data in keen-io

Capturing data in Keen.io is pretty straight-forward when it's driven by an event. (User-logged-in, Customer-bought-stuff, ...). That's very nicely explained in the docs.
But what is the best approach when I want insight on a state of my app at a given time in the past?
For instance: how many active licenses were there this time last year?
Our first thought is to run a cronjob every hour, to get those data from te DB, and store them in a custom collection. Is this the right approach, or are there better solutions?

Get property rating from Booking.com API

I need to get the rating value from Booking.com system for specific property. Is there an API that provides information such as overall rating and other useful information for properties that are listed in their system?
In case anyone has the same question I will answer in short - the booking.com API is not public! In order to get access you need to write them an email and provide a lot of information about why you're going to use it, how and who is going to use it. Describe your business model etc. Also you need to producing an average of 500 bookings per month. Then wait an approval process.
I decided to simple parse the website and get the overall rating.

HL7 SIU 2.5 specification - does it allow multiple patient?

I'm working with schedule part of HL7 (SIU v2.5), more precisely I'm working on implementing unsollicited messages from a filler application.
The standard gives exemples of simple unsollicited messages (1 location resource, 1 personel resource and 1 patient) and mention possible multiplicity of location and personel resource. Although no mention of possible multiple patient.
Since my filler application can have appointment with multiple patient and resources I'm wondering if it would be a good idea to include multiple patient to unsollicited message.
AFAIK no recommendation has been done in SIU standard in this regards. Is it allowed? Is it recommended?
The patient group is optional repeating. So you can have 0 or many patients. I would check with the recipient of your appointments if they can handle multiple patients per message. Just because it is possible syntax-wise does not say what limits the receiver imposes. If you are developing for the shelf, you are free to decide. But a look at potential receivers might help.

Recurring Calendar Events that don't expire

I'm looking for a library in PHP (or better yet in ruby) to handle an events calendar. I've looked a dozens of them and every one breaks down when it comes to recurring events. Many require and end date and most create every recurring event as a entry in a database or something.
Every suggestion I get is to use the Google calendar which does do exactly what I want but I'm sure they won't let me build a service on top of there service.
Sounds like you may not want to roll your own, but what about just setting up a cron job to check every x minutes if there are any events that have to be sent out?
Haven't used Runt myself, but it looks like it might do what you want.
According to their homepage:
Runt is an implementation of select temporal patterns by Martin Fowler in the super-fantastic Ruby language. Runt provides:
ability to define recurring events
using simple, set-like expressions
an interfaced-based API for creating
schedules for arbitrary
events/objects
precisioned date types using Time
Points
date Ranges
everlasting peace and/or eternal life
RiCal's recurrence rules would work for this. They do the math, the implementation would be up to you.
require 'rubygems'
require 'ri_cal'
rule = RiCal::PropertyValue::RecurrenceRule::RecurringMonthDay.new(15)
p rule.include?(Date.new(2025, 7, 15)) # true
One good thing to know about recurring events is that our calendar cycles every 28 years.
i.e. today is thursday 3 december 2010, so I know that in excaclty 28 years(10226 days) we will be thursday 3 december 2038.
With this knowledge you can build an occurencies table on a limited period of time and just "move" it to your targeted time range...

Resources