feature: HL7 FHIR R4 Integration
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using Hl7.Fhir.Model;
|
||||
|
||||
public static class FhirErrorHelper
|
||||
{
|
||||
public static OperationOutcome NotFound(string resourceType, string id) =>
|
||||
new()
|
||||
{
|
||||
Issue =
|
||||
{
|
||||
new OperationOutcome.IssueComponent
|
||||
{
|
||||
Severity = OperationOutcome.IssueSeverity.Error,
|
||||
Code = OperationOutcome.IssueType.NotFound,
|
||||
Diagnostics = $"{resourceType}/{id} not found",
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user