Wiki

Clone wiki

best-practice / ActorType - datatyper v9

    <xs:complexType name="ActorType">
        <xs:sequence>
            <xs:element name="type" type="codes:ActorTypeCodeEnum"/>
            <xs:element name="id" type="tns:IIType" minOccurs="0"/>
            <xs:element name="name" type="xs:string" minOccurs="0"/>
            <xs:element name="orgUnit" type="tns:OrgUnitType" minOccurs="0"/>
        </xs:sequence>
    </xs:complexType>

    <xs:simpleType name="ActorTypeCodeEnum">
        <xs:restriction base="xs:string">
            <xs:enumeration value="HCPROFESSIONAL">
                <xs:annotation>
                    <xs:documentation>Vårdpersonal</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="PATIENT">
                <xs:annotation>
                    <xs:documentation>Patienten själv</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="PROXY">
                <xs:annotation>
                    <xs:documentation>Ombud eller annan person</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DEVICE">
                <xs:annotation>
                    <xs:documentation>Maskin</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
        </xs:restriction>
    </xs:simpleType>

Updated