-
Notifications
You must be signed in to change notification settings - Fork 2
/
links.xsd
126 lines (118 loc) · 6.05 KB
/
links.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2014 (http://www.altova.com) by Dan Thomas (DC Department of Human Services DCAS Project) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://openhbx.org/api/terms/1.0" targetNamespace="http://openhbx.org/api/terms/1.0" elementFormDefault="qualified">
<xs:include schemaLocation="common.xsd"/>
<xs:simpleType name="PolicyStateNameType">
<xs:annotation>
<xs:documentation>Enumerated list of the possible modes or status of a policy </xs:documentation>
</xs:annotation>
<xs:restriction base="xs:anyURI">
<xs:enumeration value="urn:openhbx:terms:v1:policy_state#submitted"/>
<xs:enumeration value="urn:openhbx:terms:v1:policy_state#resubmitted"/>
<xs:enumeration value="urn:openhbx:terms:v1:policy_state#effectuated"/>
<xs:enumeration value="urn:openhbx:terms:v1:policy_state#carrier_rejected"/>
<xs:enumeration value="urn:openhbx:terms:v1:policy_state#carrier_canceled"/>
<xs:enumeration value="urn:openhbx:terms:v1:policy_state#carrier_terminated"/>
<xs:enumeration value="urn:openhbx:terms:v1:policy_state#hbx_invalid"/>
<xs:enumeration value="urn:openhbx:terms:v1:policy_state#hbx_rejected"/>
<xs:enumeration value="urn:openhbx:terms:v1:policy_state#hbx_canceled"/>
<xs:enumeration value="urn:openhbx:terms:v1:policy_state#hbx_terminated"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="EntityNameType">
<xs:restriction base="xs:anyURI">
<xs:enumeration value="urn:openhbx:terms:v1:entity#case_manager"/>
<xs:enumeration value="urn:openhbx:terms:v1:entity#key_person"/>
<xs:enumeration value="urn:openhbx:terms:v1:entity#parent"/>
<xs:enumeration value="urn:openhbx:terms:v1:entity#responsible_party"/>
<xs:enumeration value="urn:openhbx:terms:v1:entity#guardian"/>
<xs:enumeration value="urn:openhbx:terms:v1:entity#ex_spouse"/>
<xs:enumeration value="urn:openhbx:terms:v1:entity#significant_other"/>
<xs:enumeration value="urn:openhbx:terms:v1:entity#legal_representative"/>
<xs:enumeration value="urn:openhbx:terms:v1:entity#power_of_attorney"/>
<xs:enumeration value="urn:openhbx:terms:v1:entity#other_insured"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="EmploymentStatusNameType">
<xs:annotation>
<xs:documentation>A subscriber's employment status at time of enrollment</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:anyURI">
<xs:enumeration value="urn:openhbx:terms:v1:employment_status#active"/>
<xs:enumeration value="urn:openhbx:terms:v1:employment_status#full_time"/>
<xs:enumeration value="urn:openhbx:terms:v1:employment_status#part_time"/>
<xs:enumeration value="urn:openhbx:terms:v1:employment_status#terminated"/>
<xs:enumeration value="urn:openhbx:terms:v1:employment_status#leave_of_absence"/>
<xs:enumeration value="urn:openhbx:terms:v1:employment_status#retired"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="EnrolleeBenefitType">
<xs:sequence>
<xs:element name="premium_amount" type="CurrencyType"/>
<xs:element name="begin_date" type="SimpleDateType"/>
<xs:element name="end_date" type="SimpleDateType" minOccurs="0"/>
<xs:element name="carrier_assigned_policy_id" type="xs:string" minOccurs="0"/>
<xs:element name="carrier_assigned_enrollee_id" type="xs:string" minOccurs="0"/>
<xs:element name="coverage_level" type="CoverageLevelNameType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="CoverageLevelNameType">
<xs:annotation>
<xs:documentation>Enumerated list of household member types included under a policy</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:anyURI">
<xs:enumeration value="urn:openhbx:terms:v1:coverage_level#individual"/>
<xs:enumeration value="urn:openhbx:terms:v1:coverage_level#family"/>
<xs:enumeration value="urn:openhbx:terms:v1:coverage_level#employee_only"/>
<xs:enumeration value="urn:openhbx:terms:v1:coverage_level#employee_and_spouse"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="EmployerLinkType">
<xs:annotation>
<xs:documentation>Reference to an Employer instance </xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="id" type="IdentifierType"/>
<xs:element name="hbx_id" type="IdentifierType"/>
<xs:element name="name" type="xs:string"/>
<xs:element name="dba" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="PolicyLinkType">
<xs:sequence>
<xs:group ref="HbxIdentifierGroup"/>
<xs:element name="broker" type="BrokerLinkType" minOccurs="0"/>
<xs:element name="plan" type="PlanLinkType"/>
<xs:element name="enrollees">
<xs:complexType>
<xs:sequence>
<xs:element name="enrollee" type="EnrolleeLinkType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="employer" type="EmployerLinkType" minOccurs="0"/>
<xs:element name="policy_state" type="PolicyStateNameType"/>
<xs:group ref="ResourceTimestampGroup"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="EnrolleeLinkType">
<xs:sequence>
<xs:element name="individual" type="IndividualLinkType"/>
<xs:element ref="employment_status"/>
<xs:element name="physically_disabled_flag" type="xs:boolean" default="false"/>
<xs:element name="benefit" type="EnrolleeBenefitType"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="IndividualLinkType">
<xs:complexContent>
<xs:restriction base="IndividualType">
<xs:sequence>
<xs:group ref="HbxIdentifierGroup"/>
<xs:element name="person" type="PersonType"/>
<xs:element name="relationships" type="IndividualRelationshipsType"/>
<xs:group ref="ResourceTimestampGroup"/>
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
</xs:schema>