Beispiel #1
0
        private EnrolmentIdentifierDto CreateLinksForCohortGroupEnrolment <T>(T dto)
        {
            EnrolmentIdentifierDto identifier = (EnrolmentIdentifierDto)(object)dto;

            identifier.Links.Add(new LinkDto(_linkGeneratorService.CreateUpdateDeenrolmentForPatientResourceUri(identifier.PatientId, identifier.Id), "deenrol", "PUT"));

            return(identifier);
        }
Beispiel #2
0
 private void CreateLinksForEnrolment(EnrolmentIdentifierDto dto)
 {
     dto.Links.Add(new LinkDto(_linkGeneratorService.CreateEnrolmentForPatientResourceUri(dto.PatientId, dto.Id), "self", "GET"));
     dto.Links.Add(new LinkDto(_linkGeneratorService.CreateUpdateDeenrolmentForPatientResourceUri(dto.PatientId, dto.Id), "deenrol", "PUT"));
 }
 private void CreateLinks(EnrolmentDetailDto mappedCohortGroupEnrolment)
 {
     mappedCohortGroupEnrolment.Links.Add(new LinkDto(_linkGeneratorService.CreateUpdateDeenrolmentForPatientResourceUri(mappedCohortGroupEnrolment.PatientId, mappedCohortGroupEnrolment.Id), "deenrol", "PUT"));
 }