Skip to content

Commit 81c22a9

Browse files
authored
Feature iops 4234 search parameters genomics participant role (#224)
* Create SearchParameter Create SearchParameter * Feature Branch Validation with Firely Feature Branch Validation with Firely * Update PlanDefinition\DGTS-PlanDefinition-Example Added the new Extensions for Role and TypeReference * Update PlanDefnition Added the extensions
1 parent cf39261 commit 81c22a9

5 files changed

Lines changed: 124 additions & 7 deletions

File tree

.github/workflows/firely-validation.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ name: Firely Validation
66
on:
77
# Triggers the workflow on push or pull request events but only for the master branch
88
push:
9-
branches: [ master, main ]
9+
branches:
10+
- '**'
1011
pull_request:
11-
branches: [ master, main ]
12-
12+
branches: [ master, main ]
1313
# Allows you to run this workflow manually from the Actions tab
1414
workflow_dispatch:
1515

.github/workflows/terminology.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
# Triggers the workflow on push or pull request events but only for the master branch
66
# Allows you to run this workflow manually from the Actions tab
77

8-
# push:
8+
#push:
99

1010
workflow_dispatch:
1111

PlanDefinition/DGTS-PlanDefinition-Example.json

Lines changed: 68 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,76 @@
1313
"use": "old"
1414
}
1515
],
16-
"title": "Angelman syndrome",
16+
"version": "1.0",
1717
"name": "TP321_PlanDefinition",
18+
"title": "Angelman syndrome",
1819
"status": "active",
1920
"experimental": false,
20-
"version": "1.0",
21+
"extension": [
22+
{
23+
"url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-PlanDefinition.actor",
24+
"extension": [
25+
{
26+
"url": "option",
27+
"extension": [
28+
{
29+
"url": "role",
30+
"valueCodeableConcept": {
31+
"coding": [
32+
{
33+
"system": "https://fhir.nhs.uk/CodeSystem/action-participant-role-genomics",
34+
"code": "performer",
35+
"display": "Performer"
36+
}
37+
],
38+
"text": "Performer"
39+
}
40+
},
41+
{
42+
"url": "typeReference",
43+
"valueReference": {
44+
"reference": "Organization/Organization-CSGLHub-Example",
45+
"identifier": {
46+
"system": "https://fhir.nhs.uk/Id/ods-organization-code",
47+
"value": "699P0"
48+
},
49+
"display": "Central and South Genomic Laboratory Hub"
50+
}
51+
}
52+
]
53+
},
54+
{
55+
"url": "option",
56+
"extension": [
57+
{
58+
"url": "role",
59+
"valueCodeableConcept": {
60+
"coding": [
61+
{
62+
"system": "https://fhir.nhs.uk/CodeSystem/action-participant-role-genomics",
63+
"code": "requester",
64+
"display": "Requester"
65+
}
66+
],
67+
"text": "Requester"
68+
}
69+
},
70+
{
71+
"url": "typeReference",
72+
"valueReference": {
73+
"reference": "Organization/ImperialCollegeHealthcareNHSTrust-Example",
74+
"identifier": {
75+
"system": "https://fhir.nhs.uk/Id/ods-organization-code",
76+
"value": "RYJ"
77+
},
78+
"display": "Imperial College Healthcare NHS Trust"
79+
}
80+
}
81+
]
82+
}
83+
]
84+
}
85+
],
2186
"useContext": [
2287
{
2388
"code": {
@@ -119,4 +184,4 @@
119184
"definitionCanonical": "https://fhir.nhs.uk/ActivityDefinition/GT1124"
120185
}
121186
]
122-
}
187+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"resourceType": "SearchParameter",
3+
"id": "SearchParameter-plandefinition-actor-role",
4+
"url": "https://fhir.nhs.uk/SearchParameter/plandefinition-actor-role",
5+
"version": "0.1.0",
6+
"name": "PlanDefinition Actor Role",
7+
"status": "draft",
8+
"experimental": false,
9+
"date": "2026-05-19",
10+
"publisher": "NHS England",
11+
"description": "Search PlanDefinition by actor option role from the R5 cross-version extension extension-PlanDefinition.actor",
12+
"code": "actor-role",
13+
"base": [
14+
"PlanDefinition"
15+
],
16+
"type": "token",
17+
"expression": "PlanDefinition.extension('http://hl7.org/fhir/5.0/StructureDefinition/extension-PlanDefinition.actor').extension('option').extension('role').value",
18+
"multipleOr": true,
19+
"multipleAnd": true
20+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"resourceType": "SearchParameter",
3+
"id": "SearchParameter-plandefinition-actor-typereference",
4+
"url": "https://fhir.nhs.uk/SearchParameter/plandefinition-actor-typereference",
5+
"version": "0.1.0",
6+
"name": "PlanDefinitionActorTypeReference",
7+
"status": "draft",
8+
"experimental": false,
9+
"date": "2026-05-19",
10+
"publisher": "NHS England",
11+
"description": "Search PlanDefinition by actor option typeReference from the R5 cross-version extension extension-PlanDefinition.actor",
12+
"code": "actor-type-reference",
13+
"base": [
14+
"PlanDefinition"
15+
],
16+
"type": "reference",
17+
"expression": "PlanDefinition.extension('http://hl7.org/fhir/5.0/StructureDefinition/extension-PlanDefinition.actor').extension('option').extension('typeReference').value",
18+
"xpathUsage": "normal",
19+
"target": [
20+
"HealthcareService",
21+
"Group",
22+
"Organization",
23+
"Location",
24+
"Practitioner",
25+
"PractitionerRole",
26+
"Device",
27+
"RelatedPerson",
28+
"Patient"
29+
],
30+
"multipleOr": true,
31+
"multipleAnd": true
32+
}

0 commit comments

Comments
 (0)