/* * Mapping definitions * * Always are in the following Groovy syntax: * *
* mappings = { * mappingKey1(['oid of key code system','oid of value code system'], * key1 : 'value1', * key2 : 'value2', * (ELSE): Closure or Value * ) * mappingKey2( * ... * ) * ... * * } ** * The list of OIDs is optional. The ELSE element can be either a Closure or a normal Object, * which is converted to a String. The closure takes the key as only parameter, so that ** ... * (ELSE) : { it } * ... ** will return that key, and thus an unknown key is mapped to itself. * */ mappings = { 'bidi-administrativeGender-administrativeGender'( ['2.16.840.1.113883.5.1', '2.16.840.1.113883.12.1'], 'M': 'M', 'F': 'F', 'U': 'O' ) }