All notes
Orthanc

orthanc server: REST.

获取所有患者信息。HTTP用户名和密码都是orthanc。

http --auth orthanc:orthanc http://serverIp/dcm/patients/

HTTP/1.1 200 OK
Connection: keep-alive
Content-Encoding: gzip
Content-Length: 70
Content-Type: application/json; charset=utf-8
Date: Mon, 21 Nov 2016 12:52:54 GMT
Server: nginx/1.11.6

[
    "16738bc3-e47ed42a-43ce044c-a3414a45-cb069bd0"
]

获取这个患者的信息。

http --auth orthanc:orthanc http://serverIp/dcm/patients/16738bc3-e47ed42a-43ce044c-a3414a45-cb069bd0/

HTTP/1.1 200 OK
Connection: keep-alive
Content-Encoding: gzip
Content-Length: 255
Content-Type: application/json; charset=utf-8
Date: Mon, 21 Nov 2016 12:53:08 GMT
Server: nginx/1.11.6

{
    "ID": "16738bc3-e47ed42a-43ce044c-a3414a45-cb069bd0",
    "IsStable": true,
    "LastUpdate": "20161121T124943",
    "MainDicomTags": {
        "PatientBirthDate": "19490301",
        "PatientID": "5Yp0E",
        "PatientName": "BRAINIX",
        "PatientSex": "0000"
    },
    "Studies": [
        "27f7126f-4f66fb14-03f4081b-f9341db2-53925988"
    ],
    "Type": "Patient"
}

获取检查信息。

http --auth orthanc:orthanc http://serverIp/dcm/studies/27f7126f-4f66fb14-03f4081b-f9341db2-53925988/

HTTP/1.1 200 OK
Connection: keep-alive
Content-Encoding: gzip
Content-Length: 536
Content-Type: application/json; charset=utf-8
Date: Mon, 21 Nov 2016 12:53:24 GMT
Server: nginx/1.11.6

{
    "ID": "27f7126f-4f66fb14-03f4081b-f9341db2-53925988",
    "IsStable": true,
    "LastUpdate": "20161121T124943",
    "MainDicomTags": {
        "AccessionNumber": "0",
        "InstitutionName": "7GEFF0GbzqCNo43Yd0,Ibu,zQSSX",
        "ReferringPhysicianName": "dAEvNTxZJO0E",
        "RequestedProcedureDescription": "IRM cérébrale, neuro-cr?ne",
        "StudyDate": "20061201",
        "StudyDescription": "IRM cérébrale, neuro-cr?ne",
        "StudyID": "218211405",
        "StudyInstanceUID": "2.16.840.1.113669.632.20.1211.10000357775",
        "StudyTime": "141645.000000"
    },
    "ParentPatient": "16738bc3-e47ed42a-43ce044c-a3414a45-cb069bd0",
    "PatientMainDicomTags": {
        "PatientBirthDate": "19490301",
        "PatientID": "5Yp0E",
        "PatientName": "BRAINIX",
        "PatientSex": "0000"
    },
    "Series": [
        "635faa23-fd8378ee-d03bce29-ee47c2fb-a65c5509",
        "dc0216d2-a406a5ad-31ef7a78-113ae9d9-29939f9e"
    ],
    "Type": "Study"
}

获取序列信息。

http --auth orthanc:orthanc http://serverIp/dcm/series/635faa23-fd8378ee-d03bce29-ee47c2fb-a65c5509/

HTTP/1.1 200 OK
Connection: keep-alive
Content-Encoding: gzip
Content-Length: 1196
Content-Type: application/json; charset=utf-8
Date: Mon, 21 Nov 2016 12:53:39 GMT
Server: nginx/1.11.6

