5

I am trying to use the healthcare.gov api for accessing plan data. The sample POST request includes the following syntax for encoding tobacco use:

   <p1:TobaccoLastUsedMonths>2</p1:TobaccoLastUsedMonths>

I don't understand what this means. Does this mean tobacco was last used two months ago? How would I indicate that tobacco was never used?

ben
  • 151
  • 1

1 Answers1

1

Does this mean tobacco was last used two months ago?

Most likely, yes.

How would I indicate that tobacco was never used?

Since this element is optional (minOccurs="0") —

<xs:complexType name="EnrolleeType">
    <xs:sequence>
        <xs:element name="DateOfBirth" type="xs:date"/>
        <xs:element name="Gender" type="GenderType"/>
        <xs:element name="TobaccoLastUsedMonths" type="xs:int" minOccurs="0"/>
        <xs:element name="Relation" type="RelationType"/>
        <xs:element name="InHouseholdIndicator" type="xs:boolean"/>
    </xs:sequence>
</xs:complexType>

— I suppose you shoud just skip this xs:element if tobacco was never used.

Stanislav Kralin
  • 2,975
  • 1
  • 12
  • 33