<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://gm.apps.lu/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://gm.apps.lu/feed.php">
        <title>GECAMed - Gestion de Cabinets Médicaux de:userguide:formeditor:functions</title>
        <description></description>
        <link>https://gm.apps.lu/</link>
        <image rdf:resource="https://gm.apps.lu/_media/favicon.ico" />
       <dc:date>2026-04-10T00:35:08+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://gm.apps.lu/de/userguide/formeditor/functions/calculate_age?rev=1575886766&amp;do=diff"/>
                <rdf:li rdf:resource="https://gm.apps.lu/de/userguide/formeditor/functions/clear_series_of_diagram?rev=1575886766&amp;do=diff"/>
                <rdf:li rdf:resource="https://gm.apps.lu/de/userguide/formeditor/functions/convert_column_date_to_age?rev=1575886766&amp;do=diff"/>
                <rdf:li rdf:resource="https://gm.apps.lu/de/userguide/formeditor/functions/convert_xvalue_from_years_to_month?rev=1575886766&amp;do=diff"/>
                <rdf:li rdf:resource="https://gm.apps.lu/de/userguide/formeditor/functions/get_birthday_of_current_patient?rev=1575886766&amp;do=diff"/>
                <rdf:li rdf:resource="https://gm.apps.lu/de/userguide/formeditor/functions/getbmi?rev=1575886766&amp;do=diff"/>
                <rdf:li rdf:resource="https://gm.apps.lu/de/userguide/formeditor/functions/graph_date_to_patient_age?rev=1575886766&amp;do=diff"/>
                <rdf:li rdf:resource="https://gm.apps.lu/de/userguide/formeditor/functions/manipulate_chart?rev=1575886766&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://gm.apps.lu/_media/favicon.ico">
        <title>GECAMed - Gestion de Cabinets Médicaux</title>
        <link>https://gm.apps.lu/</link>
        <url>https://gm.apps.lu/_media/favicon.ico</url>
    </image>
    <item rdf:about="https://gm.apps.lu/de/userguide/formeditor/functions/calculate_age?rev=1575886766&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-12-09T10:19:26+00:00</dc:date>
        <title>calculateAge</title>
        <link>https://gm.apps.lu/de/userguide/formeditor/functions/calculate_age?rev=1575886766&amp;do=diff</link>
        <description>calculateAge

/**
 * Calculates the age in years at the given point in time 
 * out of a given birthday (as double)
 * 
 * @param calendar_birthday
 * @param calendar_ageAtThisDate
 * @return
 */
