Ejemplo n.º 1
0
 protected void WriteHealthcareApisAccount(ServicesDescription healthcareApisAccount)
 {
     if (healthcareApisAccount != null)
     {
         WriteObject(PSHealthcareApisService.Create(healthcareApisAccount));
     }
 }
Ejemplo n.º 2
0
        protected void WriteHealthcareApisAccountList(
            IEnumerable <ServicesDescription> healthcareApisAccounts)
        {
            List <PSHealthcareApisService> output = new List <PSHealthcareApisService>();

            if (healthcareApisAccounts != null)
            {
                healthcareApisAccounts.ForEach(
                    healthcareApisAccount => output.Add(PSHealthcareApisService.Create(healthcareApisAccount)));
            }

            WriteObject(output, true);
        }
Ejemplo n.º 3
0
        public static List <PSHealthcareApisService> ToPSFhirServices(IPage <ServicesDescription> fhirServiceApps)
        {
            using (IEnumerator <ServicesDescription> sdenumerator = fhirServiceApps.GetEnumerator())
            {
                var newpne = new List <PSHealthcareApisService>();
                while (sdenumerator.MoveNext())
                {
                    PSHealthcareApisService psHealthCareFhirService = ToPSFhirService(sdenumerator.Current);
                    newpne.Add(psHealthCareFhirService);
                }

                return(newpne);
            }
        }