Changes between Version 9 and Version 10 of i2b2 Mapped Importer
- Timestamp:
- 10/03/13 16:41:41 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
i2b2 Mapped Importer
v9 v10 99 99 * JSON 100 100 101 == Mapping101 == Entity Mapping 102 102 103 103 Mappings are used to specify which field from the source gets used for which field in the output. These are specified in a YAML file. By default this file is called mapping.yaml in the application root directory, but the mapping file path can be defined using the {{{-m=xxx}}} or {{{--mappingFilePath=xxx}}} command line arguments. 104 104 105 Mappings can be defined for :105 Mappings can be defined for the following entites: 106 106 107 107 * Patients, including mappings … … 109 109 * Observations 110 110 111 Currently mappings are not available for other i2b2 types such as concepts and observers.111 Currently mappings are not available for other i2b2 entities such as concepts and observers. 112 112 113 === Observation Mappings113 === Data Fields 114 114 115 ==== Data Fields 116 The types available for observation mappings are: 115 The following data fields are available for mapping entities: 117 116 118 117 * !BooleanTrueField … … 125 124 * !DataSourceTextField 126 125 * !LiteralTextField 127 128 ==== Date Fields129 Observation dates are defined as a list of dates that can be used if they are defined. If the first field in the list is not defined, then next one on the list will be tried and so on.130 131 The types of date field available are:132 133 126 * !DataSourceDateField 134 127 * !YearOnlyDateField 135 128 129 ===== Observation Fields 130 131 These fields can be used to create a observations. An observation will only be create if a non-NULL value is returned. 132 133 Some observation fields create an observation with a text value, others a numeric value, and others an enumeration value (actually just a text value). Other observations create an observation without a value of any kind. These are called ''Existence'' fields. 134 135 ===== Date Fields 136 137 Most dates in entities are defined as a list of date fields instead of a single date field. If the first date in the list does not yield a date, the next date field in the list is checked and so on. Only if all dates are undefined will the date be set to NULL. In some cases this will cause an error. 138 139 ===== Datasource Fields 140 141 These fields take their data from the patient row (etc) from the data source. The {{{source}}} attributes of these fields define how the value is located. 142 143 ===== Literal Fields 144 145 These fields take their values from the mapping definition itself. In these fields the value is either defined by the {{{source}}} attribute or by the field type itself. 146 147 ==== The Fields 148 149 ===== !BooleanTrueField 150 151 Always set the value to true. 152 153 ====== Mapping 154 155 * {{{type}}}: {{{uk.org.briccs.onyxmappedexport2pdo.fields.!BooleanTrueField}}} 156 157 === !DataSourceConditionalExistenceField 158 159 ''' A N D T H E R E S T''' 160 161 === Patient Entity 162 163 === Observation Entity 164 165 === Event / Visit Entity 166 167 136 168 == Extensions 137