Competency¤
Competency
dataclass
¤
Represents the competency element in an equipment register.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
worker
|
str
|
The competent person who executed the technical procedure to accomplish the performance check. |
required |
checker
|
str
|
The competent person who reviewed the work done by the |
required |
technical_procedure
|
str
|
The technical procedure that was executed to accomplish the performance check. |
required |
checker
instance-attribute
¤
checker: str
The competent person who reviewed the work done by the worker.
technical_procedure
instance-attribute
¤
technical_procedure: str
The technical procedure that was executed to accomplish the performance check.
worker
instance-attribute
¤
worker: str
The competent person who executed the technical procedure to accomplish the performance check.
from_xml
classmethod
¤
from_xml(element: Element[str]) -> Competency
Convert an XML element into a Competency instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element
|
Element[str]
|
A competency XML element from an equipment register. |
required |
Returns:
| Type | Description |
|---|---|
Competency
|
The Competency instance. |
Source code in src/msl/equipment/schema.py
843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 | |
to_xml
¤
Convert the Competency class into an XML element.
Returns:
| Type | Description |
|---|---|
Element[str]
|
The Competency as an XML element. |
Source code in src/msl/equipment/schema.py
860 861 862 863 864 865 866 867 868 869 870 871 872 873 | |