FhirClient m_client = new FhirClient( new Uri( "https://open-ic.epic.com/FHIR/api/FHIR/DSTU2/" ) );
m_client.UseFormatParam = true;m_client.PreferredFormat = ResourceFormat.Json;var pat = m_client.Read<Patient>( string.Format( "Patient/Tbt3KuCY0B5PSrJvCu2j-PlK.aiHsu2xUjUM8bWpetXoB" ) );Console.WriteLine( string.Format( "{0} {1}", pat.Name.First().Given.First(), pat.Name.First().Family.First() ) );Bundle result = m_client.Search( "Patient", new string[] { "name=Jason" } );
family | String | Search for Patient resources using a last name or family name. This parameter is used to find patients with matching family names, and supports both exact and “sounds like” matches. Query responses return matching patients in order of closest match, with the strongest match first. You must use this parameter with the given name parameter, but do not need any other additional parameters. |
given | String | Search for Patient resources using a first name or given name. This parameter is used to find patients with matching given names, and supports both exact and “sounds like” matches. Query responses return matching patients in order of closest match, with the strongest match first. You must use this parameter with the family parameter, but do not need any additional parameters. |