Skip to content

Commit

Permalink
Merge pull request #759 from CareTogether/reportable-referral-reason
Browse files Browse the repository at this point in the history
Reportable Referral Reason
  • Loading branch information
LarsKemmann authored Jul 15, 2024
2 parents 2a1f299 + 1fc3abe commit 542855b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/CareTogether.Api/OData/LiveODataModelController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public sealed record Role([property: Key] string Name);
public sealed record Referral([property: Key] Guid Id,
[property: ForeignKey("FamilyId")] Family Family, Guid FamilyId,
DateOnly Opened, DateOnly? Closed, string? ReferralSource,
ReferralCloseReason? CloseReason);
ReferralCloseReason? CloseReason, string? PrimaryReasonForReferral);

public sealed record Arrangement([property: Key] Guid Id,
[property: ForeignKey("TypeName")] ArrangementType Type, string TypeName,
Expand Down Expand Up @@ -667,7 +667,8 @@ private static IEnumerable<Referral> RenderReferrals(
referralInfo.ClosedAtUtc.HasValue ? DateOnly.FromDateTime(referralInfo.ClosedAtUtc.Value) : null,
// Making this 'custom field' semi-standard across organizations/policies.
referralInfo.CompletedCustomFields.SingleOrDefault(field => field.CustomFieldName == "Referral Source")?.Value as string,
referralInfo.CloseReason));
referralInfo.CloseReason,
referralInfo.CompletedCustomFields.SingleOrDefault(field => field.CustomFieldName == "Primary Reason for Referral")?.Value as string));
}

private static IEnumerable<Arrangement> RenderArrangements(
Expand Down
2 changes: 1 addition & 1 deletion src/caretogether-pwa/src/GeneratedClient.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//----------------------
// <auto-generated>
// Generated using the NSwag toolchain v14.0.3.0 (NJsonSchema v11.0.0.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
// Generated using the NSwag toolchain v14.0.8.0 (NJsonSchema v11.0.1.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
// </auto-generated>
//----------------------

Expand Down
2 changes: 1 addition & 1 deletion swagger.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"x-generator": "NSwag v14.0.3.0 (NJsonSchema v11.0.0.0 (Newtonsoft.Json v13.0.0.0))",
"x-generator": "NSwag v14.0.8.0 (NJsonSchema v11.0.1.0 (Newtonsoft.Json v13.0.0.0))",
"openapi": "3.0.0",
"info": {
"title": "CareTogether CMS API",
Expand Down

0 comments on commit 542855b

Please sign in to comment.