# Onset Date missning from the preprinted HICFA form

**URL:** <https://community.open-emr.org/t/onset-date-missning-from-the-preprinted-hicfa-form/10071>\
**Category:** Day-to-Day Users\
**Created:** [May 7, 2018, 9:35pm UTC](https://community.open-emr.org/t/onset-date-missning-from-the-preprinted-hicfa-form/10071 "2018-05-07T21:35:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![juggernautsei](https://community.open-emr.org/user_avatar/community.open-emr.org/juggernautsei/32/10764_2.png) [@juggernautsei](https://community.open-emr.org/u/juggernautsei)\
**Post date:** [May 7, 2018, 9:35pm UTC](https://community.open-emr.org/t/onset-date-missning-from-the-preprinted-hicfa-form/10071/1 "2018-05-07T21:35:14Z")

</div>

We are missing this piece of information that was present in the 5.0.0.3.

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [May 7, 2018, 10:34pm UTC](https://community.open-emr.org/t/onset-date-missning-from-the-preprinted-hicfa-form/10071/2 "2018-05-07T22:34:12Z")

</div>

hi @juggernautsei, there can’t be any 🐛s in the billing code 😉

you could change this line back to just plain old `OnsetDate` if you want to keep using the encounter form instead of the misc billing options

> <https://github.com/openemr/openemr/blob/master/library/gen_hcfa_1500.inc.php#L377>

---

<div class="post-metadata">

**Author:** ![juggernautsei](https://community.open-emr.org/user_avatar/community.open-emr.org/juggernautsei/32/10764_2.png) [@juggernautsei](https://community.open-emr.org/u/juggernautsei)\
**Post date:** [May 7, 2018, 11:34pm UTC](https://community.open-emr.org/t/onset-date-missning-from-the-preprinted-hicfa-form/10071/3 "2018-05-07T23:34:14Z")

</div>

Did this instead

```
if($claim->miscOnsetDate()){
    $tmp = $claim->miscOnsetDate();
    put_hcfa(32, 2, 2, substr($tmp, 4, 2));
    put_hcfa(32, 5, 2, substr($tmp, 6, 2));
    put_hcfa(32, 8, 4, substr($tmp, 0, 4));
    }elseif($claim->onsetDate()){
    $tmp = $claim->onsetDate();
    put_hcfa(32, 2, 2, substr($tmp,4,2));
    put_hcfa(32, 5, 2, substr($tmp,6,2));
    put_hcfa(32, 8, 4, substr($tmp,0,4));
    } 

```

Don’t know why not put this in the code because both areas are used and most people that I work with never use the misc billing form.

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [May 7, 2018, 11:42pm UTC](https://community.open-emr.org/t/onset-date-missning-from-the-preprinted-hicfa-form/10071/4 "2018-05-07T23:42:18Z")

</div>

nice. ok, i’ll do a pull request and credit your advice, thanks @juggernautsei

---

<div class="post-metadata">

**Author:** ![juggernautsei](https://community.open-emr.org/user_avatar/community.open-emr.org/juggernautsei/32/10764_2.png) [@juggernautsei](https://community.open-emr.org/u/juggernautsei)\
**Post date:** [May 8, 2018, 12:49pm UTC](https://community.open-emr.org/t/onset-date-missning-from-the-preprinted-hicfa-form/10071/5 "2018-05-08T12:49:47Z")

</div>

Thank you for the credit.
