001package org.hl7.fhir.utilities; 002 003public class HL7WorkGroups { 004 005 public static class HL7WorkGroup { 006 private String link; 007 private String name; 008 private String name2; 009 private String code; 010 011 012 protected HL7WorkGroup(String code, String name, String name2, String link) { 013 super(); 014 this.code = code; 015 this.name = name; 016 this.name2 = name2; 017 this.link = link; 018 } 019 public String getLink() { 020 return link; 021 } 022 public String getName() { 023 return name; 024 } 025 public String getName2() { 026 return name2; 027 } 028 public String getCode() { 029 return code; 030 } 031 } 032 033 public static HL7WorkGroup find(String wg) { 034 String name = nameForWG(wg); 035 String name2 = name2ForWG(wg); 036 String url = urlForWG(wg); 037 if (name != null) { 038 return new HL7WorkGroup(wg, name, name2, url); 039 } else { 040 return null; 041 } 042 } 043 044 045 private static String urlForWG(String wg) { 046 switch (wg) { 047 048 case "aid": return "http://www.hl7.org/Special/committees/java"; 049 case "arden": return "http://www.hl7.org/Special/committees/arden"; 050 case "brr": return "http://www.hl7.org/Special/committees/rcrim"; 051 case "cbcc": return "http://www.hl7.org/Special/committees/cbcc"; 052 case "cdamg": return "http://www.hl7.org/Special/committees/cdamg"; 053 case "cds": return "http://www.hl7.org/Special/committees/dss"; 054 case "cg": return "http://www.hl7.org/Special/committees/clingenomics"; 055 case "cgp": return "http://www.hl7.org/Special/committees/cgp"; 056 case "cic": return "http://www.hl7.org/Special/committees/cic"; 057 case "cimi": return "http://www.hl7.org/Special/committees/cimi"; 058 case "claims": return "http://www.hl7.org/Special/committees/claims"; 059 case "cqi": return "http://www.hl7.org/Special/committees/cqi"; 060 case "dev": return "http://www.hl7.org/Special/committees/healthcaredevices"; 061 case "ehr": return "http://www.hl7.org/Special/committees/ehr"; 062 case "ec": return "http://www.hl7.org/Special/committees/emergencycare"; 063 case "fhir": return "http://www.hl7.org/Special/committees/fiwg"; 064 case "fmg": return "http://www.hl7.org/Special/committees/fhirmg"; 065 case "fm": return "http://www.hl7.org/Special/committees/fm"; 066 case "hsi": return "http://www.hl7.org/Special/committees/hsi"; 067 case "hsswg": return "http://www.hl7.org/Special/committees/hsswg"; 068 case "hta": return "http://www.hl7.org/Special/committees/termauth"; 069 case "ictc": return "http://www.hl7.org/Special/committees/ictc"; 070 case "ii": return "http://www.hl7.org/Special/committees/imagemgt"; 071 case "inm": return "http://www.hl7.org/Special/committees/inm"; 072 case "its": return "http://www.hl7.org/Special/committees/xml"; 073 case "lhs": return "http://www.hl7.org/Special/committees/lhs"; 074 case "mnm": return "http://www.hl7.org/Special/committees/mnm"; 075 case "mobile": return "http://www.hl7.org/Special/committees/mobile"; 076 case "oo": return "http://www.hl7.org/Special/committees/orders"; 077 case "pa": return "http://www.hl7.org/Special/committees/pafm"; 078 case "pe": return "http://www.hl7.org/Special/committees/patientempowerment"; 079 case "pc": return "http://www.hl7.org/Special/committees/patientcare"; 080 case "pher": return "http://www.hl7.org/Special/committees/pher"; 081 case "phx": return "http://www.hl7.org/Special/committees/medication"; 082 case "sd": return "http://www.hl7.org/Special/committees/structure"; 083 case "sec": return "http://www.hl7.org/Special/committees/secure"; 084 case "soa": return "http://www.hl7.org/Special/committees/soa"; 085 case "ti": return "http://www.hl7.org/Special/committees/Vocab"; 086 case "tsmg": return "TSMG) (http://www.hl7.org/Special/committees/tsmg"; 087 case "us": return "http://www.hl7.org/Special/committees/usrealm"; 088 case "v2": return "http://www.hl7.org/Special/committees/v2management"; 089 case "vocab": return "http://www.hl7.org/Special/committees/Vocab"; 090 091 } 092 return null; 093 } 094 095 private static String nameForWG(String wg) { 096 switch (wg) { 097 case "aid": return "Application Implementation and Design"; 098 case "arden": return "Arden Syntax"; 099 case "brr": return "Biomedical Research and Regulation"; 100 case "cbcc": return "Community Based Collaborative Care"; 101 case "cdamg": return "CDA Management Group"; 102 case "cds": return "Clinical Decision Support"; 103 case "cg": return "Clinical Genomics"; 104 case "cgp": return "Cross-Group Projects"; 105 case "cic": return "Clinical Interoperability Council"; 106 case "cimi": return "Clinical Information Modeling Initiative"; 107 case "claims": return "Payer/Provider Information Exchange Work Group"; 108 case "cqi": return "Clinical Quality Information"; 109 case "dev": return "Health Care Devices"; 110 case "ehr": return "Electronic Health Records"; 111 case "ec": return "Emergency Care"; 112 case "fhir": return "FHIR Infrastructure"; 113 case "fmg": return "FHIR Management Group"; 114 case "fm": return "Financial Management"; 115 case "hsi": return "Health Standards Integration"; 116 case "hsswg": return "Human and Social Services"; 117 case "hta": return "Terminology Authority"; 118 case "ictc": return "Conformance"; 119 case "ii": return "Imaging Integration"; 120 case "inm": return "Infrastructure And Messaging"; 121 case "its": return "Implementable Technology Specifications"; 122 case "lhs": return "Learning Health Systems"; 123 case "mnm": return "Modeling and Methodology"; 124 case "mobile": return "Mobile Health"; 125 case "oo": return "Orders and Observations"; 126 case "pa": return "Patient Administration"; 127 case "pe": return "Patient Empowerment"; 128 case "pc": return "Patient Care"; 129 case "pher": return "Public Health"; 130 case "phx": return "Pharmacy"; 131 case "sd": return "Structured Documents"; 132 case "sec": return "Security"; 133 case "soa": return "Services Oriented Architecture"; 134 case "ti": return "Terminology Infrastructure"; 135 case "tsmg": return "Terminology Services Management Group (TSMG)"; 136 case "us": return "US Realm Steering Committee"; 137 case "v2": return "V2 Management Group"; 138 case "vocab": return "Terminology Infrastructure"; 139 } 140 return null; 141 } 142 143 private static String name2ForWG(String wg) { 144 switch (wg) { 145 case "ti": return "Vocabulary"; 146 case "vocab": return "Vocabulary"; 147 } 148 return null; 149 } 150 151}