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: 3.0.2081-alpha+0a330d5f5a5d3cb3e6e945ef530e94ac5671b49c
Syntax
public TemplateDefinition Template { get; set; }

Property Value

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
Example
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