datasus 0.5.2 → 0.5.4
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.
- package/package.json +2 -2
- package/src/bpa.js +1 -1
- package/src/utils.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "datasus",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "Library with helpers for datasus",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "blikblum/datasus",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"sinon": "^9.2.4"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
|
-
"lint": "eslint src test
|
|
27
|
+
"lint": "eslint src test",
|
|
28
28
|
"test": "mocha test/*.spec.js",
|
|
29
29
|
"test:watch": "mocha --watch --parallel test/*.spec.js"
|
|
30
30
|
},
|
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
|
|
package/src/utils.js
CHANGED