public void TheSlotScheduleShouldBeReferencedInTheBundle() { Slots.ForEach(slot => { slot.Schedule.ShouldNotBeNull("The Slot Schedule should not be null"); slot.Schedule.Reference.ShouldNotBeNullOrEmpty($"The Slot Schedule Reference should not be null or empty but was {slot.Schedule.Reference}"); _bundleSteps.ResponseBundleContainsReferenceOfType(slot.Schedule.Reference, ResourceType.Schedule); }); }
public void TheCompositionSubjectShouldReferencedInTheBundle() { var subject = _composition.Subject; if (subject != null) { subject.Reference.ShouldNotBeNull(); _bundleSteps.ResponseBundleContainsReferenceOfType(subject.Reference, ResourceType.Patient); } }
public void ThePatientGeneralPractitionerShouldBeReferencedInTheBundle() { Patients.ForEach(patient => { if (patient.GeneralPractitioner != null) { patient.GeneralPractitioner.Count.ShouldBeLessThanOrEqualTo(1); if (patient.GeneralPractitioner.Count.Equals(1)) { _bundleSteps.ResponseBundleContainsReferenceOfType(patient.GeneralPractitioner.First().Reference, ResourceType.Practitioner); } } }); }
public void TheOrganizationPartOfOrganizationShouldBeReferencedInTheBundle() { Organizations.ForEach(organization => { if (organization.PartOf != null) { _bundleSteps.ResponseBundleContainsReferenceOfType(organization.PartOf.Reference, ResourceType.Organization); } }); }