Import Codesystem - CSV

Aus Termserver-CTS2
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(Scenarios)
(Examples)
Zeile 139: Zeile 139:
 
</source>
 
</source>
  
=Examples=
 
==Roles (German) with translation to French==
 
<source lang="text">
 
code;term;translation_fr
 
AccIns;Unfallversicherung;Assureur accident
 
Assoc;Gesellschaft;Association
 
Chiro;Chiropraktiker;Chiropraticien
 
Dent;Zahnarzt;Méd. Dentiste
 
DiabAdv;Diabetesberater/in;Conseiller/ère en diabète
 
DoctMed;Humanmediziner;Méd. Humaine
 
Drugg;Drogist;Drogiste
 
DruSto;Drogerie;Droguerie
 
Ergo;Ergotherapeut;Ergothérapeute
 
GrpPra;Gruppenpraxis;Cabinet médical de groupe
 
HeaIns;Krankenversicherung;Assureur maladie
 
HeaProd;Gesundheitsprodukte Herstellung & Handel;Produits de santé (fabrication et commerce)
 
HeaProv;Andere Leistungserbringer;Autre prestataire de soin
 
HeaTec;Gesundheitstechnik Herstellung & Handel;Technique de santé (fabrication et commerce)
 
Hosp;Spital / Klinik;Hôpital/Clinique
 
Indus;Industrie;Industrie
 
IntOrg;Internationale Organisation;Organisation internationale
 
Lab;Institut/Forschungs- und Analysen-Labor;Institut/labo de recherche/analyse
 
Midw;Hebamme;Sage-femme
 
Nurse;Krankenpfleger/in;Infirmier/ère
 
NursHom;Pflegeheim;Home médicalisé
 
NutrAdv;Ernährungsberater/in;Conseiller/ère nutritionniste
 
ONursOrg;Andere Pflegeorganisation;Autre organisme de soins
 
Pharm;Apotheke;Pharmacie
 
Pharmst;Apotheker_in;Pharmacien_ne
 
Physio;Physiotherapeut;Physiothérapeute
 
PrivPra;Privatpraxis;Pratique privée
 
Psycho;Psychologe/Psychotherapeut;Psychologue/Psychothérapeute
 
PubHea;Gesundheitsamt;Autorité sanitaire
 
SerFirm;Dienstleistungsfirma;Société de service
 
SocSec;Sozialversicherung;Assurance sociale
 
SpecPra;Andere Praxis;Autre cabinet
 
SpeeTher;Logopäd/in;Logopédiste
 
Veter;Tierarzt;Méd. Vétérinaire
 
Whole;Grossist;Grossiste
 
</source>
 
 
=SOAP Examples=
 
=SOAP Examples=
 
==Import short file creating a new code system==
 
==Import short file creating a new code system==

Version vom 31. Mai 2016, 11:25 Uhr

Inhaltsverzeichnis

Usage

Fields have to be seperated by semicolon ";".

Charset has to be "ISO-8859-1".

Filename must have csv extension.

Fields

Field Optionality Datatype Description
code required String Concept code, maximum of 100 characters
term required String Designation
term_abbrevation optional String Abbrevation of designation, maximum length of 50 characters
description optional String Additional description
is_preferred optional bool default: true (1), possible values: 1 or 0
is_axis optional bool default: false (0), possible values: 1 or 0
is_mainclass optional bool default: false (0), possible values: 1 or 0
translation_XY optional String Defines translations for a concept designation. XY has to be replaced with the ISO code for the language, for example: "translation_en"
metadata_XYZ optional String Defines additional metadata for a concept. XYZ has to be replaced with the name of the metadata, for example: "metadata_meaning"
relation optional String Code to related concept.
  association_kind optional Integer used if relation is set (1=ontological, 2=taxonomic, 3=cross mapping, 4=link; default: 2)
  association_type optional String used if relation is set, forward name for the relation
  association_type_reverse optional String used if relation is set, reverse name for the relation
  crossmapping_csv_id optional long used if relation should be a cross mapping to another code system with given version id


Scenarios

In this chapter you find information about different scenarios. You can combine them to import complex structures into the Terminology Server.

Importing translations

If you want to import translations, you will have to add 1 column for each language. You will have to name the column with translation_XY, where XY has to be replaced with the language code, for example: "translation_en" for an English translation. The language code has to exists in the domain 'ISO_639_1_Language_Codes'. You can see all possible values in TermAdmin in the domain section.

Example

This example imports 2 language codes with default language English and a German translation.

