Skip to content

Commit 328cf5c

Browse files
authored
Merge pull request #128 from NHSDigital/Issue-2753
OperationDefinition for generating DocRef
2 parents 71595be + fe5e0b2 commit 328cf5c

3 files changed

Lines changed: 113 additions & 1 deletion

File tree

CapabilityStatement/CapabilityStatement-genomics-application.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1689,7 +1689,7 @@
16891689
},
16901690
{
16911691
"type": "OperationDefinition",
1692-
"profile": "https://hl7.org/fhir/StructureDefinition/OperationDefinition"
1692+
"profile": "http://hl7.org/fhir/StructureDefinition/OperationDefinition"
16931693
},
16941694
{
16951695
"type": "OperationOutcome",
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"resourceType": "OperationDefinition",
3+
"id": "OperationDefinition-genomics-generate",
4+
"url": "https://fhir.nhs.uk/OperationDefinition/genomics-generate",
5+
"version": "0.0.1",
6+
"name": "GenomicsGenerate",
7+
"status": "draft",
8+
"kind": "operation",
9+
"experimental": false,
10+
"date": "2024-09-04",
11+
"publisher": "NHS England",
12+
"description": "An operation used to generate a DocumentReference resource for a genomic data file, optionally pulling the referenced data file to a central data store and generating a DRS url for the data file.\r\nCustomised backport of the R5 DocumentReference-generate OperationDefinition: http://hl7.org/fhir/OperationDefinition/DocumentReference-generate.\r\nSpecific profiles for input or output parameters, e.g. for certain data file types, are pending further investigation by GEL.",
13+
"affectsState": true,
14+
"code": "genomics-generate",
15+
"resource": [
16+
"DocumentReference"
17+
],
18+
"system": false,
19+
"type": true,
20+
"instance": false,
21+
"parameter": [
22+
{
23+
"name": "url",
24+
"use": "in",
25+
"min": 1,
26+
"max": "1",
27+
"documentation": "The URL to the source document. This may be a general URL or a Binary or a Composition or a Bundle.\r\nFor a Genomic Data File, MUST be either a DRS URL or a presigned URL.",
28+
"type": "uri"
29+
},
30+
{
31+
"name": "persist",
32+
"use": "in",
33+
"min": 0,
34+
"max": "1",
35+
"documentation": "Whether to store the document at the document end-point (/Document) or not, once it is generated (default is for the server to decide).\r\nFor a Genomic Data File, determines whether the data file will be pulled to a central data store, or will remain on the source server. \r\nIn all cases, the DocumentReference will be generated and stored on the server at the /DocumentReference endpoint.",
36+
"type": "boolean"
37+
},
38+
{
39+
"name": "content-type",
40+
"use": "in",
41+
"min": 1,
42+
"max": "1",
43+
"documentation": "MIME type for the file. Used to determine how the reference should be processed and which context references are required.",
44+
"type": "string"
45+
},
46+
{
47+
"name": "context-reference",
48+
"use": "in",
49+
"min": 0,
50+
"max": "*",
51+
"documentation": "Reference to FHIR resource which provide context for the DocumentReference e.g. ServiceRequest which initiated the collection of the data file, or the Specimen from which it originated.",
52+
"type": "Reference",
53+
"targetProfile": [
54+
"https://fhir.hl7.org.uk/StructureDefinition/UKCore-ServiceRequest",
55+
"https://fhir.hl7.org.uk/StructureDefinition/UKCore-Specimen"
56+
]
57+
},
58+
{
59+
"name": "author",
60+
"use": "in",
61+
"min": 1,
62+
"max": "1",
63+
"documentation": "ODS code for the author organization.",
64+
"type": "Identifier"
65+
},
66+
{
67+
"name": "return",
68+
"use": "out",
69+
"min": 1,
70+
"max": "1",
71+
"documentation": "The bundle type is \"searchset\" containing DocumentReference resource and may include a Binary. If the input url refers to another server, it is at the discretion of the server whether to retrieve it or return an error.",
72+
"type": "Bundle"
73+
}
74+
]
75+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"resourceType": "Parameters",
3+
"id": "Parameters-Generate-Example",
4+
"parameter": [
5+
{
6+
"name": "url",
7+
"valueUrl": "https://datastore.example.com/cgp-test-bucket/173cd57a-969f-49f9-8754-1e22e218cdbf"
8+
},
9+
{
10+
"name": "persist",
11+
"valueBoolean": true
12+
},
13+
{
14+
"name": "content-type",
15+
"valueString": "application/json"
16+
},
17+
{
18+
"name": "context-reference",
19+
"valueReference": {
20+
"reference": "ServiceRequest/ServiceRequest-NonWGSTestOrderForm-NewFollowupTest-Example"
21+
}
22+
},
23+
{
24+
"name": "context-reference",
25+
"valueReference": {
26+
"reference": "Specimen/Specimen-BloodEDTA-Example"
27+
}
28+
},
29+
{
30+
"name": "author",
31+
"valueIdentifier": {
32+
"system": "https://fhir.nhs.uk/Id/ods-organization-code",
33+
"value": "RJ1"
34+
}
35+
}
36+
]
37+
}

0 commit comments

Comments
 (0)