All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.map.fhir-hl7v2-translation.map Maven / Gradle / Ivy

The newest version!
/*
 * 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. * * Note that most of these mappings are derived directly from the FHIR specification */ mappings = { 'hl7v2fhir-patient-maritalStatus'(['2.16.840.1.113883.5.2', 'http://hl7.org/fhir/v3/MaritalStatus'], 'A': 'N', // separated 'B': 'U', // unmarried 'C': 'P', // common law 'D': 'D', // divorced 'E': 'L', // legally separated 'G': 'T', // living together 'I': 'I', // interlocutory 'M': 'M', // married 'N': 'A', // anulled 'L': 'L', // legally separated 'O': 'UNK', // other 'P': 'T', // domestic partner 'R': 'T', // registered domestic partner 'S': 'S', // never married AKA single 'T': 'UNK', // unreported 'U': 'UNK', // unknown 'W': 'W', // widowed (ELSE) : 'UNK' // unknown stuff ) 'hl7v2fhir-patient-religion'(['2.16.840.1.113883.5.6', 'http://hl7.org/fhir/v3/ReligiousAffiliation'], AGN: 1004, // Agnostic ATH: 1007, // Atheist BAH: 1008, // Baha'i BUD: 1059, // Buddhist BMA: 1029, // Buddhist: Mahayana BTH: 1051, // Buddhist: Theravada ANG: 1005, // Christian: Anglican AOG: 1061, // Christian: Assembly of God BAP: 1009, // Christian: Baptist CAT: 1041, // Christian: Roman Catholic CHS: 1063, // Christian: Christian Science COC: 1064, // Christian: Church of Christ COG: 1065, // Christian: Church of God EOT: 1068, // Christian: Eastern Orthodox EPI: 1069, // Christian: Episcopalian FRQ: 1071, // Christian: Friends GRE: 1068, // Christian: Greek Orthodox JWN: 1025, // Christian: Jehovah's Witness LUT: 1028, // Christian: Lutheran MET: 1073, // Christian: Methodist MOM: 1027, // Christian: Latter-day Saints NAZ: 1075, // Christian: Church of the Nazarene COT: 1013, // Christian: Other PEN: 1038, // Christian: Pentecostal PRE: 1076, // Christian: Presbyterian PRO: 1077, // Christian: Protestant QUA: 1071, // Christian: Friends REC: 1079, // Christian: Reformed Church SAA: 1080, // Christian: Salvation Army SEV: 1001, // Christian: Seventh Day Adventist UNU: 1052, // Christian: Unitarian Universalist CNF: 1014, // Confucian HIN: 1020, // Hindu JAI: 1024, // Jain JEW: 1026, // Jewish MOS: 1023, // Muslim MSU: 1049, // Muslim: Sunni MSH: 1045, // Muslim: Shiite NAM: 1074, // Native American SHN: 1046, // Shintoist SIK: 1047, // Sikh (ELSE) : 'UNK' ) /* // BTA: // Buddhist: Tantrayana // CFR: // Chinese Folk Religionist // CHR: // Christian // ABC: // Christian: American Baptist Church // AMT: // Christian: African Methodist Episcopal // AME: // Christian: African Methodist Episcopal Zion // CRR: // Christian: Christian Reformed // CMA: // Christian: Christian Missionary Alliance // COI: // Christian: Church of God in Christ // COM: // Christian: Community // COL: // Christian: Congregational // EVC: // Christian: Evangelical Church // FWB: // Christian: Free Will Baptist // LMS: // Christian: Lutheran Missouri Synod // MEN: // Christian: Mennonite // ORT: // Christian: Orthodox // PRC: // Christian: Other Protestant // COP: // Christian: Other Pentecostal // REO: // Christian: Reorganized Church of Jesus Christ-LDS // SOU: // Christian: Southern Baptist // UCC: // Christian: United Church of Christ // UMD: // Christian: United Methodist // UNI: // Christian: Unitarian // WES: // Christian: Wesleyan // WMC: // Christian: Wesleyan Methodist // ERL: // Ethnic Religionist // HVA: // Hindu: Vaishnavites // HSH: // Hindu: Shaivites // HOT: // Hindu: Other // JCO: // Jewish: Conservative // JOR: // Jewish: Orthodox // JOT: // Jewish: Other // JRC: // Jewish: Reconstructionist // JRF: // Jewish: Reform // JRN: // Jewish: Renewal // MOT: // Muslim: Other // NRL: // New Religionist // NOE: // Nonreligious // OTH: // Other // SPI: // Spiritist // VAR: // Unknown */ 'hl7v2fhir-patient-citizenship'(['1.0.3166', 'urn:iso:std:iso:3166'], (ELSE): { it }, ({it}): (ELSE) ) 'hl7v2fhir-address-use'(['2.16.840.1.113883.5.290', 'http://hl7.org/fhir/address-use'], 'H' : 'home', 'L' : 'home', 'O' : 'work', 'B' : 'work', 'BA': 'old', (ELSE): '' ) 'hl7v2fhir-name-use'(['2.16.840.1.113883.5.200', 'http://hl7.org/fhir/name-use'], 'D' : 'usual', 'L' : 'official', 'TEMP' : 'temp', 'N' : 'nickname', 'S' : 'anonymous', 'BAD' : 'old', 'M' : 'maiden', 'B' : 'maiden', (ELSE) : '' ) 'hl7v2fhir-telecom-use'(['2.16.840.1.113883.5.201', 'http://hl7.org/fhir/contact-point-use'], 'PRN' : 'home', 'ORN' : 'home', 'VHN' : 'home', 'WPN' : 'work', 'PRS' : 'mobile', (ELSE) : '' ) 'hl7v2fhir-telecom-type'(['2.16.840.1.113883.5.202', 'http://hl7.org/fhir/contact-point-system'], 'PH' : 'phone', 'FX' : 'fax', 'Internet' : 'email', 'BP' : 'pager', 'CP' : 'phone', (ELSE) : 'other' ) 'hl7v2fhir-patient-gender'(['http://hl7.org/fhir/administrative-gender', '2.16.840.1.113883.12.1'], 'male' : 'M', 'female' : 'F', 'other' : 'O', 'unknown' : 'U', (ELSE): 'O' ) 'hl7v2fhir-patient-administrativeGender'(['2.16.840.1.113883.12.1', 'http://hl7.org/fhir/administrative-gender'], 'M' : 'male', 'F' : 'female', 'A' : 'other', 'O' : 'other', 'U' : 'unknown', (ELSE): 'other' ) 'hl7v2fhir-patient-genderIdentity'(['2.16.840.1.113883.12.1', 'http://hl7.org/fhir/StructureDefinition/patient-genderIdentity'], 'M' : 'male', 'F' : 'female', 'A' : 'non-binary', 'D' : 'non-binary', 'I' : 'non-binary', (ELSE): 'other' ) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy