Example #1
0
 public static void AddProfileAssertion(this ResourceEntry entry, Uri profileUri)
 {
     entry.Tags.Add(new Tag(profileUri.ToString(), Tag.FHIRTAGSCHEME_PROFILE));
 }
Example #2
0
 public static void AddSecurityLabel(this ResourceEntry entry, Uri label)
 {
     entry.Tags.Add(new Tag(label.ToString(), Tag.FHIRTAGSCHEME_SECURITY));
 }
Example #3
0
 public static IEnumerable <Uri> GetSecurityLabels(this ResourceEntry entry)
 {
     return(entry.Tags.Where(t => Equals(t.Scheme, Tag.FHIRTAGSCHEME_SECURITY) && t.Term != null)
            .Select(t => new Uri(t.Term)));
 }
Example #4
0
 public static IEnumerable <Uri> GetAssertedProfiles(this ResourceEntry entry)
 {
     return(entry.Tags.Where(t => Equals(t.Scheme, Tag.FHIRTAGSCHEME_PROFILE) && t.Term != null)
            .Select(t => new Uri(t.Term)));
 }