Skip to content

Commit 50b3dca

Browse files
committed
NRL-1053 revert models
1 parent 02b5ca2 commit 50b3dca

File tree

5 files changed

+13
-18
lines changed

5 files changed

+13
-18
lines changed

api/consumer/swagger.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,8 +1057,6 @@ components:
10571057
items:
10581058
$ref: "#/components/schemas/Reference"
10591059
description: Related identifiers or resources associated with the DocumentReference.
1060-
required:
1061-
- practiceSetting
10621060
DocumentReferenceContent:
10631061
type: object
10641062
properties:

api/producer/swagger.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,6 @@ components:
13851385
- status
13861386
- content
13871387
- author
1388-
- context
13891388
Bundle:
13901389
type: object
13911390
properties:
@@ -1595,8 +1594,6 @@ components:
15951594
items:
15961595
$ref: "#/components/schemas/Reference"
15971596
description: Related identifiers or resources associated with the DocumentReference.
1598-
required:
1599-
- practiceSetting
16001597
DocumentReferenceContent:
16011598
type: object
16021599
properties:

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

Lines changed: 3 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-11-19T12:56:58+00:00
3+
# timestamp: 2024-11-10T19:12:31+00:00
44

55
from __future__ import annotations
66

@@ -804,11 +804,11 @@ class DocumentReferenceContext(BaseModel):
804804
Field(description="The kind of facility where the patient was seen."),
805805
] = None
806806
practiceSetting: Annotated[
807-
CodeableConcept,
807+
Optional[CodeableConcept],
808808
Field(
809809
description="This property may convey specifics about the practice setting where the content was created, often reflecting the clinical specialty."
810810
),
811-
]
811+
] = None
812812
sourcePatientInfo: Annotated[
813813
Optional[Reference],
814814
Field(

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

Lines changed: 5 additions & 5 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-11-19T12:56:54+00:00
3+
# timestamp: 2024-11-10T19:12:31+00:00
44

55
from __future__ import annotations
66

@@ -611,9 +611,9 @@ class DocumentReference(BaseModel):
611611
securityLabel: Optional[List[CodeableConcept]] = None
612612
content: Annotated[List[DocumentReferenceContent], Field(min_length=1)]
613613
context: Annotated[
614-
DocumentReferenceContext,
614+
Optional[DocumentReferenceContext],
615615
Field(description="The clinical context in which the document was prepared."),
616-
]
616+
] = None
617617

618618

619619
class Bundle(BaseModel):
@@ -788,11 +788,11 @@ class DocumentReferenceContext(BaseModel):
788788
Field(description="The kind of facility where the patient was seen."),
789789
] = None
790790
practiceSetting: Annotated[
791-
CodeableConcept,
791+
Optional[CodeableConcept],
792792
Field(
793793
description="This property may convey specifics about the practice setting where the content was created, often reflecting the clinical specialty."
794794
),
795-
]
795+
] = None
796796
sourcePatientInfo: Annotated[
797797
Optional[Reference],
798798
Field(

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

Lines changed: 5 additions & 5 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-11-19T12:56:56+00:00
3+
# timestamp: 2024-11-10T19:12:31+00:00
44

55
from __future__ import annotations
66

@@ -531,9 +531,9 @@ class DocumentReference(BaseModel):
531531
securityLabel: Optional[List[CodeableConcept]] = None
532532
content: Annotated[List[DocumentReferenceContent], Field(min_length=1)]
533533
context: Annotated[
534-
DocumentReferenceContext,
534+
Optional[DocumentReferenceContext],
535535
Field(description="The clinical context in which the document was prepared."),
536-
]
536+
] = None
537537

538538

539539
class Bundle(BaseModel):
@@ -693,11 +693,11 @@ class DocumentReferenceContext(BaseModel):
693693
Field(description="The kind of facility where the patient was seen."),
694694
] = None
695695
practiceSetting: Annotated[
696-
CodeableConcept,
696+
Optional[CodeableConcept],
697697
Field(
698698
description="This property may convey specifics about the practice setting where the content was created, often reflecting the clinical specialty."
699699
),
700-
]
700+
] = None
701701
sourcePatientInfo: Annotated[
702702
Optional[Reference],
703703
Field(

0 commit comments

Comments
 (0)