Skip to content

Commit c24d31d

Browse files
eesa456axelkrastek1-nhs
authored andcommitted
NRL-497 update producer models
1 parent c899ea4 commit c24d31d

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

layer/nrlf/producer/fhir/r4/model.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: swagger.yaml
3-
# timestamp: 2025-06-10T22:58:21+00:00
3+
# timestamp: 2025-06-13T14:34:21+00:00
44

55
from __future__ import annotations
66

@@ -290,11 +290,19 @@ class NRLFormatCode(Coding):
290290
Field(description="The system URL for the NRLF Format Code."),
291291
]
292292
code: Annotated[
293-
Literal["urn:nhs-ic:record-contact", "urn:nhs-ic:unstructured"],
293+
Literal[
294+
"Contact details (HTTP Unsecured)",
295+
"Unstructured Document",
296+
"Structured Document",
297+
],
294298
Field(description="The code representing the format of the document."),
295299
]
296300
display: Annotated[
297-
Literal["Contact details (HTTP Unsecured)", "Unstructured Document"],
301+
Literal[
302+
"Contact details (HTTP Unsecured)",
303+
"Unstructured Document",
304+
"Structured Document",
305+
],
298306
Field(description="The display text for the code."),
299307
]
300308

layer/nrlf/producer/fhir/r4/strict_model.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: swagger.yaml
3-
# timestamp: 2025-06-10T22:58:24+00:00
3+
# timestamp: 2025-06-13T14:34:21+00:00
44

55
from __future__ import annotations
66

@@ -261,11 +261,19 @@ class NRLFormatCode(Coding):
261261
Field(description="The system URL for the NRLF Format Code."),
262262
]
263263
code: Annotated[
264-
Literal["urn:nhs-ic:record-contact", "urn:nhs-ic:unstructured"],
264+
Literal[
265+
"Contact details (HTTP Unsecured)",
266+
"Unstructured Document",
267+
"Structured Document",
268+
],
265269
Field(description="The code representing the format of the document."),
266270
]
267271
display: Annotated[
268-
Literal["Contact details (HTTP Unsecured)", "Unstructured Document"],
272+
Literal[
273+
"Contact details (HTTP Unsecured)",
274+
"Unstructured Document",
275+
"Structured Document",
276+
],
269277
Field(description="The display text for the code."),
270278
]
271279

0 commit comments

Comments
 (0)