function calculateAge (calendar_birthday, calendar_ageAtThisDate) {
   /* ======================================== */
   // IMPORTS
   importPackage(java.util);
   
   // prepare the data
   var yearOfBirth = calendar_birthday.get(Calendar.YEAR);
   var dayOfBirth = calendar_birthday.get(Calendar.DAY_OF…</description>
    </item>
    <item rdf:about="https://gm.apps.lu/de/userguide/formeditor/functions/clear_series_of_diagram?rev=1575886766&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-12-09T10:19:26+00:00</dc:date>
        <title>clearSeriesOfDiagram</title>
        <link>https://gm.apps.lu/de/userguide/formeditor/functions/clear_series_of_diagram?rev=1575886766&amp;do=diff</link>
        <description>clearSeriesOfDiagram


/**
 * Clears the series at the given positions, so the graph won't 
 * be shown anymore.
 * 
 * @param diagram:
 * The diagram containing the series to clear.
 * 
 * @param clearIndex:
 * The positions of the series that shall be cleared
 */
function clearSeriesOfDiagram (diagram, clearIndex) {
   /* ======================================== */
   // get the dataset
   var dataset = diagram.getChart().getXYPlot().getDataset();
   
   // clear all series of the dataset at t…</description>
    </item>
    <item rdf:about="https://gm.apps.lu/de/userguide/formeditor/functions/convert_column_date_to_age?rev=1575886766&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-12-09T10:19:26+00:00</dc:date>
        <title>convertColumnDateToAge</title>
        <link>https://gm.apps.lu/de/userguide/formeditor/functions/convert_column_date_to_age?rev=1575886766&amp;do=diff</link>
        <description>convertColumnDateToAge


/** 
 * Converts the measuring date of the second column into the Age
 * of the patient at the measuring day, using the birthday calculated
 * in the function setBirthday.
 * 
 * NEEDED FUNCTIONS:
 * - getBirthdayOfCurrentPatient()
 * - calculateAge()
 * 
 * @param datatable:
 * The table, that shall be manipulated
 * 
 * @param columnToConvert:
 * the index of the column, that shall be converted 
 * from a date to the age at that date (index 0 = first column)
 */
functi…</description>
    </item>
    <item rdf:about="https://gm.apps.lu/de/userguide/formeditor/functions/convert_xvalue_from_years_to_month?rev=1575886766&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-12-09T10:19:26+00:00</dc:date>
        <title>convertXValueFromYearsToMonth</title>
        <link>https://gm.apps.lu/de/userguide/formeditor/functions/convert_xvalue_from_years_to_month?rev=1575886766&amp;do=diff</link>
        <description>convertXValueFromYearsToMonth


/**
 * Converts the x values of the series from years to month.
 * This function just divides the x values through 12.
 * 
 * @param diagram:
 * The diagram containing the series to convert.
 */
function convertXValueFromYearsToMonth (diagram) {
   /* ======================================== */
   // IMPORTS:
   importPackage(org.jfree.data.xy);
   
   // get the dataset
   var dataset = diagram.getChart().getXYPlot().getDataset();
   var tempList = new LinkedList…</description>
    </item>
    <item rdf:about="https://gm.apps.lu/de/userguide/formeditor/functions/get_birthday_of_current_patient?rev=1575886766&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-12-09T10:19:26+00:00</dc:date>
        <title>getBirthdayOfCurrentPatient</title>
        <link>https://gm.apps.lu/de/userguide/formeditor/functions/get_birthday_of_current_patient?rev=1575886766&amp;do=diff</link>
        <description>getBirthdayOfCurrentPatient


/**
 * Gets the birthday of the current patient and returns it as 
 * a java.util.Calendar.
 * 
 * @return:
 * The birthday of the current patient.
 */
function getBirthdayOfCurrentPatient () {
   /* ======================================== */
   // IMPORTS
   importPackage(java.util);
   
   var birthday = new GregorianCalendar();
   birthday.setTime(patient.getBirthDate());
   
   return birthday;
   /* ======================================== */
}</description>
    </item>
    <item rdf:about="https://gm.apps.lu/de/userguide/formeditor/functions/getbmi?rev=1575886766&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-12-09T10:19:26+00:00</dc:date>
        <title>getBMI</title>
        <link>https://gm.apps.lu/de/userguide/formeditor/functions/getbmi?rev=1575886766&amp;do=diff</link>
        <description>getBMI


/* Calculates the BMI out of the given values
 * 
 * tfHeight:
 * The numeric textfield containing the patient's height in cm
 * 
 * tfWeight:
 * The numeric textfield containing the patient's weight in kg
 * 
 * return;
 * This function returns the calculated BMI
 */
function getBMI (tfHeight, tfWeight) {
   /* ======================================== */
   // IMPORTS
   importPackage(java.awt);
   importPackage(java.lang);
   
   /* Get the patient's size and weight and 
    * allocat…</description>
    </item>
    <item rdf:about="https://gm.apps.lu/de/userguide/formeditor/functions/graph_date_to_patient_age?rev=1575886766&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-12-09T10:19:26+00:00</dc:date>
        <title>changeGraphDateToPatientAge</title>
        <link>https://gm.apps.lu/de/userguide/formeditor/functions/graph_date_to_patient_age?rev=1575886766&amp;do=diff</link>
        <description>changeGraphDateToPatientAge


/**
 * This function replaces the x-values, given as milliseconds since 1970
 * into the age of the patient in years at that point in time.
 * It returns an array of Range objects, that defines the dimensions
 * of the changed graph. 
 * 
 * NEEDED FUNCTIONS:
 *  - calculateAge
 * 
 * @param patientBirthday: 
 * The patients birthday as a java.util.Calendar
 * 
 * @param diagrammToChange: 
 * The diagram that contains the graph to change 
 * (this is a component cre…</description>
    </item>
    <item rdf:about="https://gm.apps.lu/de/userguide/formeditor/functions/manipulate_chart?rev=1575886766&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-12-09T10:19:26+00:00</dc:date>
        <title>manipulateChart</title>
        <link>https://gm.apps.lu/de/userguide/formeditor/functions/manipulate_chart?rev=1575886766&amp;do=diff</link>
        <description>manipulateChart


/** 
 * Manipulates the given chart. The chart is what you get 
 * by inserting an diagram into the form editor.
 * 
 * 1. Converts the measuring date into the Age of the patient.
 * 2. Centers the diagram on the data series graph.
 * 3. Clears the unnecessary graphs, so there would be shown.
 * 4. The age of the patient will be given in month or years,
 *    depending on the latest measuring date.
 * 
 * NEEDED FUNCTIONS:
 *  - changeGraphDateToPatientAge()
 *  - calculateAge(…</description>
    </item>
</rdf:RDF>
