Skip to content

Commit 5a560d5

Browse files
committed
NRL-476 generate based off swagger
1 parent 91eaa40 commit 5a560d5

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

api/consumer/swagger.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ components:
788788
description: Other identifiers associated with the document, including version independent identifiers.
789789
status:
790790
type: string
791-
pattern: "[^\\s]+(\\s[^\\s]+)*"
791+
pattern: "^current$"
792792
description: The status of this document reference.
793793
docStatus:
794794
type: string

api/producer/swagger.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,7 @@ components:
13241324
description: Other identifiers associated with the document, including version independent identifiers.
13251325
status:
13261326
type: string
1327-
pattern: "[^\\s]+(\\s[^\\s]+)*"
1327+
pattern: "^current$"
13281328
description: The status of this document reference.
13291329
docStatus:
13301330
type: string

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

Lines changed: 2 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: 2024-10-21T12:20:36+00:00
3+
# timestamp: 2024-10-28T10:30:48+00:00
44

55
from __future__ import annotations
66

@@ -568,8 +568,7 @@ class DocumentReference(BaseModel):
568568
status: Annotated[
569569
str,
570570
Field(
571-
description="The status of this document reference.",
572-
pattern="^current$",
571+
description="The status of this document reference.", pattern="^current$"
573572
),
574573
]
575574
docStatus: Annotated[

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

Lines changed: 2 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: 2024-10-21T12:20:33+00:00
3+
# timestamp: 2024-10-28T10:30:43+00:00
44

55
from __future__ import annotations
66

@@ -552,8 +552,7 @@ class DocumentReference(BaseModel):
552552
status: Annotated[
553553
str,
554554
Field(
555-
description="The status of this document reference.",
556-
pattern="^current$",
555+
description="The status of this document reference.", pattern="^current$"
557556
),
558557
]
559558
docStatus: Annotated[

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: swagger.yaml
3-
# timestamp: 2024-10-21T12:20:35+00:00
3+
# timestamp: 2024-10-28T10:30:45+00:00
44

55
from __future__ import annotations
66

0 commit comments

Comments
 (0)