Save, load and add prescriptions

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 underway you will be asked to choose:

Add a prescription to the underway prescription

Cf supra.

Prescription file format

Note:
The format of the prescription file will be update since cervion 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 scrambled.

Sample prescription:

<?xml version = "1.0" encoding = "UTF-8"?>        XML heading
<FreeDiams>
  <DrugsDatabaseName>FR_AFSSAPS</DrugsDatabaseName> Unique \freediams Identifiant of the drugs database used to create this prescription
  <FullPrescription version="0.4.0">                Begining of the prescription, with the xml encoding version used
    <Prescription>
      <Drug_UID>68166740</Drug_UID>                 Drug_UID Code of drug prescriptions for non-IBD
      <INN></Inn>                                   true or false depending on whether the drug should or should not be prescribed in its INN's formulation
      <Pack_UID></Pack_UID>                         Pack_UID code (packaging)
      <IntakeFromTo>False</IntakeFromTo>            intakes uses range x to y
      <IntakeFrom>1.0</IntakeFrom>                  intake
      <IntakeTo>1.0</IntakeTo>                      intake
      <IntakeScheme>Intake(s)</IntakeScheme>        Intakes scheme
      <Period>1</Period>                            Period (daily, every two days ...)
      <PeriodScheme>Day(s)</PeriodScheme>           Period
      <DurationFromTo>False</DurationFromTo>        Duration of prescription use of x to y
      <DurationFrom>1.0</DurationFrom>              Duration
      <DurationTo>1.0</DurationTo>                  Duration
      <DurationScheme>Month</DurationScheme>        Duration
      <IntakeIntervalTime>0</IntakeIntervalTime>    Interval between each intake
      <IntakeIntervalScheme></IntakeIntervalScheme> interval between each intake
      <MealTime></Mealtime>                         Relationship with the meal (coded, see code documentation)
      <DailyScheme></DailyScheme>                   Breakdown daily XML encoded
      <SpecifyPresentation></SpecifyPresentation>   Not used
      <SpecifyForm></SpecifyForm>                   Not used
      <Note></Note>                                 Note the prescriber (not the characters '<' '>' '&'
                                                    are replaced by their equivalent HTML)
      <IsAld></IsAld>                               Prescription with 100% reimbursement (true / false / empty == false)
      <RefDosage>xxxxxx</RefDosage>                 identifier of the standard dose used to achieve the prescription
    </Prescription>
    <Prescription>                                  Drug 2 - Just for testing
      <CIS> 61348441 </CIS>
      <OnlyForTest> True </OnlyForTest>             Just for testing
    </Prescription>
    <Prescription>                                  Drug 3
    [...]
    </Prescription>
     <Prescription>                                  Drug 4
    [...]
    </Prescription>
  </FullPrescription>
  <ExtraDatas>
    <PatientDatas>
      <UID>data</UID>
      <Name>data</Name>
      <Surname>data</Surname>
      <Gender>data</Gender>
      <Weight>data</Weight>
      <WeightUnit>data</WeightUnit>
      <Height>data</Height>
      <HeightUnit>data</HeightUnit>
      <CreatinClearance>data</CreatinClearance>
      <Creatinine>data</Creatinine>
      <CreatinineUnit>data</CreatinineUnit>
      <DrugsAllergies>data</DrugsAllergies>
    </PatientDatas>
    <EMR name="EMRName" uid="SessionUIDDefinedInFileOrCommandLine"/>
  </ExtraDatas>
 </FreeDiams>

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

User manual - FreeDiams