Save, load and add prescriptions

This page needs to be reviewed and updated

Save a prescription

After making your prescription, click the “save” or select the menu File / Save As… or type CTRL + S (“CMD + S” on MacOS). Fill in the name of the prescription and validate.

The patient's informations are encoded. It is not possible to read the full name of patient directly.

The file extensions recognized by FreeDiams is *. di . These files are files XML.

Open a prescription

Select menu File / Open or type “CTRL + O” (“CMD + O” under Mac OS), select the file to open. If a prescription is currently edited, you will be asked to choose:

  • to add the prescription
  • or to replace the current prescription.

Add a prescription to the underway prescription

Read bellow.

Prescription file format

The format of the prescription file has been updated since version 0.4.0.

The prescription file contains XML code. You should in any case you edit the same data stored in these files. The patient datas are encoded.

The XML content depends on the editing mode of FreeDiams:

  • in the Prescribor the XML content includes the whole datas of the prescription
  • in the Selector-only the XML content only includes informations about the drugs (name, INNs, ATC, route, form…)

Prescribor mode sample:

 
<?xml version='1.0' encoding='UTF-8'?>
<FreeDiams>
    <DateOfGeneration>2010-11-03T10:55:54</DateOfGeneration>
    <DrugsDatabaseName>FDA_US</DrugsDatabaseName>
    <FullPrescription version="0.4.0">
        <Prescription>
            <SpecifyPresentation/>
            <Drug_UID>40145001</Drug_UID>
            <DrugRoute>ORAL</DrugRoute>
            <OnlyForTest/>
            <IntakeIntervalTime>0</IntakeIntervalTime>
            <DurationFrom>1</DurationFrom>
            <DurationFromTo>false</DurationFromTo>
            <Pack_UID/>
            <Daily>&lt;Distribute/></Daily>
            <MealTime>0</MealTime>
            <SpecifyForm/>
            <Period>1</Period>
            <DrugForm>TABLET</DrugForm>
            <IsTextual>false</IsTextual>
            <IntakeIntervalScheme>3</IntakeIntervalScheme>
            <DrugStrength>1MG</DrugStrength>
            <IntakeFrom>1</IntakeFrom>
            <IntakeFullString/>
            <IntakeTo/>
            <DurationTo/>
            <IntakeFromTo>false</IntakeFromTo>
            <Note/>
            <IsAld/>
            <DurationScheme>mois</DurationScheme>
            <RefDosage>{c1bdad6d-5f1e-41cb-9fe8-43af4dc940fe}</RefDosage>
            <IntakeScheme>TABLET</IntakeScheme>
            <PeriodScheme>jour(s)</PeriodScheme>
            <DrugName>WARFARIN SODIUM (TABLET, 1MG)</DrugName>
            <INN>false</INN>
            <Composition inn="WARFARINE" route="ORAL" form="TABLET" strenght="1MG" nature="SA" natureLink="1" molecularName="WARFARIN SODIUM"/>
        </Prescription>
        <Prescription>
            <Drug_UID>70575001</Drug_UID>
            <DrugRoute>INHALATION, ORAL</DrugRoute>
            <DrugName>MUCOSIL-10 (SOLUTION, 10%)</DrugName>
            <OnlyForTest>true</OnlyForTest>
            <DrugForm>SOLUTION</DrugForm>
            <DrugStrength>10%</DrugStrength>
            <Composition inn="ACETYLCYSTEINE" route="INHALATION, ORAL" form="SOLUTION" strenght="10%" nature="SA" natureLink="1" molecularName="ACETYLCYSTEINE"/>
        </Prescription>
    </FullPrescription>
    <ExtraDatas>
        <PatientDatas>
            <Lastnames>data</Lastnames>
            <HeightUnit>data</HeightUnit>
            <Height>data</Height>
            <Firstnames>data</Firstnames>
            <WeightUnit>data</WeightUnit>
            <UID>data</UID>
            <Creatinine>data</Creatinine>
            <Weight>data</Weight>
            <CreatinClearance>data</CreatinClearance>
            <DateOfbirth>data</DateOfbirth>
            <CreatinineUnit>data</CreatinineUnit>
            <Gender>data</Gender>
            <DrugsInnAllergies>data;data;data</DrugsInnAllergies>
            <DrugsUidAllergies>data;data;data</DrugsUidAllergies>
            <DrugsAtcAllergies>data;data;data</DrugsAtcAllergies>
            <DrugsUidIntolerances>data;data;data</DrugsUidIntolerances>
            <DrugsAtcIntolerances>data;data;data</DrugsAtcIntolerances>
        </PatientDatas>
        <EMR uid="SessionUIDWillBeReturnedInOutputFile" name="EMRName"/>
    </ExtraDatas>
</FreeDiams>
2010/09/27 12:09
 
