Central Search Upload
Upload statistics¶
Retrieve or set the last upload timestamp¶
GET/sites/{dktk_siteid}_teiler/{dktk_teilerid}/uploadStats
Get the timestamp for the last successful upload to determine which patients have to be uploaded.
Parameters
- dktk_siteid
string
(required) Example: ffmthe id of the participating site
- dktk_teilerid
string
(required) Example: teilerffmthe id of the teiler of the participating site
Request
Headers
Content-Type: application/xml
Authorization: Basic dGVzdDoxMjM0Njc1NjM0NTY3NjU4NDMyNDUzNTUzMjEzNA==
Response
200
Headers
Content-Type: application/xml
Body
<?xml version="1.0" encoding="UTF-8"?>
<Uploadstats>
<LastUploadTimestamp>Tue, 15 Nov 1994 08:12:31 GMT</LastUploadTimestamp>
</Uploadstats>
PUT/sites/{dktk_siteid}_teiler/{dktk_teilerid}/uploadStats
Set the last upload timestamp to the current time.
Parameters
- dktk_siteid
string
(required) Example: ffmthe id of the participating site
- dktk_teilerid
string
(required) Example: teilerffmthe id of the teiler of the participating site
Request
Headers
Content-Type: application/xml
Authorization: Basic dGVzdDoxMjM0Njc1NjM0NTY3NjU4NDMyNDUzNTUzMjEzNA==
Body
<?xml version="1.0" encoding="UTF-8"?>
<Uploadstats>
<LastUploadTimestamp>Tue, 22 Nov 1994 04:32:48 GMT</LastUploadTimestamp>
</Uploadstats>
Response
200
Patients¶
Upload and delete patients¶
POST/sites/{dktk_siteid}_teiler/{dktk_teilerid}/pats/{mds-db_patid}
Upload an xml file containing one patient.
Parameters
- dktk_siteid
string
(required) Example: ffmthe id of the participating site
- dktk_teilerid
string
(required) Example: teilerffmthe id of the teiler of the participating site
- mds-db_patid
string
(required) Example: K3lCsbGJ1o0O9hGL...the MDS-DB-ID of the respective patient
Request
Headers
Content-Type: application/xml
Authorization: Basic dGVzdDoxMjM0Njc1NjM0NTY3NjU4NDMyNDUzNTUzMjEzNA==
Body
<?xml version="1.0" encoding="UTF-8"?>
<ns8:patient id="K3lCsbGJ1o0O-9hGLu5o1RRprS-XDZr_NwBNDxYTCit07BZZ2RfGZW2TjP2GIU8XSx9qCgwMu-BAXRJ_9QN9Z55l1iPjhIjuSG-F3wSHIENUdOj5VAIpyBFINTpQ5u_K2F5DDe7SpN6DO68XbWI81s5vJ2r26ZlQmKyXhD35f7IpP1VDEYQhd62bUPV9XG4s14lUn0OHUztWjIPrmTTwNffU3nrzcET7m187_QVFzVCCyLBx2Kr1fb-kNlXKOhwFR7Zq5BiM6paAT4dZjgQkawtsMcuUuMojo77JHVd-XeGFSNaYDSwM50Caw3ilr_4L0MjtOcUQpofplDxvJXCGIg" xsi:schemaLocation="http://schema.samply.de/ccp/Patient http://schema.samply.de/ccp/Patient.xsd" xmlns:ns2="http://schema.samply.de/ccp/Value" xmlns:ns4="http://schema.samply.de/ccp/Container" xmlns:ns3="http://schema.samply.de/ccp/Attribute" xmlns:ns5="http://schema.samply.de/ccp/MdrKey" xmlns:ns6="http://schema.samply.de/ccp/Case" xmlns:ns7="http://schema.samply.de/ccp/Sample" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns8="http://schema.samply.de/ccp/Patient">
<ns6:Case id="2">
<ns3:Attribute>
<ns5:MdrKey>urn:dktk:dataelement:29:2</ns5:MdrKey>
<ns2:Value>D09.2</ns2:Value>
</ns3:Attribute>
</ns6:Case>
</ns8:patient>
Response
200
Response
201
Response
500
DELETE/sites/{dktk_siteid}_teiler/{dktk_teilerid}/pats/{mds-db_patid}
Delete the patient with the respective MDS-DB-ID
Parameters
- dktk_siteid
string
(required) Example: ffmthe id of the participating site
- dktk_teilerid
string
(required) Example: teilerffmthe id of the teiler of the participating site
- mds-db_patid
string
(required) Example: K3lCsbGJ1o0O9hGL...the MDS-DB-ID of the respective patient
Request
Headers
Authorization: Basic dGVzdDoxMjM0Njc1NjM0NTY3NjU4NDMyNDUzNTUzMjEzNA==
Response
204
Response
404