TemplateProvider¶
-
public class
TemplateProvider
¶ This class represents a visual Archetypes Template, according to the OpenEHR specifications. A template is an ordered list of
WidgetProvider
, each of them contains the layout of a specific archetype of the template-
Constructors¶
TemplateProvider¶
-
public
TemplateProvider
(Context ctx, String templateSchema, ArchetypeSchemaProvider archetypeSchemaProvider, String language)¶ Creates the template, building all the archetypes specified in the provided json schemas.
Parameters: - ctx – the application Context
- templateSchema – the json schema of the template
- archetypeSchemaProvider – the archetype schema provider
- language – the default ontology language
Throws: - JSONException – if an error occurred during the parsing of the json schemas