# Potentially incorrect data types in the \`schedule\` table

**URL:** <https://forum.openreferral.org/t/potentially-incorrect-data-types-in-the-schedule-table/330>\
**Category:** Technical\
**Tags:** datastructure\
**Created:** [January 24, 2023, 6:47pm UTC](https://forum.openreferral.org/t/potentially-incorrect-data-types-in-the-schedule-table/330 "2023-01-24T18:47:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![skyleryoung](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openreferral.org/skyleryoung/32/212_2.png) [@skyleryoung](https://forum.openreferral.org/u/skyleryoung)\
**Post date:** [January 24, 2023, 6:47pm UTC](https://forum.openreferral.org/t/potentially-incorrect-data-types-in-the-schedule-table/330/1 "2023-01-24T18:47:24Z")

</div>

My team have surfaced a few potential data type errors in the existing HSDS documentation. @davidraznick may already be all over this in 3.0, but I thought I would document our findings here just in case.

**schedule**

- `schedule.count` has a type of `date`, but we are assuming this should really be a type of `number`.
- `bymonthday` and `byyearday` have a type of `number`, but the descriptions say this is a comma separated list, which would required a type of `string`.

@bloom @MikeThacker-iStandUK @devin

---

<div class="post-metadata">

**Author:** ![Dan-ODS](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openreferral.org/dan-ods/32/89_2.png) [@Dan-ODS](https://forum.openreferral.org/u/Dan-ODS)\
**Post date:** [January 24, 2023, 8:32pm UTC](https://forum.openreferral.org/t/potentially-incorrect-data-types-in-the-schedule-table/330/2 "2023-01-24T20:32:12Z")

</div>

Thanks for this @skyleryoung ,

I’m catching up with David tomorrow so will make sure it’s on the radar.

Dan

---

<div class="post-metadata">

**Author:** ![Dan-ODS](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openreferral.org/dan-ods/32/89_2.png) [@Dan-ODS](https://forum.openreferral.org/u/Dan-ODS)\
**Post date:** [January 25, 2023, 8:01pm UTC](https://forum.openreferral.org/t/potentially-incorrect-data-types-in-the-schedule-table/330/3 "2023-01-25T20:01:33Z")

</div>

@skyleryoung This has been added as an issue on our Github project today. Thanks again for flagging.

---

<div class="post-metadata">

**Author:** ![lewisspurgin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openreferral.org/lewisspurgin/32/102_2.png) [@lewisspurgin](https://forum.openreferral.org/u/lewisspurgin)\
**Post date:** [February 9, 2023, 2:00pm UTC](https://forum.openreferral.org/t/potentially-incorrect-data-types-in-the-schedule-table/330/4 "2023-02-09T14:00:05Z")

</div>

Hi all,

Just noting that we’ve tidied these up in [this PR](https://github.com/openreferral/specification/pull/343). We’ll have a run through all the types and descriptions as part of the 3.0 upgrade work. Thanks for flagging @skyleryoung

Lewis

---

<div class="post-metadata">

**Author:** ![skyleryoung](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openreferral.org/skyleryoung/32/212_2.png) [@skyleryoung](https://forum.openreferral.org/u/skyleryoung)\
**Post date:** [February 12, 2023, 9:28pm UTC](https://forum.openreferral.org/t/potentially-incorrect-data-types-in-the-schedule-table/330/5 "2023-02-12T21:28:50Z")

</div>

Awesome, my pleasure 🙂 Thanks guys.
