Data Types

Languages

Whenever a method expects a language as a parameter, it will be a 2 letter ISO-639-1 code.
Examples:

  • English : en
  • German: de
  • French: fr
  • Italian: it

You can download all used language and country codes in JSON format

Countries

Whenever a method expects a country as a parameter, it will be a 2 letter 3166-1 alpha-2 code.
Examples:

  • Switzerland : ch
  • Germany: de
  • France: fr
  • Italy: it

You can download all used language and country codes in JSON format

Dates

Dates will be sent to MEMdoc as strings. The format of the string will be checked on the server and an error will be returned if the date is in a invalid format. Date formats are by country whereby the separators (e.g . / -) are exchangable.

Valid date formats:

  • Switzerland : dd.mm.yyyy
  • France: jj.mm.aaaa
  • Germany: dd.mm.yyyy
  • USA: mm/dd/yyyy

A list for all other countries plus a explanation of the formats can be found here.

If you're not sure which date format is right for you, please contact us

Data Types for Patient Data

The data types for patient data is different for each study. You will have to connect to the web service and call the method module.getPatientFields. This will return a list of PatientField objects, one for each value that will be saved per patient. The type, minimum and maximum lentgth and so on will be contained in these objects. The values you send will always be strings, but they will be converted to the data type specified on the server. If it is not possible to convert to the correct data type an error will be returned.