@Unstable
public interface RecordConfiguration
| Modifier and Type | Field and Description |
|---|---|
static org.xwiki.model.reference.EntityReference |
CUSTOM_PREFERENCES_CLASS
Deprecated.
since 1.4, this is specific to studies and has been moved in a different module
|
static org.xwiki.model.reference.EntityReference |
GLOBAL_PREFERENCES_CLASS
The XClass used for storing the global configuration.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAllFieldNames()
The list of available fields, enabled or disabled, that can be displayed in this type of record.
|
List<RecordSection> |
getAllSections()
The list of available sections, enabled or disabled, that can be displayed in this type of record.
|
String |
getDateOfBirthFormat()
The format to use for entering and displaying the date of birth and other dates.
|
List<String> |
getEnabledFieldNames()
The list of fields enabled for this record type.
|
List<String> |
getEnabledNonIdentifiableFieldNames()
Deprecated.
since 1.4, this functionality has moved in the Consents module
|
List<RecordSection> |
getEnabledSections()
The list of sections enabled for this record type.
|
String |
getISODateFormat()
The date format compliant with the ISO 8601 standard, in the
Java date format. |
org.xwiki.model.reference.DocumentReference |
getPhenotypeMapping()
The custom predefined phenotypes displayed in the "Clinical Symptoms" section are configured in a document, and
this type of configuration is called a "Phenotype Mapping".
|
void |
setDateOfBirthFormat(String format)
Update the format of the date of birth.
|
void |
setPhenotypeMapping(org.xwiki.model.reference.DocumentReference mapping)
Update the preferred phenotype mapping.
|
void |
setSections(List<RecordSection> sections)
Update the list of available section.
|
static final org.xwiki.model.reference.EntityReference GLOBAL_PREFERENCES_CLASS
@Deprecated static final org.xwiki.model.reference.EntityReference CUSTOM_PREFERENCES_CLASS
List<RecordSection> getEnabledSections()
List<RecordSection> getAllSections()
void setSections(List<RecordSection> sections)
sections - a list of sections, may be emptygetAllSections()List<String> getEnabledFieldNames()
@Deprecated List<String> getEnabledNonIdentifiableFieldNames()
List<String> getAllFieldNames()
@Unstable org.xwiki.model.reference.DocumentReference getPhenotypeMapping()
@Unstable void setPhenotypeMapping(org.xwiki.model.reference.DocumentReference mapping)
mapping - a reference to a document containing a phenotype mapping definitiongetPhenotypeMapping()String getISODateFormat()
Java date format.String getDateOfBirthFormat()
yyyy,
MM/yyyy, or MMMM yyyy are supported. This also allows switching between different formats such as
yyyy-MM-dd, dd/MM/yyyy, or MM/dd/yyyy.Java date formatvoid setDateOfBirthFormat(String format)
format - the new date format, in the Java date formatgetDateOfBirthFormat()Copyright © 2011–2018 University of Toronto, Computational Biology Lab. All rights reserved.