Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/palladiumkenya/dwapi
Browse files Browse the repository at this point in the history
  • Loading branch information
koskedk committed Aug 18, 2022
2 parents 440460e + a63dbe9 commit d6ade42
Show file tree
Hide file tree
Showing 629 changed files with 441,282 additions and 3,621 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Run DWAPI Unit Tests

on:
push:
branches: [ dev ]


jobs:
build:
name: Run-Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 2.1.805
- name: Install dependencies
run: dotnet restore Dwapi.sln
- name: Build
run: dotnet build src/Dwapi/Dwapi.csproj --configuration Release --no-restore
- name: Test
run: ls test/*/*.Tests.csproj | xargs -L 1 dotnet test
- name: Setup Angular
uses: actions/setup-node@v1
with:
node-version: '14.x'
- run: npm install --prefix src/Dwapi
- run: npm run build --prefix src/Dwapi

- name: Pub .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.201
- name: Publish
run: dotnet publish src/Dwapi/Dwapi.csproj --configuration Release -o dwapi
- name: Zip Folder
run: zip -r dwapi.zip dwapi
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM microsoft/dotnet:2.2-aspnetcore-runtime AS base
FROM mcr.microsoft.com/dotnet/aspnet:2.1 AS base
WORKDIR /app
EXPOSE 5757 5753

FROM microsoft/dotnet:2.2-sdk AS build
FROM mcr.microsoft.com/dotnet/sdk:2.1 AS build
WORKDIR /src
COPY src/Dwapi/Dwapi.csproj src/Dwapi/
COPY src/Dwapi.SharedKernel/Dwapi.SharedKernel.csproj src/Dwapi.SharedKernel/
Expand All @@ -25,4 +25,4 @@ RUN dotnet publish Dwapi.csproj -c Release -o /app
FROM base AS final
WORKDIR /app
COPY --from=publish /app .
ENTRYPOINT ["dotnet", "Dwapi.dll"]
ENTRYPOINT ["dotnet", "Dwapi.dll"]
2 changes: 2 additions & 0 deletions pub-qa.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docker build -t kenyahmis/dwapi:qa .
docker push kenyahmis/dwapi:qa
2 changes: 2 additions & 0 deletions pub-upi.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docker build -t kenyahmis/dwapi:upi .
docker push kenyahmis/dwapi:upi
2 changes: 2 additions & 0 deletions pub.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docker build -t kenyahmis/dwapi:latest .
docker push kenyahmis/dwapi:latest
48 changes: 48 additions & 0 deletions src/Dwapi.Contracts/Crs/IClientRegistry.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
using System;

namespace Dwapi.Contracts.Crs
{
public interface IClientRegistry
{
string CCCNumber { get; set;}
string NationalId { get; set;}
string Passport { get; set;}
string HudumaNumber { get; set;}
string BirthCertificateNumber { get; set;}
string AlienIdNo { get; set;}
string DrivingLicenseNumber { get; set;}
string PatientClinicNumber { get; set;}
string FirstName { get; set;}
string MiddleName { get; set;}
string LastName { get; set;}
DateTime? DateOfBirth { get; set;}
string Sex { get; set;}
string MaritalStatus { get; set;}
string Occupation { get; set;}
string HighestLevelOfEducation { get; set;}
string PhoneNumber { get; set;}
string AlternativePhoneNumber { get; set;}
string SpousePhoneNumber { get; set;}
string NameOfNextOfKin { get; set;}
string NextOfKinRelationship { get; set;}
string NextOfKinTelNo { get; set;}
string County { get; set;}
string SubCounty { get; set;}
string Ward { get; set;}
string Location { get; set;}
string Village { get; set;}
string Landmark { get; set;}
string FacilityName { get; set;}
string MFLCode { get; set;}
DateTime? DateOfInitiation { get; set;}
string TreatmentOutcome { get; set;}
DateTime? DateOfLastEncounter { get; set;}
DateTime? DateOfLastViralLoad { get; set;}
DateTime? NextAppointmentDate { get; set;}
string LastRegimen { get; set;}
string LastRegimenLine { get; set;}
string CurrentOnART { get; set;}
DateTime? DateOfHIVdiagnosis { get; set;}
string LastViralLoadResult { get; set;}
}
}
29 changes: 15 additions & 14 deletions src/Dwapi.Contracts/Ct/IContactListing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@ namespace Dwapi.Contracts.Ct
{
public interface IContactListing
{
string FacilityName { get; set; }
int ? PartnerPersonID { get; set; }
string ContactAge { get; set; }
string ContactSex { get; set; }
string ContactMaritalStatus { get; set; }
string RelationshipWithPatient { get; set; }
string ScreenedForIpv { get; set; }
string IpvScreening { get; set; }
string IPVScreeningOutcome { get; set; }
string CurrentlyLivingWithIndexClient { get; set; }
string KnowledgeOfHivStatus { get; set; }
string PnsApproach { get; set; }
DateTime? Date_Created { get; set; }
DateTime? Date_Last_Modified { get; set; }
string FacilityName { get; set; }
int? PartnerPersonID { get; set; }
string ContactAge { get; set; }
string ContactSex { get; set; }
string ContactMaritalStatus { get; set; }
string RelationshipWithPatient { get; set; }
string ScreenedForIpv { get; set; }
string IpvScreening { get; set; }
string IPVScreeningOutcome { get; set; }
string CurrentlyLivingWithIndexClient { get; set; }
string KnowledgeOfHivStatus { get; set; }
string PnsApproach { get; set; }
DateTime? Date_Created { get; set; }
DateTime? Date_Last_Modified { get; set; }
int? ContactPatientPK { get; set; }
}
}
43 changes: 43 additions & 0 deletions src/Dwapi.Contracts/Ct/ICovid.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
using System;

namespace Dwapi.Contracts.Ct
{
public interface ICovid
{
string FacilityName { get; set; }
int? VisitID { get; set; }
DateTime? Covid19AssessmentDate { get; set; }
string ReceivedCOVID19Vaccine { get; set; }
DateTime? DateGivenFirstDose { get; set; }
string FirstDoseVaccineAdministered { get; set; }
DateTime? DateGivenSecondDose { get; set; }
string SecondDoseVaccineAdministered { get; set; }
string VaccinationStatus { get; set; }
string VaccineVerification { get; set; }
string BoosterGiven { get; set; }
string BoosterDose { get; set; }
DateTime? BoosterDoseDate { get; set; }
string EverCOVID19Positive { get; set; }
DateTime? COVID19TestDate { get; set; }
string PatientStatus { get; set; }
string AdmissionStatus { get; set; }
string AdmissionUnit { get; set; }
string MissedAppointmentDueToCOVID19 { get; set; }
string COVID19PositiveSinceLasVisit { get; set; }
DateTime? COVID19TestDateSinceLastVisit { get; set; }
string PatientStatusSinceLastVisit { get; set; }
string AdmissionStatusSinceLastVisit { get; set; }
DateTime? AdmissionStartDate { get; set; }
DateTime? AdmissionEndDate { get; set; }
string AdmissionUnitSinceLastVisit { get; set; }
string SupplementalOxygenReceived { get; set; }
string PatientVentilated { get; set; }
string TracingFinalOutcome { get; set; }
string CauseOfDeath { get; set; }
DateTime? Date_Created { get; set; }
DateTime? Date_Last_Modified { get; set; }

string COVID19TestResult { get; set; }
string Sequence { get; set; }
}
}
22 changes: 22 additions & 0 deletions src/Dwapi.Contracts/Ct/IDefaulterTracing.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using System;

namespace Dwapi.Contracts.Ct
{
public interface IDefaulterTracing
{
string FacilityName { get; set; }
int? VisitID { get; set; }
DateTime? VisitDate { get; set; }
int? EncounterId { get; set; }
string TracingType { get; set; }
string TracingOutcome { get; set; }
int? AttemptNumber { get; set; }
string IsFinalTrace { get; set; }
string TrueStatus { get; set; }
string CauseOfDeath { get; set; }
string Comments { get; set; }
DateTime? BookingDate { get; set; }
DateTime? Date_Created { get; set; }
DateTime? Date_Last_Modified { get; set; }
}
}
1 change: 1 addition & 0 deletions src/Dwapi.Contracts/Ct/IPatient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ public interface IPatient
{
string Pkv { get; set; }
string Occupation { get; set; }
string NUPI { get; set; }
}
}
6 changes: 6 additions & 0 deletions src/Dwapi.Contracts/Ct/IStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,11 @@ public interface IStatus
string TOVerified { get; set; }
DateTime? TOVerifiedDate { get; set; }
DateTime? ReEnrollmentDate { get; set; }


string ReasonForDeath { get; set; }
string SpecificDeathReason { get; set; }
DateTime? DeathDate { get; set; }
DateTime? EffectiveDiscontinuationDate { get; set; }
}
}
3 changes: 3 additions & 0 deletions src/Dwapi.Contracts/Ct/IVisit.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using System;

namespace Dwapi.Contracts.Ct
{
public interface IVisit
Expand Down Expand Up @@ -31,5 +33,6 @@ public interface IVisit
string Abdomen {get;set;}
string CNS {get;set;}
string Genitourinary {get;set;}
DateTime? RefillDate { get; set; }
}
}
12 changes: 6 additions & 6 deletions src/Dwapi.Contracts/Mnch/IHei.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ public interface IHei
DateTime? ConfirmatoryPCRDate { get; set; }
DateTime? BasellineVLDate { get; set; }
DateTime? FinalyAntibodyDate { get; set; }
DateTime? DNAPCR1 { get; set; }
DateTime? DNAPCR2 { get; set; }
DateTime? DNAPCR3 { get; set; }
DateTime? ConfirmatoryPCR { get; set; }
DateTime? BasellineVL { get; set; }
DateTime? FinalyAntibody { get; set; }
string DNAPCR1 { get; set; }
string DNAPCR2 { get; set; }
string DNAPCR3 { get; set; }
string ConfirmatoryPCR { get; set; }
string BasellineVL { get; set; }
string FinalyAntibody { get; set; }
DateTime? HEIExitDate { get; set; }
string HEIHIVStatus { get; set; }
string HEIExitCritearia { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/Dwapi.Contracts/Mnch/IPatientMnch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ public interface IPatientMnch
string InSchool { get; set; }
DateTime? Date_Created { get; set; }
DateTime? Date_Last_Modified { get; set; }
string NUPI { get; set; }
}
}
38 changes: 38 additions & 0 deletions src/Dwapi.Contracts/Prep/IPatientPrep.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
using System;

namespace Dwapi.Contracts.Prep
{
public interface IPatientPrep
{
string FacilityName { get; set; }
string PrepNumber { get; set; }
string HtsNumber { get; set; }
DateTime? PrepEnrollmentDate { get; set; }
string Sex { get; set; }
DateTime? DateofBirth { get; set; }
string CountyofBirth { get; set; }
string County { get; set; }
string SubCounty { get; set; }
string Location { get; set; }
string LandMark { get; set; }
string Ward { get; set; }
string ClientType { get; set; }
string ReferralPoint { get; set; }
string MaritalStatus { get; set; }
string Inschool { get; set; }
string PopulationType { get; set; }
string KeyPopulationType { get; set; }
string Refferedfrom { get; set; }
string TransferIn { get; set; }
DateTime? TransferInDate { get; set; }
string TransferFromFacility { get; set; }
DateTime? DatefirstinitiatedinPrepCare { get; set; }
DateTime? DateStartedPrEPattransferringfacility { get; set; }
string ClientPreviouslyonPrep { get; set; }
string PrevPrepReg { get; set; }
DateTime? DateLastUsedPrev { get; set; }
DateTime? Date_Created { get; set; }
DateTime? Date_Last_Modified { get; set; }
string NUPI { get; set; }
}
}
22 changes: 22 additions & 0 deletions src/Dwapi.Contracts/Prep/IPrepAdverseEvent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using System;

namespace Dwapi.Contracts.Prep
{
public interface IPrepAdverseEvent
{
string FacilityName { get; set; }
string PrepNumber { get; set; }
string AdverseEvent { get; set; }
DateTime? AdverseEventStartDate { get; set; }
DateTime? AdverseEventEndDate { get; set; }
string Severity { get; set; }
DateTime? VisitDate { get; set; }
string AdverseEventActionTaken { get; set; }
string AdverseEventClinicalOutcome { get; set; }
string AdverseEventIsPregnant { get; set; }
string AdverseEventCause { get; set; }
string AdverseEventRegimen { get; set; }
DateTime? Date_Created { get; set; }
DateTime? Date_Last_Modified { get; set; }
}
}
32 changes: 32 additions & 0 deletions src/Dwapi.Contracts/Prep/IPrepBehaviourRisk.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
using System;

namespace Dwapi.Contracts.Prep
{
public interface IPrepBehaviourRisk
{
string FacilityName { get; set; }
string PrepNumber { get; set; }
string HtsNumber { get; set; }
DateTime? VisitDate { get; set; }
int? VisitID { get; set; }
string SexPartnerHIVStatus { get; set; }
string IsHIVPositivePartnerCurrentonART { get; set; }
string IsPartnerHighrisk { get; set; }
string PartnerARTRisk { get; set; }
string ClientAssessments { get; set; }
string ClientRisk { get; set; }
string ClientWillingToTakePrep { get; set; }
string PrEPDeclineReason { get; set; }
string RiskReductionEducationOffered { get; set; }
string ReferralToOtherPrevServices { get; set; }
DateTime? FirstEstablishPartnerStatus { get; set; }
DateTime? PartnerEnrolledtoCCC { get; set; }
string HIVPartnerCCCnumber { get; set; }
DateTime? HIVPartnerARTStartDate { get; set; }
string MonthsknownHIVSerodiscordant { get; set; }
string SexWithoutCondom { get; set; }
string NumberofchildrenWithPartner { get; set; }
DateTime? Date_Created { get; set; }
DateTime? Date_Last_Modified { get; set; }
}
}
16 changes: 16 additions & 0 deletions src/Dwapi.Contracts/Prep/IPrepCareTermination.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;

namespace Dwapi.Contracts.Prep
{
public interface IPrepCareTermination
{
string FacilityName { get; set; }
string PrepNumber { get; set; }
string HtsNumber { get; set; }
DateTime? ExitDate { get; set; }
string ExitReason { get; set; }
DateTime? DateOfLastPrepDose { get; set; }
DateTime? Date_Created { get; set; }
DateTime? Date_Last_Modified { get; set; }
}
}
Loading

0 comments on commit d6ade42

Please sign in to comment.