<?xml version='1.0' encoding='UTF-8'?>
<FreeDiams>
    <DateOfGeneration>2010-11-03T10:55:54</DateOfGeneration>
    <DrugsDatabaseName>FDA_US</DrugsDatabaseName>
    <FullPrescription version="0.4.0">
        <Prescription>
            <SpecifyPresentation/>
            <Drug_UID>40145001</Drug_UID>
            <DrugRoute>ORAL</DrugRoute>
            <OnlyForTest/>
            <IntakeIntervalTime>0</IntakeIntervalTime>
            <DurationFrom>1</DurationFrom>
            <DurationFromTo>false</DurationFromTo>
            <Pack_UID/>
            <Daily>&lt;Distribute/></Daily>
            <MealTime>0</MealTime>
            <SpecifyForm/>
            <Period>1</Period>
            <DrugForm>TABLET</DrugForm>
            <IsTextual>false</IsTextual>
            <IntakeIntervalScheme>3</IntakeIntervalScheme>
            <DrugStrength>1MG</DrugStrength>
            <IntakeFrom>1</IntakeFrom>
            <IntakeFullString/>
            <IntakeTo/>
            <DurationTo/>
            <IntakeFromTo>false</IntakeFromTo>
            <Note/>
            <IsAld/>
            <DurationScheme>mois</DurationScheme>
            <RefDosage>{c1bdad6d-5f1e-41cb-9fe8-43af4dc940fe}</RefDosage>
            <IntakeScheme>TABLET</IntakeScheme>
            <PeriodScheme>jour(s)</PeriodScheme>
            <DrugName>WARFARIN SODIUM (TABLET, 1MG)</DrugName>
            <INN>false</INN>
            <Composition inn="WARFARINE" route="ORAL" form="TABLET" strenght="1MG" nature="SA" natureLink="1" molecularName="WARFARIN SODIUM"/>
        </Prescription>
        <Prescription>
            <Drug_UID>70575001</Drug_UID>
            <DrugRoute>INHALATION, ORAL</DrugRoute>
            <DrugName>MUCOSIL-10 (SOLUTION, 10%)</DrugName>
            <OnlyForTest>true</OnlyForTest>
            <DrugForm>SOLUTION</DrugForm>
            <DrugStrength>10%</DrugStrength>
            <Composition inn="ACETYLCYSTEINE" route="INHALATION, ORAL" form="SOLUTION" strenght="10%" nature="SA" natureLink="1" molecularName="ACETYLCYSTEINE"/>
        </Prescription>
    </FullPrescription>
    <ExtraDatas>
        <PatientDatas>
            <Lastnames>data</Lastnames>
            <HeightUnit>data</HeightUnit>
            <Height>data</Height>
            <Firstnames>data</Firstnames>
            <WeightUnit>data</WeightUnit>
            <UID>data</UID>
            <Creatinine>data</Creatinine>
            <Weight>data</Weight>
            <CreatinClearance>data</CreatinClearance>
            <DateOfbirth>data</DateOfbirth>
            <CreatinineUnit>data</CreatinineUnit>
            <Gender>data</Gender>
            <DrugsInnAllergies>data;data;data</DrugsInnAllergies>
            <DrugsUidAllergies>data;data;data</DrugsUidAllergies>
            <DrugsAtcAllergies>data;data;data</DrugsAtcAllergies>
            <DrugsUidIntolerances>data;data;data</DrugsUidIntolerances>
            <DrugsAtcIntolerances>data;data;data</DrugsAtcIntolerances>
        </PatientDatas>
        <EMR uid="SessionUIDWillBeReturnedInOutputFile" name="EMRName"/>
    </ExtraDatas>
</FreeDiams>
2010/09/27 12:09
2010/10/09 23:11 · Eric Maeker, MD

Selector mode sample :

 
<?xml version="1.0" encoding="UTF-8"?>
<FreeDiams>
  <DateOfGeneration>2010-09-27T08:38:25</DateOfGeneration>
  <DrugsDatabaseName>FREEDIAMS_DRUGS_DATABASE_UID</DrugsDatabaseName>
  <FullPrescription version="0.4.0">
    <Prescription>
      <Drug_UID>data</Drug_UID>
      <Pack_UID/>
      <DrugINN_ATC>data</DrugINN_ATC>
      <DrugRoute>data</DrugRoute>
      <DrugINN>DATA</DrugINN>
      <DrugName>Complete drug brand nam</DrugName>
      <DrugForm>data</DrugForm>
      <DrugATC>data</DrugATC>
      <DrugStrength>data</DrugStrength>
      <Composition inn="data" route="data" form="data" strenght="data" nature="data" natureLink="data" molecularName="data"/>
    </Prescription>
    <Prescription>
      ...
    </Prescription>
  </FullPrescription>
 
  <ExtraDatas>
    // Same as prescriber mode
  </ExtraDatas>
 
</FreeDiams>
2010/09/27 12:09

For all information on technical data encoding please refer to the documentation of the code and the code itself.