datasus 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/bpa.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datasus",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "Library with helpers for datasus",
5
5
  "type": "module",
6
6
  "repository": "blikblum/datasus",
package/src/bpa.js CHANGED
@@ -110,7 +110,7 @@ const getIndividualEntry = (procedure, competence, origin, index) => {
110
110
  `${patient.email || ''}`.padEnd(40, ' ').slice(0, 40),
111
111
  padStartNumber(procedure.nationalId || TEN_BLANKS, 10, '0').slice(0, 10),
112
112
  patient.cpf || ELEVEN_BLANKS,
113
- ' ', // situação de rua
113
+ patient.homeless ? 'S' : 'N', // situação de rua
114
114
  patient.cpf ? 'N' : 'S', // sem CPF
115
115
  ].join('')
116
116