WS-Beschreibung - Terminologieserver Administration ImportValueSet
Aus Termserver-CTS2
(Unterschied zwischen Versionen)
Becker (Diskussion | Beiträge) |
Becker (Diskussion | Beiträge) |
||
Zeile 1: | Zeile 1: | ||
− | = | + | =Functionality= |
− | + | Import value sets from a file in CSV format.<br> | |
− | <br><br> | + | <br> |
− | = | + | =Prerequisites= |
− | + | Requires [[WS-Beschreibung - Terminologieserver_Authorization_Login|Login]]. | |
=Request/Response= | =Request/Response= | ||
Zeile 155: | Zeile 155: | ||
</table> | </table> | ||
− | = | + | =Annotations= |
− | == | + | ==Noteworthiness== |
'''CSV-Import'''<br> | '''CSV-Import'''<br> | ||
− | + | The comma separated file has to be build in this pattern:<br> | |
*Syntax | *Syntax | ||
− | ** | + | **Coding: ISO-8859-1 |
− | ** | + | **Fields will be separated by a ";" |
− | **Strings | + | **Strings has to be encapsulated with " ", if there are any special or delimiter symbols |
− | ** | + | **First row contains informations about columns |
− | * | + | *Fields |
− | ** | + | **legal values |
− | ***code ( | + | ***code (either code or term are required) |
− | ***concept_id ( | + | ***concept_id (either code or conecpt_id required) |
− | ***''codesystem_version_id'' ( | + | ***''codesystem_version_id'' (required if code angegeben is set) |
− | <!--***''sub_entries'' (1/0 | + | <!--***''sub_entries'' (1/0 or true/false, standard: 0 - Adds additional sub entries if concept contains any)--> |
− | <nowiki>*</nowiki>'' | + | <nowiki>*</nowiki>''Italic'' Entries are optional |
− | + | If no concept id is given, the code denotation will be used to read concept id (lower performance) | |
− | == | + | ==Hints== |
− | = | + | =Examples= |
− | == | + | ==Files== |
− | <!-- | + | <!--Following files shows a example for a CSV import for a small code system with associations: [[:File:CSV-Import_Beispiel.csv|CSV-Import_Beispiel]] |
− | + | A example file (CSV) with different translations can be found here: [[:File:ISO_IEC_5218 Geschlechtercodes.csv|Geschlechtercodes CSV]]--> | |
− | ==SOAP | + | ==SOAP messages== |
− | === | + | ===Insert a new value set=== |
<source lang="xml"> | <source lang="xml"> | ||
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:adm="http://administration.ws.terminologie.fhdo.de/"> | <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:adm="http://administration.ws.terminologie.fhdo.de/"> | ||
Zeile 194: | Zeile 194: | ||
</valueSet> | </valueSet> | ||
<importInfos> | <importInfos> | ||
− | <filecontent>BASE64-CONTENT</filecontent> <!-- | + | <filecontent>BASE64-CONTENT</filecontent> <!-- can be imported directly in soap-Ui via context menu --> |
</importInfos> | </importInfos> | ||
<login> | <login> | ||
− | <sessionID>b8857f39-fc81-47a1-bec7-1b7935814199</sessionID> <!-- Session-ID | + | <sessionID>b8857f39-fc81-47a1-bec7-1b7935814199</sessionID> <!-- insert Session-ID from login --> |
</login> | </login> | ||
</parameter> | </parameter> | ||
Zeile 205: | Zeile 205: | ||
</source> | </source> | ||
− | === | + | ===Insert into a existing value set=== |
<source lang="xml"> | <source lang="xml"> | ||
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:adm="http://administration.ws.terminologie.fhdo.de/"> | <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:adm="http://administration.ws.terminologie.fhdo.de/"> | ||
Zeile 219: | Zeile 219: | ||
</valueSet> | </valueSet> | ||
<importInfos> | <importInfos> | ||
− | <filecontent>BASE64-CONTENT</filecontent> <!-- | + | <filecontent>BASE64-CONTENT</filecontent> <!-- can be imported directly in soap-Ui via context menu --> |
</importInfos> | </importInfos> | ||
<login> | <login> | ||
− | <sessionID>b8857f39-fc81-47a1-bec7-1b7935814199</sessionID> <!-- Session-ID | + | <sessionID>b8857f39-fc81-47a1-bec7-1b7935814199</sessionID> <!-- insert Session-ID from login --> |
</login> | </login> | ||
</parameter> | </parameter> |
Version vom 8. August 2013, 09:37 Uhr
Inhaltsverzeichnis |
Functionality
Import value sets from a file in CSV format.
Prerequisites
Requires Login.
Request/Response
Request
Parameter | Typ | Länge | Kardinalität | Beschreibung |
---|---|---|---|---|
importInfos | ImportType | 1..1 | Import-Metadaten | |
filecontent | byte[] | 1..1 | Der Dateiinhalt. CSV-Dateien müssen mit ISO-8859-1 kodiert werden. | |
LoginType | LoginType | 1..1 | Login-Informationen | |
sessionID | String | 1..1 | Die Session-ID des Benutzers | |
value_set | value_set | 1..1 | Stellt eine Untermenge von Begriffen dar. Jedes Valueset hat mindestens eine Valueset-Version. | |
description | String | 65535 | 0..1 | Beschreibung des Valuesets Dieses Feld wird nur benötigt, wenn Sie ein neues Value Set anlegen. |
id | Long | 0..1 | ID des Valuesets Sie müssen entweder die ID eines Value Sets angeben oder einen Namen angeben, falls Sie ein neues Value Set erstellen möchten. | |
name | String | 50 | 0..1 | Name des Valuesets Sie müssen entweder die ID eines Value Sets angeben oder einen Namen angeben, falls Sie ein neues Value Set erstellen möchten. |
value_set_version | value_set_version | 0..1 | Stellt die Version eines Valuesets dar. | |
preferredLanguageId | Long | 0..1 | Bevorzugte Sprache des Codesystems (ID ist aus der Domäne 'ISO_639_1_Language_Codes' mit der ID 1 zu entnehmen) | |
releaseDate | java.util.Date | 0..1 | Datum, ab dem die Valueset-Version gültig ist |
Response
Parameter | Typ | Länge | Kardinalität | Beschreibung |
---|---|---|---|---|
ReturnType | ReturnType | 1..1 | Enthält Informationen über die Antwort. | |
count | Integer | 1..1 | Anzahl der Ergebnisse | |
message | String | 1..1 | Status- oder Fehlermeldung | |
overallErrorCategory | 1..1 | INFO, WARN, ERROR | ||
status | 1..1 | OK, FAILURE | ||
value_set | value_set | 0..1 | Stellt eine Untermenge von Begriffen dar. Jedes Valueset hat mindestens eine Valueset-Version. | |
id | Long | 1..1 | ID des Valuesets | |
value_set_version | value_set_version | 1..1 | Stellt die Version eines Valuesets dar. | |
versionId | Long | 1..1 | Versions-ID des Valuesets |
Annotations
Noteworthiness
CSV-Import
The comma separated file has to be build in this pattern:
- Syntax
- Coding: ISO-8859-1
- Fields will be separated by a ";"
- Strings has to be encapsulated with " ", if there are any special or delimiter symbols
- First row contains informations about columns
- Fields
- legal values
- code (either code or term are required)
- concept_id (either code or conecpt_id required)
- codesystem_version_id (required if code angegeben is set)
- legal values
*Italic Entries are optional
If no concept id is given, the code denotation will be used to read concept id (lower performance)
Hints
Examples
Files
SOAP messages
Insert a new value set
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:adm="http://administration.ws.terminologie.fhdo.de/"> <soapenv:Header/> <soapenv:Body> <adm:ImportValueSet> <parameter> <valueSet> <name>NEUER VALUESET NAME</name> </valueSet> <importInfos> <filecontent>BASE64-CONTENT</filecontent> <!-- can be imported directly in soap-Ui via context menu --> </importInfos> <login> <sessionID>b8857f39-fc81-47a1-bec7-1b7935814199</sessionID> <!-- insert Session-ID from login --> </login> </parameter> </adm:ImportValueSet> </soapenv:Body> </soapenv:Envelope>
Insert into a existing value set
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:adm="http://administration.ws.terminologie.fhdo.de/"> <soapenv:Header/> <soapenv:Body> <adm:ImportValueSet> <parameter> <valueSet> <id>10</id> <valueSetVersions> <versionId>11</versionId> </valueSetVersions> </valueSet> <importInfos> <filecontent>BASE64-CONTENT</filecontent> <!-- can be imported directly in soap-Ui via context menu --> </importInfos> <login> <sessionID>b8857f39-fc81-47a1-bec7-1b7935814199</sessionID> <!-- insert Session-ID from login --> </login> </parameter> </adm:ImportValueSet> </soapenv:Body> </soapenv:Envelope>