| 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; }
Public Property Template As TemplateDefinition
Get
Set
public:
virtual property TemplateDefinition^ Template {
TemplateDefinition^ get () sealed;
void set (TemplateDefinition^ value) sealed;
}
abstract Template : TemplateDefinition with get, set
override Template : TemplateDefinition with get, set
Property Value
Type:
TemplateDefinitionImplements
IHasTemplateTemplateRemarks 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