forked from hapifhir/hapi-fhir-jpaserver-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
add_imagingStudy.sh
73 lines (72 loc) · 2.58 KB
/
add_imagingStudy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
curl -X 'POST' \
'http://host.docker.internal:8080/fhir/ImagingStudy' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"resourceType": "ImagingStudy",
"status": "available",
"subject": {
"reference": "Patient/3"
},
"started": "2011-01-01T11:01:20+03:00",
"series": [
{
"uid": "series1",
"started": "2011-01-01T11:01:20+03:00",
"modality": {
"coding": [
{
"system": "https://dicom.nema.org/resources/ontology/DCM",
"code": "CT"
}
]
},
"performer": [
{
"actor": {
"reference": "Organization/1",
"type": "Organization"
}
},
{
"actor": {
"reference": "Practitioner/2",
"type": "Practitioner"
}
}
],
"bodySite": {
"concept": {
"coding": [
{
"system": "https://snomed.info/sct",
"code": "51185008",
"display": "CT of Head"
}
]
}
},
"instance": [
{
"uid": "instance201",
"sopClass": {
"system": "https://dicom.nema.org/resources/ontology/DCM",
"code": "CT01",
"display": "CT Head"
},
"title": "CT Head Image 1"
},
{
"uid": "instance202",
"sopClass": {
"system": "https://dicom.nema.org/resources/ontology/DCM",
"code": "CT02",
"display": "CT Head"
},
"title": "CT Head Image 2"
}
]
}
]
}' > /dev/null