archetype (adl_version=1.4)
    openEHR-EHR-CLUSTER.inspection-skin-wound.v1draft
specialize
    openEHR-EHR-CLUSTER.inspection-skin.v1draft

concept
    [at0000.1.1]    -- Inspection of wound
language
    original_language = <[ISO_639-1::en]>
description
    original_author = <
        ["name"] = <"Heather Leslie">
        ["organisation"] = <"Ocean Informatics">
        ["date"] = <"10/04/2007">
        ["email"] = <"heather.leslie@oceaninformatics.biz">
    >
    details = <
        ["en"] = <
            language = <[ISO_639-1::en]>
            purpose = <"For recording the findings on inspection of a wound">
            use = <"For use with the exam clusters for recording findings on inspection">
            keywords = <"inspect", "visual", "skin", "wound">
            misuse = <"Should only be used in the exam observation">
        >
    >
    lifecycle_state = <"Initial">
    other_contributors = <>

definition
    CLUSTER[at0000.1.1]  {    -- Inspection of wound
        items cardinality  {0..*; unordered}  {
            CLUSTER[at0001] occurrences  {0..1}  {    -- Normal statements
                items cardinality  {0..*; unordered}  {
                    ELEMENT[at0002] occurrences  {0..*}  {    -- Normal statement
                        value  {
                            DV_TEXT  {*}
                        }
                    }
                }
            }
            ELEMENT[at0048] occurrences  {0..1}  {    -- Clinical Description
                value  {
                    DV_TEXT  {*}
                }
            }
            CLUSTER[at0006] occurrences  {0..*}  {    -- Findings
                items cardinality  {0..*; unordered}  {
                    ELEMENT[at0.52] occurrences  {0..1}  {    -- Method
                        value  {
                            DV_CODED_TEXT  {
                                defining_code  {
                                    [local::
                                    at0.53,     -- Direct visualisation
                                    at0.54,     -- Wood's lamp
                                    at0.55]    -- Dermatoscope
                                }
                            }
                        }
                    }
                    ELEMENT[at0036] occurrences  {0..1}  {    -- Colour description
                        value  {
                            DV_TEXT  {*}
                        }
                    }
                    CLUSTER[at0005] occurrences  {0..1}  {    -- Location
                        items cardinality  {0..*; unordered}  {
                            ELEMENT[at0022] occurrences  {0..*}  {    -- Description
                                value  {
                                    DV_CODED_TEXT  {
                                        defining_code  {[local::]}
                                    }
                                }
                            }
                        }
                    }
                    CLUSTER[at0018] occurrences  {0..1}  {    -- Shape or distribution
                        items cardinality  {0..*; unordered}  {
                            ELEMENT[at0019] occurrences  {0..1}  {    -- Description
                                value  {
                                    DV_TEXT  {*}
                                }
                            }
                            ELEMENT[at0020] occurrences  {0..1}  {    -- Symmetrical
                                value  {
                                    DV_BOOLEAN  {
                                        value  {True, False}
                                    }
                                }
                            }
                        }
                    }
                    ELEMENT[at0.0.62] occurrences  {0..1}  {    -- Age
                        value  {
                            DV_CODED_TEXT  {
                                defining_code  {
                                    [local::
                                    at0.0.63,     -- Acute
                                    at0.0.64]    -- Chronic
                                }
                            }
                        }
                    }
                    CLUSTER[at0.0.65] occurrences  {0..1}  {    -- Signs of infection
                        items cardinality  {0..*; unordered}  {
                            allow_archetype CLUSTER occurrences  {0..1}  {
                                include
                                    archetype_id/value matches {/signs_of_infection\.v1draft/}
                                exclude
                                    archetype_id/value matches {/.*/}
                            }
                        }
                    }
                    CLUSTER[at0.0.61] occurrences  {0..1}  {    -- Size
                        items cardinality  {0..*; unordered}  {
                            allow_archetype CLUSTER occurrences  {0..1}  {
                                include
                                    archetype_id/value matches {/size\.v1/}
                                    archetype_id/value matches {/dimensions\.v1/}
                                    archetype_id/value matches {/dimensions-circumference\.v1/}
                            }
                        }
                    }
                    ELEMENT[at0051] occurrences  {0..1}  {    -- Contour
                        value  {
                            DV_TEXT  {*}
                        }
                    }
                    ELEMENT[at0027] occurrences  {0..1}  {    -- Surface
                        value  {
                            DV_TEXT  {*}
                        }
                    }
                    ELEMENT[at0.56] occurrences  {0..1}  {    -- Thickness
                        value  {
                            DV_CODED_TEXT  {
                                defining_code  {
                                    [local::
                                    at0.57,     -- Thickened
                                    at0.58,     -- Normal
                                    at0.59]    -- Thinned/Atrophic
                                }
                            }
                        }
                    }
                    ELEMENT[at0024] occurrences  {0..1}  {    -- Surrounds
                        value  {
                            DV_TEXT  {*}
                        }
                    }
                    ELEMENT[at0.60] occurrences  {0..1}  {    -- Pigmentation
                        value  {
                            DV_TEXT  {*}
                        }
                    }
                    CLUSTER[at0028] occurrences  {0..1}  {    -- Edge
                        items cardinality  {0..*; unordered}  {
                            ELEMENT[at0033] occurrences  {0..1}  {    -- Description
                                value  {
                                    DV_TEXT  {*}
                                }
                            }
                            ELEMENT[at0029] occurrences  {0..1}  {    -- Definition
                                value  {
                                    DV_CODED_TEXT  {
                                        defining_code  {
                                            [local::
                                            at0030,     -- Well defined
                                            at0031,     -- Moderately defined
                                            at0032]    -- Poorly defined
                                        }
                                    }
                                }
                            }
                        }
                    }
                    ELEMENT[at0034] occurrences  {0..1}  {    -- Translucent
                        value  {
                            DV_BOOLEAN  {
                                value  {True, False}
                            }
                        }
                    }
                    CLUSTER[at0049] occurrences  {0..1}  {    -- Detail
                        items cardinality  {0..*; unordered}  {
                            allow_archetype CLUSTER occurrences  {0..1}  {
                                include
                                    archetype_id/value matches {/exam\.v1/}
                            }
                        }
                    }
                }
            }
            ELEMENT[at0050] occurrences  {0..1}  {    -- Drawing
                value  {
                    DV_MULTIMEDIA  {
                        media_type  {
                            [openEHR::
                            425, 
                            426, 
                            427, 
                            428, 
                            429]
                        }
                    }
                }
            }
        }
    }

