rogeriofalcone / sappira

Automatically exported from code.google.com/p/sappira
0 stars 0 forks source link

Social Security Numbers are not accepted in the form xxx-xx-xxxx #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Login
2. Navigate too /medical_record/create/patient/
3. Create a patient with a social security number of the form xxx-xx-xxxx

What is the expected output? What do you see instead?
The user should be added; instead it asks for a whole number.

What version of the product are you using? On what operating system?
trunk

Please provide any additional information below.

Original issue reported on code.google.com by andrewa...@gmail.com on 30 Oct 2009 at 12:07

GoogleCodeExporter commented 9 years ago
Hi,

I was working on a patch for this and ran into 
http://docs.djangoproject.com/en/dev/ref/contrib/localflavor/#united-states-of-a
merica-us

Would that be worth using in this EMR? Or should be roll our own?

Original comment by andrewa...@gmail.com on 31 Oct 2009 at 3:48

GoogleCodeExporter commented 9 years ago
To keep things simple, use the built-in functionality, unless it does not do 
what you 
want it to do. Then, and only then, roll your own.

Original comment by inshany@gmail.com on 3 Nov 2009 at 3:35

GoogleCodeExporter commented 9 years ago

Original comment by andrewa...@gmail.com on 4 Nov 2009 at 2:02

GoogleCodeExporter commented 9 years ago
revision 166 includes a fix for this using us local flavor. I tested it 
manually, but have not written a unit test.

Original comment by andrewa...@gmail.com on 4 Nov 2009 at 4:27