{
    "ExpectedNumberOfInstances": null,
    "ID": "635faa23-fd8378ee-d03bce29-ee47c2fb-a65c5509",
    "Instances": [
        "1adf5442-67d89150-8294b1ab-1630c2c9-d8e4a2f5",
        "f90d0136-32e8fdfd-539432b1-0f7a65f9-2e4bc36d",
        "ca69bc1a-a4fcc0a8-9e6828b0-c816dbaa-240fdc45",
        "c9fcb81d-9644e671-54069338-6b3f01bf-1251713a",
        "ba88f3c5-347cb29e-801f8838-f8865075-a0c00569",
        "139c2f68-f6fb3237-8fc4658a-ef0027c6-89178eb7",
        "2623949c-6c314b62-824d30cc-79ae73ec-210298a5",
        "632b6322-572936a2-da368563-4b110391-ecd28e78",
        "bb1c3743-bc6b8cfb-fe880b47-c14442d5-adb7dbf6",
        "7a93b85e-5956dbf9-894c1f27-dc73112f-4cbcda70",
        "238b7053-a8fa8157-139e1cba-bb5d508e-3e8ffa6b",
        "182763f1-037c0d53-de86eba5-05f1d0b6-b1141618",
        "ed8aacd6-5d2cfad4-9e1a2f77-edf1cee5-8f3bdde0",
        "b09ecbac-a3c50c80-424d0832-02ba36a0-617a15d0",
        "065baa49-a7b4e4a0-e7468f1d-e9b5bca8-56316fa2",
        "edd8ff85-9805d97a-2375f736-40662993-aef40418",
        "0a3d6e84-30f0133e-8ff54580-f9b49ea9-2bc5c9aa",
        "15aa5488-fdeb2c38-d5e49109-23879aff-83f9acbd",
        "a7ecaeba-75df66e9-e15957fb-0f077b74-a07e3d52",
        "6e6138e8-47018e44-1bc8f500-71804391-90835aa6",
        "5345a8ca-826167fe-096f987b-ff7ccd09-ed2c19ee",
        "892717f3-7410e9ba-aafe5c0d-d348a466-b267d057"
    ],
    "IsStable": true,
    "LastUpdate": "20161121T124910",
    "MainDicomTags": {
        "ImageOrientationPatient": "0.99971222877502\\7.8810308973E-12\\0.02398800104856\\-0.0017278126906\\0.99740260839462\\0.07200747728347",
        "Manufacturer": "Philips Medical Systems",
        "Modality": "MR",
        "NumberOfTemporalPositions": "1",
        "PerformedProcedureStepDescription": "IRM cérébrale, neuro-cr?ne",
        "ProtocolName": "SOUS",
        "SeriesDate": "20061201",
        "SeriesDescription": "SOUS",
        "SeriesInstanceUID": "1.3.46.670589.11.0.0.11.4.2.0.8743.5.3800.2006120117110979000",
        "SeriesNumber": "702",
        "SeriesTime": "143958.890000",
        "StationName": "intera"
    },
    "ParentStudy": "27f7126f-4f66fb14-03f4081b-f9341db2-53925988",
    "Status": "Unknown",
    "Type": "Series"
}

获取Instance信息。

http --auth orthanc:orthanc http://serverIp/dcm/instances/1adf5442-67d89150-8294b1ab-1630c2c9-d8e4a2f5/

HTTP/1.1 200 OK
Connection: keep-alive
Content-Encoding: gzip
Content-Length: 397
Content-Type: application/json; charset=utf-8
Date: Mon, 21 Nov 2016 12:53:58 GMT
Server: nginx/1.11.6

{
    "FileSize": 527820,
    "FileUuid": "56b35e73-1685-408a-8dd1-9a368e3febf6",
    "ID": "1adf5442-67d89150-8294b1ab-1630c2c9-d8e4a2f5",
    "IndexInSeries": 4,
    "MainDicomTags": {
        "AcquisitionNumber": "7",
        "ImagePositionPatient": "-123.05435714684\\-122.56247520541\\65.2890600562095",
        "InstanceCreationDate": "20061201",
        "InstanceCreationTime": "171242.000000",
        "InstanceNumber": "4",
        "SOPInstanceUID": "1.3.46.670589.11.0.0.11.4.2.0.8743.5.3800.2006120117111287019",
        "TemporalPositionIdentifier": "1"
    },
    "ParentSeries": "635faa23-fd8378ee-d03bce29-ee47c2fb-a65c5509",
    "Type": "Instance"
}

在Instance的URL后面加上preview就可以获得PNG预览图。

http --auth orthanc:orthanc http://serverIp/dcm/instances/1adf5442-67d89150-8294b1ab-1630c2c9-d8e4a2f5/preview/

HTTP/1.1 200 OK
Connection: keep-alive
Content-Encoding: gzip
Content-Length: 75421
Content-Type: image/png
Date: Mon, 21 Nov 2016 12:54:09 GMT
Server: nginx/1.11.6

+-----------------------------------------+
| NOTE: binary data not shown in terminal |
+-----------------------------------------+