models

Alimento

Alimento cadastrado para uso em protocolos padrão de dieta especial, com tipo (edital ou próprio), marca e forma de listagem no protocolo.

class Alimento(id, nome, ativo, uuid, tipo, marca, outras_informacoes, tipo_listagem_protocolo)[source]

Bases: Nomeavel, TemChaveExterna, Ativavel

AMBOS = 'AMBOS'
exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

exception NotUpdated

Bases: ObjectNotUpdated, DatabaseError

SO_ALIMENTOS = 'SO_ALIMENTOS'
SO_SUBSTITUTOS = 'SO_SUBSTITUTOS'
TIPO_CHOICES = (('E', 'Edital'), ('P', 'Proprio'))
TIPO_LISTAGEM_PROTOCOLO = (('SO_ALIMENTOS', 'Aparece somente na listagem de alimentos'), ('SO_SUBSTITUTOS', 'Aparece somente na listagem de alimentos substitutos'), ('AMBOS', 'Aparece nas listagem de alimentos e substitutos'))
alimentos_substitutos

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

alimentos_substitutos_protocolo_padrao

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

alimentosubstituto_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_reverse_many_to_one_manager() defined below.

ativo

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

get_tipo_display(*, field=<django.db.models.fields.CharField: tipo>)
get_tipo_listagem_protocolo_display(*, field=<django.db.models.fields.CharField: tipo_listagem_protocolo>)
id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

marca

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

marca_id
nome

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
outras_informacoes

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

substituicaoalimento_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_reverse_many_to_one_manager() defined below.

substituicaoalimentoprotocolopadrao_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_reverse_many_to_one_manager() defined below.

tipo

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

tipo_listagem_protocolo

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

uuid

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

SubstituicaoAlimento

Substituição de alimento associada a uma solicitação de dieta especial, indicando alimentos isentos ou a substituir por produtos/alimentos substitutos.

class SubstituicaoAlimento(id, solicitacao_dieta_especial, alimento, tipo)[source]

Bases: Model

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

exception NotUpdated

Bases: ObjectNotUpdated, DatabaseError

TIPO_CHOICES = [('I', 'Isento'), ('S', 'Substituir')]
alimento

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

alimento_id
alimentos_substitutos

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

get_tipo_display(*, field=<django.db.models.fields.CharField: tipo>)
id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
solicitacao_dieta_especial

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

solicitacao_dieta_especial_id
substitutos

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

tipo

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

AlimentoSubstituto

Vínculo (through) entre uma substituição de alimento de protocolo padrão e o alimento substituto.

class AlimentoSubstituto(id, substituicao_alimento_protocolo_padrao, alimento)[source]

Bases: Model

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

exception NotUpdated

Bases: ObjectNotUpdated, DatabaseError

alimento

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

alimento_id
id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
substituicao_alimento_protocolo_padrao

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

substituicao_alimento_protocolo_padrao_id

ProtocoloPadraoDietaEspecial

Protocolo padrão de dieta especial. Padroniza orientações gerais, status de liberação, editais vinculados e histórico de alterações para as dietas.

class ProtocoloPadraoDietaEspecial(id, ativo, criado_em, uuid, criado_por, nome_protocolo, orientacoes_gerais, status, outras_informacoes, historico)[source]

Bases: TemChaveExterna, CriadoEm, CriadoPor, TemIdentificadorExternoAmigavel, Ativavel

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

exception NotUpdated

Bases: ObjectNotUpdated, DatabaseError

STATUS_CHOICES = (('LIBERADO', 'Liberado'), ('NAO_LIBERADO', 'Não Liberado'))
STATUS_LIBERADO = 'LIBERADO'
STATUS_NAO_LIBERADO = 'NAO_LIBERADO'
STATUS_NOMES = {'LIBERADO': 'Liberado', 'NAO_LIBERADO': 'Não Liberado'}
ativo

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

criado_em

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

criado_por

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

criado_por_id
editais

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

get_next_by_criado_em(*, field=<django.db.models.fields.DateTimeField: criado_em>, is_next=True, **kwargs)
get_previous_by_criado_em(*, field=<django.db.models.fields.DateTimeField: criado_em>, is_next=False, **kwargs)
get_status_display(*, field=<django.db.models.fields.CharField: status>)
historico

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

history

Accessor to the related objects manager on the one-to-many relation created by GenericRelation.

In the example:

class Post(Model):
    comments = GenericRelation(Comment)

post.comments is a ReverseGenericManyToOneDescriptor instance.

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

nome_protocolo

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
orientacoes_gerais

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

outras_informacoes

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

solicitacoes_dietas_especiais

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_reverse_many_to_one_manager() defined below.

status

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

substituicoes

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_reverse_many_to_one_manager() defined below.

uuid

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

SubstituicaoAlimentoProtocoloPadrao

Substituição de alimento definida em um protocolo padrão de dieta especial.

class SubstituicaoAlimentoProtocoloPadrao(id, protocolo_padrao, alimento, tipo)[source]

Bases: Model

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

exception NotUpdated

Bases: ObjectNotUpdated, DatabaseError

TIPO_CHOICES = [('I', 'Isento'), ('S', 'Substituir')]
alimento

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

alimento_id
alimentos_substitutos

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

alimentosubstituto_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_reverse_many_to_one_manager() defined below.

get_tipo_display(*, field=<django.db.models.fields.CharField: tipo>)
history

Accessor to the related objects manager on the one-to-many relation created by GenericRelation.

In the example:

class Post(Model):
    comments = GenericRelation(Comment)

post.comments is a ReverseGenericManyToOneDescriptor instance.

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
protocolo_padrao

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

protocolo_padrao_id
substitutos

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

tipo

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.