code;term;translation_de
de;German;Deutsch
en;English;Englisch

Importing metadata

Metadata works nearly similar to translations. Each metadata you want to import need 1 column named "metadata_XY", where XY has to be replaced with the name of metadata. In contrast to translations you can define your own metadata text (replace XY with any text).

Example

This example imports 2 countries with 2 metadata inhabitants and currency.

code;term;metadata_inhabitants;metadata_currency
DEU;Germany;80.62 millions;Euro (EUR)
USA;United States of America;318.9 millions;US-Dollar (USD)

Importing associations (hierarchies)

You can import associations between concepts. Therefore you have to import the parent concept before the child concept (by placing the parent concept above the child concept).

Example

This example imports 2 countries with German translation and 2 states associated with the countries.

code;term;translation_de;is_axis;relation;association_kind;association_type;association_type_reverse
DEU;Germany;Deutschland;1;;;;
NRW;North Rhine-Westphalia;Nordrhein-Westfalen;0;DEU;2;has state;is state of
BAV;Bavaria;Bayern;0;DEU;2;has state;is state of
USA;United States of America;Vereinigte Staaten von Amerika;1;;;;
TEX;Texas;Texas;0;USA;2;has state;is state of
CAL;California;Kalifornien;0;USA;2;has state;is state of

SOAP Examples

Import short file creating a new code system

The following sample imports a new code system with csv content. The user has to be logged in before, to obtain a login token.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:adm="http://administration.ws.terminologie.fhdo.de/">
   <soapenv:Header/>
   <soapenv:Body>
      <adm:ImportCodeSystem>
         <parameter>
            <codeSystem>
               <codeSystemVersions>
                  <name>Test X-Version 1</name>
               </codeSystemVersions>
               <name>Test X</name>
            </codeSystem>
            <importInfos>
            <filecontent>aXNfcHJlZmVycmVkO2NvZGU7bWV0YWRhdGFfUHJpbeRyc2NobPxzc2VsbnI7bWV0YWRhdGFfU3Rlcm5zY2hs/HNzZWxucjttZXRhZGF0YV9adXNhdHpzY2hs/HNzZWxucjt0ZXJtO3JlbGF0aW9uO2Nyb3NzbWFwcGluZ19jc3ZfaWQ7YXNzb2NpYXRpb25fa2luZDthc3NvY2lhdGlvbl90eXBlO2Fzc29jaWF0aW9uX3R5cGVfcmV2ZXJzZQ0KMDtJOTc3MzA7OztaMzcuOSE7WndpbGxpbmdlOzsxNTg7MztlcXVhbHM7ZXF1YWxzDQoxO0k5MDAxNjtBMDAuMDs7O0Nob2xlcmEgZHVyY2ggVmlicmlvIGNob2xlcmFlIE86MSwgQmlvdmFyIGNob2xlcmFlO0EwMC4wOzE1ODszO2VxdWFscztlcXVhbHMNCjE7STMwOTE5O0EwMC4wOzs7S2xhc3Npc2NoZSBDaG9sZXJhO0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MS4zOSo7O0FydGhyaXRpcyBiZWkgVHlwaHVzO0EwMS4wOzE1ODszO2VxdWFscztlcXVhbHMNCjE7STg5MzM5O0EwMS4wKztNMDEuMzkqOztBcnRocml0aXMgYmVpIFR5cGh1cyBhYmRvbWluYWxpcztBMDEuMDsxNTg7MztlcXVhbHM7ZXF1YWxzDQoxO0k4Mjc4NztBMDEuMCs7TTQ5LjI5Kjs7U3BvbmR5bGl0aXMgdHlwaG9zYTtBMDEuMDsxNTg7MztlcXVhbHM7ZXF1YWxzDQoxO0kyMTMxMDtBMDEuMCs7TTYzLjA5Kjs7VHlwaHVzLU15b3NpdGlzO0EwMS4wOzE1ODszO2VxdWFscztlcXVhbHMNCjE7STc3OTQyO0EwMS4wKztNOTAuMjkqOztUeXBo9nNlIE9zdGVvbXllbGl0aXM7QTAxLjA7MTU4OzM7ZXF1YWxzO2VxdWFscw0K</filecontent>  <!-- can be imported directly in Soap-UI (context menu) -->
               <formatId>1</formatId>
            </importInfos>
            <loginToken>7dab8ac8-7ac7-43e8-9dc6-334b07290079</loginToken>
         </parameter>
      </adm:ImportCodeSystem>
   </soapenv:Body>
 </soapenv:Envelope>
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Werkzeuge