locked
Prescription data type RRS feed

  • Question

  • Can you explain the relationship between the Prescription and Medication data types?

    I know Prescription inherits from HealthRecordItemData, but a clarification would help.

    Thanks...
    Wednesday, November 11, 2009 5:15 PM

Answers

  • The prescription data is inside of the medication.

    In the scenario you describe, we would expect one medication instance, and then multiple MedicationFill instances.
    Thursday, November 12, 2009 9:22 PM
  • Exactly.  One Medication, multiple MedicationFill items related back to the Medication, with prescription info contained in the Medication item.
    Monday, November 16, 2009 7:44 PM

All replies

  • Hello kjones,

    Please follow the link that will be useful:

    http://blogs.msdn.com/healthvaultdatatypes/archive/2008/05/12/type-preview-medication.aspx

    Hope this helps...
    -Mahesh
    Wednesday, November 11, 2009 5:29 PM
  • Types that derive from HealthRecordItem (such as Medication) are what we call "thing types" - they are the independent pieces of data that live inside of a HealthVault record.

    Sometimes there is sub-structure within a thing type that we want to encapsulate into a type. These types derive from HealthRecordItemData, and are never stored directly in a HealthVault record.
    Wednesday, November 11, 2009 5:36 PM
  • Thanks for the quick reply Mahesh.

    My area of confusion is related to this statement in the link:

    While Medication and Medication Prescription are intended to be related (using related items) if they both come from an electronic system, they contain sufficient information to stand alone. They therefore both contain information about the specific medication, and the dose/strength/frequency of the medication.
     
    The released Prescription data type does not have the dose/strength/frequency associated with it. And if the data is provided by a 3rd party, there is no way to relate the Prescription item to a Medication item that might be in the HV user's records.

    Related items suggest a 0 - N relationship, correct?

    The MedicationFill data type suggests a relationship to Medication or Prescription via a PrescriptionNumber property yet there is no corresponding property within either of those types.

    So, even though the data would be related (i.e. MinuteClinic visit results in a prescription that is filled at CVS) in Health Vault it would not be reflected as such. Unless I am missing some behind-the-scenes matching within Health Vault.




    Wednesday, November 11, 2009 5:46 PM
  • When data is coming from third party we can use the Prescription property of the Medication type. Set the Prescription details to this property and then the Dose, Strength and Frequency properties of the same can be set at the mother Medication item.

    Medication medication = new Medication();
    medication.Prescription = new Prescription();
    medication.Dose = dose;
    medication.Strength= strength;
    medication.Frequency= frequency;

    Note: Dose/Strength/Frequency are of General measurement type.


    -Mahesh
    Wednesday, November 11, 2009 6:51 PM
  • So, the Prescription data cannot stand alone and is related to a single Medication thing type, correct?

    So, if a patient with high blood pressure that has a prescription that is refilled multiple times would have multiple Medication items? Each 3rd party refill creating the parent Medication?
    Wednesday, November 11, 2009 7:51 PM
  • The Prescription data is related to a single Medication type.
    You need to create multiple medication items, when a patient has a prescription that is refilled multiple times.
    -Mahesh
    Wednesday, November 11, 2009 8:31 PM
  • The prescription data is inside of the medication.

    In the scenario you describe, we would expect one medication instance, and then multiple MedicationFill instances.
    Thursday, November 12, 2009 9:22 PM
  • Eric,

    In that scenario, the MedicationFill instance(s) would be RelatedItems (CommonData) to the Medication and prescription, correct?

    Ken J.
    Monday, November 16, 2009 2:18 PM
  • Exactly.  One Medication, multiple MedicationFill items related back to the Medication, with prescription info contained in the Medication item.
    Monday, November 16, 2009 7:44 PM