Ejemplo n.º 1
0
 static bool HarvestPatientSummary(IElementNavigator nav, ArtifactSummaryPropertyBag properties)
 {
     if (properties.GetTypeName() == ResourceType.Patient.GetLiteral())
     {
         nav.HarvestValues(properties, PatientFamilyNameKey, "name", "family");
         return(true);
     }
     return(false);
 }
 /// <summary>Harvest specific summary information from a <see cref="NamingSystem"/> resource.</summary>
 /// <returns><c>true</c> if the current target represents a <see cref="NamingSystem"/> resource, or <c>false</c> otherwise.</returns>
 /// <remarks>The <see cref="ArtifactSummaryGenerator"/> calls this method through a <see cref="ArtifactSummaryHarvester"/> delegate.</remarks>
 public static bool Harvest(IElementNavigator nav, ArtifactSummaryPropertyBag properties)
 {
     if (IsNamingSystemSummary(properties))
     {
         nav.HarvestValues(properties, UniqueIdKey, "uniqueId", "value");
         return(true);
     }
     return(false);
 }