Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reportable Referral Reason #759

Merged
merged 2 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading