openreferral / specification

The Human Services Data Specification - a data exchange format developed by the Open Referral Initiative
https://openreferral.org
Other
117 stars 49 forks source link

add AIRS Schema framework for Hours #13

Closed spara closed 9 years ago

spara commented 10 years ago

The AIRS Schema does include an optional framework for Hours that would help someone finding a Food Pantry that was open on a Thursday (instead of scrolling through 25 food pantries to find one that was open on Thursdays)

spara commented 10 years ago

TIme Open

<xs:complexType name="tDay">
    <xs:annotation>
        <xs:documentation>element of tTimeOpen</xs:documentation>
        <xs:documentation>This can be used for any day of the week</xs:documentation>
    </xs:annotation>
    <xs:sequence maxOccurs="unbounded">
        <xs:element name="From" type="xs:time"/>
        <xs:element name="To" type="xs:time"/>
    </xs:sequence>
</xs:complexType>

<xs:complexType name="tTimeOpen">
    <xs:annotation>
        <xs:documentation>element of tLanguages, tSite and tSiteService</xs:documentation>
        <xs:documentation>TimeOpen refers to the times a service is open or available</xs:documentation>
    </xs:annotation>
    <xs:sequence>
        <xs:element name="Sunday" type="tDay" minOccurs="0" maxOccurs="unbounded"/>
        <xs:element name="Monday" type="tDay" minOccurs="0" maxOccurs="unbounded"/>
        <xs:element name="Tuesday" type="tDay" minOccurs="0" maxOccurs="unbounded"/>
        <xs:element name="Wednesday" type="tDay" minOccurs="0" maxOccurs="unbounded"/>
        <xs:element name="Thursday" type="tDay" minOccurs="0" maxOccurs="unbounded"/>
        <xs:element name="Friday" type="tDay" minOccurs="0" maxOccurs="unbounded"/>
        <xs:element name="Saturday" type="tDay" minOccurs="0" maxOccurs="unbounded"/>
        <xs:element name="Notes" type="xs:string" minOccurs="0"/>
    </xs:sequence>
</xs:complexType>

Seasonal

<xs:complexType name="tSeasonal">
    <xs:annotation>
        <xs:documentation>element of tSiteService</xs:documentation>
            <xs:documentation>Activities that are only offered a certain time of year, such as seasonal tax preparation, summer camps and holiday meals</xs:documentation>
    </xs:annotation>
    <xs:sequence>
        <xs:element name="Description" type="xs:string" minOccurs="0"/>
        <xs:element name="StartDate" type="xs:string" />
        <xs:element name="EndDate" type="xs:string" />
    </xs:sequence>
</xs:complexType>   
spara commented 9 years ago

Used schema proposed by Moncef, coincides with Ohana API

greggish commented 9 years ago

Can you clarify whether this choice was made to coincide with Ohana API instead of the AIRS schema?

spara commented 9 years ago

See issue #59 https://github.com/codeforamerica/OpenReferral/issues/59