Updates for CMD calculation from Medication: Active

A number of updates for Cumulative Medication Duration calculation from a Medication: Active template. Namely, the addition of `fulfillmentHistory` and `administrationPeriod`, as well as the correct formatting of `doseQuantity` based on if the med code is precoordinated or not.

Fixes Trello tickets #368 (https://trello.com/c/lG05MCeQ) and #367 (https://trello.com/c/DjC2TWqy)