ontology
    term_definitions = <
        ["en"] = <
            items = <
                ["at0.0.61"] = <
                    description = <"*">
                    text = <"Size">
                >
                ["at0.0.62"] = <
                    description = <"*">
                    text = <"Age">
                >
                ["at0.0.63"] = <
                    description = <"*">
                    text = <"Acute">
                >
                ["at0.0.64"] = <
                    description = <"*">
                    text = <"Chronic">
                >
                ["at0.0.65"] = <
                    description = <"Presence of signs of infection">
                    text = <"Signs of infection">
                >
                ["at0.52"] = <
                    description = <"Record of findings on inspection using a specific method">
                    text = <"Method">
                >
                ["at0.53"] = <
                    description = <"Macroscopic; By eye">
                    text = <"Direct visualisation">
                >
                ["at0.54"] = <
                    description = <"*">
                    text = <"Wood's lamp">
                >
                ["at0.55"] = <
                    description = <"*">
                    text = <"Dermatoscope">
                >
                ["at0.56"] = <
                    description = <"Thickness of skin">
                    text = <"Thickness">
                >
                ["at0.57"] = <
                    description = <"*">
                    text = <"Thickened">
                >
                ["at0.58"] = <
                    description = <"*">
                    text = <"Normal">
                >
                ["at0.59"] = <
                    description = <"*">
                    text = <"Thinned/Atrophic">
                >
                ["at0.60"] = <
                    description = <"Pigmentation of skin">
                    text = <"Pigmentation">
                >
                ["at0000"] = <
                    description = <"The findings on physical examination by inspection">
                    text = <"Inspection">
                >
                ["at0000.1"] = <
                    description = <"The findings on inspection of the skin">
                    text = <"Inspection of skin">
                >
                ["at0000.1.1"] = <
                    description = <"The findings on inspection of a wound">
                    text = <"Inspection of wound">
                >
                ["at0001"] = <
                    description = <"An optional group of statements about the normality of the inspection">
                    text = <"Normal statements">
                >
                ["at0002"] = <
                    description = <"A specific statement about the normality of inspection">
                    text = <"Normal statement">
                >
                ["at0005"] = <
                    description = <"The location of any findings">
                    text = <"Location">
                >
                ["at0006"] = <
                    description = <"Specific findings on inspection">
                    text = <"Findings">
                >
                ["at0018"] = <
                    description = <"The shape or distribution of the object inspected">
                    text = <"Shape or distribution">
                >
                ["at0019"] = <
                    description = <"Description of the ">
                    text = <"Description">
                >
                ["at0020"] = <
                    description = <"Whether the distribution is symmetrical">
                    text = <"Symmetrical">
                >
                ["at0022"] = <
                    description = <"Description of the location of the findings">
                    text = <"Description">
                >
                ["at0024"] = <
                    description = <"Description of immediate surrounds to object">
                    text = <"Surrounds">
                >
                ["at0027"] = <
                    description = <"A description of the surface">
                    text = <"Surface">
                >
                ["at0028"] = <
                    description = <"Findings about the edge of the object under inspection">
                    text = <"Edge">
                >
                ["at0029"] = <
                    description = <"The nature of the edge of the object of examination">
                    text = <"Definition">
                >
                ["at0030"] = <
                    description = <"The edge is clearly defined">
                    text = <"Well defined">
                >
                ["at0031"] = <
                    description = <"The edge is defined but less clear in places">
                    text = <"Moderately defined">
                >
                ["at0032"] = <
                    description = <"The edge is not defined clearly in many places">
                    text = <"Poorly defined">
                >
                ["at0033"] = <
                    description = <"Description of the edge or border of the object of inspection">
                    text = <"Description">
                >
                ["at0034"] = <
                    description = <"Is the object of inspection translucent?">
                    text = <"Translucent">
                >
                ["at0036"] = <
                    description = <"The colour of the object under inspection">
                    text = <"Colour description">
                >
                ["at0048"] = <
                    description = <"Clinical description of the findings on inspection">
                    text = <"Clinical Description">
                >
                ["at0049"] = <
                    description = <"Detailed examination of a finding on inspection">
                    text = <"Detail">
                >
                ["at0050"] = <
                    description = <"A drawing of the findings on inspection">
                    text = <"Drawing">
                >
                ["at0051"] = <
                    description = <"The contour of the object of inspection">
                    text = <"Contour">
                >
            >
        >
    >