Skip to content

Commit 89abab2

Browse files
committed
Create RequestGroup & GraphDefinition Resources
Create RequestGroup & GraphDefinition Resources for grouping orders, retrieving order and result
1 parent c385229 commit 89abab2

4 files changed

Lines changed: 274 additions & 1 deletion
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
{
2+
"resourceType": "GraphDefinition",
3+
"id": "GraphDefinition-Genomics-TrioResultGrouping-Example",
4+
"url": "https://fhir.nhs.uk/GraphDefinition/genomics-trio-result-grouping",
5+
"name": "GenomicsTrioResultGrouping",
6+
"version": "0.1.0",
7+
"status": "draft",
8+
"date": "2026-01-13",
9+
"publisher": "NHS England",
10+
"description": "GraphDefinition for retrieving all DiagnosticReports and related resources for a genomic trio test, starting from a RequestGroup that links the trio.",
11+
"start": "RequestGroup",
12+
"link": [
13+
{
14+
"path": "RequestGroup.action.resource",
15+
"description": "Link to ServiceRequests for each member of the trio",
16+
"min": 1,
17+
"max": "*",
18+
"target": [
19+
{
20+
"type": "ServiceRequest",
21+
"link": [
22+
{
23+
"path": "ServiceRequest.subject",
24+
"description": "Link to the patient the request is for (proband, father, or mother)",
25+
"min": 1,
26+
"max": "1",
27+
"target": [
28+
{
29+
"type": "Patient"
30+
}
31+
]
32+
},
33+
{
34+
"path": "ServiceRequest.requester",
35+
"description": "Link to the requester of the genomic test order",
36+
"min": 1,
37+
"max": "1",
38+
"target": [
39+
{
40+
"type": "PractitionerRole"
41+
}
42+
]
43+
},
44+
{
45+
"path": "ServiceRequest.supportingInfo",
46+
"description": "Link to additional clinical information to support processing/interpretation of the request",
47+
"min": 0,
48+
"max": "*",
49+
"target": [
50+
{
51+
"type": "Observation"
52+
},
53+
{
54+
"type": "Specimen"
55+
},
56+
{
57+
"type": "Consent"
58+
},
59+
{
60+
"type": "QuestionnaireResponse"
61+
},
62+
{
63+
"type": "Condition"
64+
},
65+
{
66+
"type": "RelatedPerson"
67+
}
68+
]
69+
},
70+
{
71+
"path": "ServiceRequest.specimen",
72+
"description": "Optional link to specimen where this has already been collected/ordered prior to request submission",
73+
"min": 0,
74+
"max": "*",
75+
"target": [
76+
{
77+
"type": "Specimen"
78+
}
79+
]
80+
},
81+
{
82+
"description": "DiagnosticReport(s) generated from this ServiceRequest",
83+
"min": 0,
84+
"max": "*",
85+
"target": [
86+
{
87+
"type": "DiagnosticReport",
88+
"params": "basedOn={ref}",
89+
"link": [
90+
{
91+
"path": "DiagnosticReport.subject",
92+
"description": "Link to the patient the report is concerning",
93+
"min": 1,
94+
"max": "1",
95+
"target": [
96+
{
97+
"type": "Patient"
98+
}
99+
]
100+
},
101+
{
102+
"path": "DiagnosticReport.specimen",
103+
"description": "Link to the specimens used during testing to generate the report",
104+
"min": 0,
105+
"max": "*",
106+
"target": [
107+
{
108+
"type": "Specimen"
109+
}
110+
]
111+
},
112+
{
113+
"path": "DiagnosticReport.result",
114+
"description": "Links to Observations forming the results reported in the DiagnosticReport",
115+
"min": 0,
116+
"max": "*",
117+
"target": [
118+
{
119+
"type": "Observation"
120+
}
121+
]
122+
}
123+
]
124+
}
125+
]
126+
}
127+
]
128+
}
129+
]
130+
}
131+
]
132+
}
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"resourceType": "GraphDefinition",
3+
"id": "GraphDefinition-GenomicsTrioTestOrder-Example",
4+
"url": "https://fhir.nhs.uk/GraphDefinition/genomics-trio-test-order",
5+
"name": "GenomicsTrioTestOrder",
6+
"version": "0.1.0",
7+
"status": "draft",
8+
"date": "2026-01-13",
9+
"publisher": "NHS England",
10+
"description": "GraphDefinition for retrieving all resources relevant to a Genomic Trio Test Order (proband, father, mother). Starts from ServiceRequest and traverses all key references.",
11+
"start": "ServiceRequest",
12+
"link": [
13+
{
14+
"path": "ServiceRequest.subject",
15+
"description": "Link to the patient the request is for (proband, father, or mother)",
16+
"min": 1,
17+
"max": "1",
18+
"target": [
19+
{
20+
"type": "Patient"
21+
}
22+
]
23+
},
24+
{
25+
"path": "ServiceRequest.requester",
26+
"description": "Link to the requester of the genomic test order",
27+
"min": 1,
28+
"max": "1",
29+
"target": [
30+
{
31+
"type": "PractitionerRole"
32+
}
33+
]
34+
},
35+
{
36+
"path": "ServiceRequest.reasonReference",
37+
"description": "Optional link to the primary condition constituting the reason for testing",
38+
"min": 0,
39+
"max": "*",
40+
"target": [
41+
{
42+
"type": "Condition"
43+
}
44+
]
45+
},
46+
{
47+
"path": "ServiceRequest.supportingInfo",
48+
"description": "Link to additional clinical information to support processing/interpretation of the request",
49+
"min": 0,
50+
"max": "*",
51+
"target": [
52+
{
53+
"type": "RelatedPerson"
54+
},
55+
{
56+
"type": "Observation"
57+
},
58+
{
59+
"type": "Specimen"
60+
},
61+
{
62+
"type": "Consent"
63+
},
64+
{
65+
"type": "QuestionnaireResponse"
66+
},
67+
{
68+
"type": "Condition"
69+
}
70+
]
71+
},
72+
{
73+
"path": "ServiceRequest.specimen",
74+
"description": "Optional link to specimen where this has already been collected/ordered prior to request submission",
75+
"min": 0,
76+
"max": "*",
77+
"target": [
78+
{
79+
"type": "Specimen"
80+
}
81+
]
82+
},
83+
{
84+
"description": "Other ServiceRequests in the trio with the same requisition identifier",
85+
"min": 2,
86+
"max": "*",
87+
"target": [
88+
{
89+
"type": "ServiceRequest",
90+
"params": "requisition={ServiceRequest.requisition}"
91+
}
92+
]
93+
}
94+
]
95+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"resourceType": "RequestGroup",
3+
"id": "RequestGroup-WGSTrioTesting-Example",
4+
"identifier": [
5+
{
6+
"system": "https://fhir.leedssth.nhs.uk//Id/grouptestId",
7+
"value": "RR-REQ12764",
8+
"assigner": {
9+
"identifier": {
10+
"system": "https://fhir.nhs.uk/Id/ods-organization-code",
11+
"value": "RR8"
12+
}
13+
}
14+
}
15+
],
16+
"status": "active",
17+
"intent": "order",
18+
"subject": {
19+
"reference": "Patient/Patient-PheobeSmitham-Example",
20+
"identifier": {
21+
"system": "https://fhir.nhs.uk/Id/nhs-number",
22+
"value": "9449307539"
23+
}
24+
},
25+
"authoredOn": "2026-01-13T12:00:00Z",
26+
"action": [
27+
{
28+
"title": "Proband Genomic Test",
29+
"resource": {
30+
"reference": "ServiceRequest/ServiceRequest-WGSTestOrderForm-TrioTestingProband-Example"
31+
}
32+
},
33+
{
34+
"title": "Consultand-GenomicTest-Father",
35+
"resource": {
36+
"reference": "ServiceRequest/ServiceRequest-WGSTestOrderForm-TrioTestingProbandFather-Example"
37+
}
38+
},
39+
{
40+
"title": "Consultand-GenomicTest-Mother",
41+
"resource": {
42+
"reference": "ServiceRequest/ServiceRequest-WGSTestOrderForm-TrioTestingProbandMother-Example"
43+
}
44+
}
45+
]
46+
}

ServiceRequest/ServiceRequest-WGSTestOrderForm-TrioTestingProbandMother-Example.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "ServiceRequest",
3-
"id": "ServiceRequest-WGSTestOrderForm-TrioTestingProband-Example",
3+
"id": "ServiceRequest-WGSTestOrderForm-TrioTestingProbandMother-Example",
44
"identifier": [
55
{
66
"system": "https://fhir.nhs.uk/Id/GMSOrder",

0 commit comments

Comments
 (0)