/
simple_types.go
307 lines (261 loc) · 7.73 KB
/
simple_types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
package sngpc
//st_classeTerapeutica
type ClasseTerapeutica uint8
var classeTerapeutica = map[ClasseTerapeutica]string{
1: "Antimicrobiano",
2: "Sujeito a Controle Especial",
}
func (s ClasseTerapeutica) String() string {
return classeTerapeutica[s]
}
// st_data
// st_CPF
// st_CNPJ
// st_RazaoSocial
// st_AES
// st_simNao
// st_SimNaoNull
// st_NumeroNotaFiscal
// st_QuantidadeMedicamento
// st_QuantidadeGramasMedicamento
// st_Notificacao
// st_RegistroMS
// st_CodigoDCB
// st_Nome
// st_NumeroDocumento
// st_Lote
// st_QuantidadeInsumo
// st_QuantidadeDeInsumoPorUnidadeFarmacotecnica
// st_QuantidadeDeUnidadesFarmacotecnicas
//st_TipoReceituario
type TipoReceituario uint8
var tipoReceituario = map[TipoReceituario]string{
1: "Receita de Controle Especial em 2 vias (Receita Branca)",
2: "Notificação de Receita B (Notificação Azul",
3: "Notificação de Receita Especial (Notificação Branca)",
4: "Notificação de Receita A (Notificação Amarela)",
5: "Receita Antimicrobiano em 2 vias",
}
func (s TipoReceituario) String() string {
return tipoReceituario[s]
}
//st_TipoUsoMedicamento
type TipoUsoMedicamento uint8
var tipoUsoMedicamento = map[TipoUsoMedicamento]string{
1: "Humano",
2: "Veterinário",
}
func (s TipoUsoMedicamento) String() string {
return tipoUsoMedicamento[s]
}
// st_TipoOperacaoNotaFiscal
type TipoOperacaoNotaFiscal uint8
var tipoOperacaoNotaFiscal = map[TipoOperacaoNotaFiscal]string{
1: "Compra",
2: "Transferência",
3: "Venda",
}
func (s TipoOperacaoNotaFiscal) String() string {
return tipoOperacaoNotaFiscal[s]
}
// st_ConselhoProfissional
type ConselhoProfissional string
var conselhoProfissional = map[ConselhoProfissional]string{
"CRM": "Conselho Regional de Medicida",
"CRMV": "Conselho Regional de Medicina Veterinária",
"CRO": "Conselho Regional de Odontologia",
"CRF": "Conselho Regional de Farmácia",
"RMS": "Programa Mais Medicos - Registro Ministério da Saúde",
}
func (s ConselhoProfissional) String() string {
return conselhoProfissional[s]
}
// st_UF
type UF string
var uf = map[UF]string{
"AC": "Acre",
"AL": "Alagoas",
"AM": "Amazonas",
"AP": "Amapa",
"BA": "Bahia",
"CE": "Ceara",
"DF": "Distrito Federal",
"ES": "Espirito Santo",
"GO": "Goias",
"MA": "Maranhao",
"MG": "Minas Gerais",
"MS": "Mato Grosso do Sul",
"MT": "Mato Grosso",
"PA": "Para",
"PB": "Paraiba",
"PE": "Pernambuco",
"PI": "Piaui",
"PR": "Parana",
"RJ": "Rio de Janeiro",
"RN": "Rio Grande do Norte",
"RO": "Rondonia",
"RR": "Roraima",
"RS": "Rio Grande do Sul",
"SC": "Santa Catarina",
"SE": "Sergipe",
"SP": "Sao Paulo",
"TO": "Tocantins",
}
func (s UF) String() string {
return uf[s]
}
// st_TipoMotivoPerda
type TipoMotivoPerda uint8
var tipoMotivoPerda = map[TipoMotivoPerda]string{
1: "Furto / Roubo",
2: "Avaria",
3: "Vencimento",
4: "Apreensão / Recolhimento pela Visa",
5: "Perda no processo",
6: "Coleta para controle de qualidade",
7: "Perda de exclusão da portaria 344",
8: "Por desvio de qualidade",
9: "Recolhimento do Fabricante",
10: "Devolução ao fornecedor/distribuidora",
}
func (s TipoMotivoPerda) String() string {
return tipoMotivoPerda[s]
}
// st_TipoUnidadeInsumo
type TipoUnidadeInsumo uint8
var tipoUnidadeInsumo = map[TipoUnidadeInsumo]string{
1: "Grama",
2: "Mililitro",
3: "Unidade (U)",
}
func (s TipoUnidadeInsumo) String() string {
return tipoUnidadeInsumo[s]
}
// st_TipoUnidadeFarmacotecnica
type TipoUnidadeFarmacotecnica uint8
var tipoUnidadeFarmacotecnica = map[TipoUnidadeFarmacotecnica]string{
1: "Grama",
2: "Cápsula",
3: "Comprimido",
4: "Mililitro",
}
func (s TipoUnidadeFarmacotecnica) String() string {
return tipoUnidadeFarmacotecnica[s]
}
// st_TipoDocumento
type TipoDocumento uint8
var tipoDocumento = map[TipoDocumento]string{
1: "CARTEIRA DE REGISTRO PROFISSIONAL",
2: "CARTEIRA DE IDENTIDADE",
4: "PEDIDO DE AUTORIZAÇÃO DE TRABALHO",
5: "CERTIDÃO DE NASCIMENTO",
6: "CERTIDÃO DE CASAMENTO",
7: "CERTIFICADO DE RESERVISTA",
8: "CARTA PATENTE",
10: "CERTIFICADO DE DISPENSA DE INCORPORAÇÃO",
11: "CARTEIRA DE IDENTIDADE DO ESTRANGEIRO",
13: "PASSAPORTE",
14: "PROTOCOLO DA POLÍCIA FEDERAL",
19: "INSCRIÇÃO ESTADUAL",
20: "INSCRIÇÃO MUNICIPAL",
21: "ALVARÁ/LICENÇA SANITÁRIA MUNICIPAL",
22: "ALVARA/LICENÇA SANITÁRIA ESTADUAL",
38: "AUTORIZAÇÃO DE FUNCIONAMENTO DE EMPRESA",
39: "AUTORIZAÇÃO ESPECIAL DE FUNCIONAMENTO",
40: "AUTORIZAÇÃO ESPECIAL SIMPLIFICADA",
50: "CARTEIRA DE TRABALHO E PREVIDÊNCIA SOCIAL",
62: "CADASTRO NACIONAL DE PESSOA JURIDICA",
}
func (s TipoDocumento) String() string {
return tipoDocumento[s]
}
// st_OrgaoExpedidor
type OrgaoExpedidor string
var orgaoExpedidor = map[OrgaoExpedidor]string{
"CRA": "CONSELHO REGIONAL DE ADMINISTRAÇÃO",
"CRE": "CONSELHO REGIONAL DE ECONOMIA",
"CREA": "CONSELHO REG.DE ENG. ARQUIT. E AGRONOMIA",
"CRF": "CONSELHO REGIONAL DE FARMÁCIA",
"DGPC": "DIRETORIA GERAL DA POLÍCIA CIVIL",
"DPF": "DEPARTAMENTO DE POLÍCIA FEDERAL",
"IDAMP": "INSTITUTO IDENTIF. AROLDO MENDES PAIVA",
"IFP": "INSTITUTO FÉLIX PACHECO",
"IN": "IMPRENSA NACIONAL",
"JUNTA": "JUNTA",
"MAER": "MINISTÉRIO DA AERONÁUTICA",
"MEX": "MINISTÉRIO DO EXÉRCITO",
"MM": "MINISTÉRIO DA MARINHA",
"OAB": "ORDEM DOS ADVOGADOS DO BRASIL",
"SEJSP": "SECRETARIA DE EST. DA JUSTIÇA E SEG. PUB",
"SES": "SECRETARIA DE ESTADO DA SEGURANÇA",
"SESP": "SECRETARIA DO ESTADO SEG. PÚBLICA",
"SJS": "SECRETARIA DA JUSTIÇA E DA SEGURANÇA",
"SJTC": "SECR. DA JUST. DO TRAB. E DA CIDADANIA",
"SSIPT": "SECR. DE SEG. E INFORM. POLÍCIA TÉCNICA",
"SSP": "SECRETARIA DE SEGURANÇA PÚBLICA",
"VACIV": "VARA CIVIL",
"VAMEN": "VARA DE MENORES",
"PM": "POLICIA MILITAR",
"ITB": "INSTITUTO TAVARES BURIL",
"CRM": "CONSELHO REGIONAL DE MEDICINA",
"CBM": "CORPO DE BOMBEIROS MILITAR",
"DIC": "DETRAN - DIRETORIA DE IDENTIFICAÇÃO CIVIL",
"CFP": "CONSELHO FEDERAL DE PSICOLOGIA",
"CRO": "CONSELHO REGIONAL DE ODONTOLOGIA",
"COREN": "CONSELHO REGIONAL DE ENFERMARIA",
"CFN": "CONSELHO FEDERAL DE NUTRICIONISTAS",
"MRE": "MINISTÉRIO DAS RELAÇÕES EXTERIORES",
"CRCI": "CONSELHO REG. DE CORRETORES DE IMÓVEIS",
"CRB": "CONSELHO REGIONAL DE BIOLOGIA",
"CRN": "CONSELHO REGIONAL DE NUTRIÇÃO",
"CFE": "CONSELHO FEDERAL DE ENFERMAGEM",
"CRC": "CONSELHO REGIONAL DE CONTABILIDADE",
"CRP": "CONSELHO REGIONAL DE PSICOLOGIA",
"CRQ": "CONSELHO REGIONAL DE QUIMICA",
"ANVISA": "AGÊNCIA NACIONAL DE VIGILÂNCIA SANITÁRIA",
"GOVEST": "GOVERNO DO ESTADO",
"PREF": "PREFEITURA",
"CRBM": "CONSELHO REGIONAL DE BIOMEDICINA",
"IPF": "INSTITUTO PEREIRA FAUSTINO",
"CREFITO": "CONSELHO REGIONAL DE FISIOTERAPIA E TERAPIA OCUPACIONAL",
"CRMV": "CONSELHO REGIONAL DE MEDICINA VETERINÁRIA",
"MTE": "MINISTÉRIO DO TRABALHO E EMPREGO",
"CRFA": "CONSELHO REGIONAL DE FONOAUDIOLOGIA",
"CORECON": "CONSELHO REGIONAL DE ECONOMIA",
"SDS": "SECRETARIA DE DESENVOLVIMENTO SOCIAL",
"SRF": "SECRETARIA DA RECEITA FEDERAL",
}
func (s OrgaoExpedidor) String() string {
return orgaoExpedidor[s]
}
// st_DescricaoValidacao
// st_Idade
type Idade uint8
// st_UnidadeIdade
type UnidadeIdade uint8
var unidadeIdade = map[UnidadeIdade]string{
1: "Anos",
2: "Meses",
}
func (s UnidadeIdade) String() string {
return unidadeIdade[s]
}
// st_Sexo
type Sexo uint8
var sexo = map[Sexo]string{
1: "Masculino",
2: "Feminino",
}
func (s Sexo) String() string {
return sexo[s]
}
// st_Cid
// st_UnidadeMedidaMedicamento
type UnidadeMedidaMedicamento uint8
var unidadeMedidaMedicamento = map[UnidadeMedidaMedicamento]string{
1: "Caixas",
2: "Frascos",
}
func (s UnidadeMedidaMedicamento) String() string {
return unidadeMedidaMedicamento[s]
}