Click or drag to resize

ActTemplate Property

Delay load property for the template

Namespace:  SanteDB.Core.Model.Acts
Assembly:  SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 2.2.1
Syntax
public TemplateDefinition Template { get; set; }

Property Value

Type: TemplateDefinition

Implements

IHasTemplateTemplate
Remarks

This property is used for easy access to the structured template information for the template on which the act is based. This property is loaded based on the UUID specified in TemplateKey

Templates are used to define:

  • The overall structure/seed data to be included in the instance
  • The implementation specific constraints on the instance (example: act.immunization vs. act.immunization.booster)
  • User interface forms and views to be rendered
Examples
var act = persistenceService.Find(o => o.ClassConceptKey == ClassConceptKeys.SubstanceAdministration).FirstOrDefault(); Console.WriteLine("This substance administration is based on template {0}", act.LoadProperty(o => o.Template).Name);
See Also