CTS2-LE ClaML API: Update: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Krebs (Diskussion | Beiträge) K |
Billig (Diskussion | Beiträge) |
||
| (2 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt) | |||
| Zeile 7: | Zeile 7: | ||
;Request Body | ;Request Body | ||
:<code>application/xml</code> | :<code>application/xml</code> | ||
| − | :XML input stream | + | :XML input stream in ClaML format |
;Parameters | ;Parameters | ||
:<b>resourceId</b> (type: <code>string</code>, occurence: <code>optional</code>) uniquely identifies a resource; if not defined, the XML input attribute <code>/ClaML/Title/@name</code> will be used | :<b>resourceId</b> (type: <code>string</code>, occurence: <code>optional</code>) uniquely identifies a resource; if not defined, the XML input attribute <code>/ClaML/Title/@name</code> will be used | ||
| Zeile 21: | Zeile 21: | ||
:<code>409</code> errors specified in XML | :<code>409</code> errors specified in XML | ||
| − | + | <!-- | |
== Example Request == | == Example Request == | ||
| − | <b>POST</b> /WebCts2LE/service/crud/claml/update?groupName=EXA&defaultLanguage=de&resourceId=Test-Codesystem | + | <b>POST</b> /WebCts2LE/service/crud/claml/update?groupName=EXA&defaultLanguage=de&resourceId=Test-Codesystem&version=v1<br> |
<b>with body:</b> | <b>with body:</b> | ||
<syntaxhighlight lang="xml" line="GESHI_NORMAL_LINE_NUMBERS"> | <syntaxhighlight lang="xml" line="GESHI_NORMAL_LINE_NUMBERS"> | ||
| − | |||
| − | |||
<ClaML version="2.0.0"> | <ClaML version="2.0.0"> | ||
| − | + | <Identifier uid="1.2.40.0.34.99.1212" /> | |
| − | + | <Title version="v1" date="2017-01-01" name="Test-Codesystem" /> | |
| − | + | <RubricKinds> | |
| − | + | <RubricKind inherited="false" name="note" /> | |
| − | + | <RubricKind inherited="false" name="preferred" /> | |
| − | + | <RubricKind inherited="false" name="text" /> | |
| − | + | </RubricKinds> | |
| − | + | ||
| − | + | <Class code="code test"> | |
| − | + | <Rubric kind="preferred"> | |
| − | + | <Label>display name</Label> | |
| − | + | </Rubric> | |
| − | + | <Rubric kind="text"> | |
| − | + | <Label>example note</Label> | |
| − | + | </Rubric> | |
| − | + | <Rubric kind="note"> | |
| − | + | <Label>another fancy example note</Label> | |
| − | < | + | </Rubric> |
| − | + | </Class> | |
| − | + | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
</ClaML> | </ClaML> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| + | --> | ||
Aktuelle Version vom 13. Januar 2021, 20:58 Uhr
CTS2-LE provides an interface for importing terminological resources that are stuctured in Classification MarkUp Language (ClaML). For further information on ClaML please visit the wikipedia page or the documentation provided by DIMDI.
Operation Syntax
POST /WebCts2LE/service/crud/claml/update
- Updates a code system. If the resource does not exist, it is created.
- Request Body
application/xml- XML input stream in ClaML format
- Parameters
- resourceId (type:
string, occurence:optional) uniquely identifies a resource; if not defined, the XML input attribute/ClaML/Title/@namewill be used - version (type:
string, occurence:optional) the version of the resource; if not defined, the XML input attribute/ClaML/Title/@versionwill be used - groupName (type:
string, occurence:mandatory) determines the group to which the resource will belong; this is essential for displaying the resource in the navigator - defaultLanguage (type:
string, occurence:mandatory) the default language of the resource - isDefaultVersion (type:
boolean, occurence:optional, default istrue) label the resource as the default version - isSVSOrigin (type:
boolean, occurence:optional, default isfalse) distinguishes a code system that has certain attributes which are specific for SVS (Sharing Value Sets) resources
- Responses
application/xml200no errors409errors specified in XML