Skip to content

Commit df209c3

Browse files
committed
Remove unused EntryResponse.make_validation_response
1 parent f165f53 commit df209c3

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

‎app/models/fhir/bundle.py‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,6 @@ class EntryResponse(FhirBaseModel):
4343
status: str
4444
outcome: OperationOutcome | None = None
4545

46-
@classmethod
47-
def make_validation_response(
48-
cls,
49-
msg: str | None = None,
50-
code: Literal["required", "structure", "invalid"] = "required",
51-
) -> Self:
52-
message = msg if msg else "Structural data is invalid or missing required properties"
53-
return cls(
54-
status="422",
55-
outcome=OperationOutcome.make_error_outcome(code=code, msg=message),
56-
)
57-
5846
@classmethod
5947
def make_forbidden_response(cls, msg: str | None = None) -> Self:
6048
message = msg if msg else "URA number not allowed to perform requested operation"

0 commit comments

Comments
 (0)