---
title: Funeral
slug: oip-next/irm-funeral
icon: {"lucideIcon":"📘"}
createdAt: 2025-10-08T13:09:45.000Z
---

# Funeral

## Description

L'entité Funeral porte le recueil des informations relatives aux besoins et aux options/configurations pour les obsèques.

## Relations

### Ascendantes

| Entité        | Propriété |
| ------------- | --------- |
| OSCommonProps | funerals  |
| Project       | funerals  |

### Descendantes

| Entité  | Propriété |
| ------- | --------- |
| History | history   |

## Propriétés

| Nom             | Type     | Description                                                                       | Validateur | Lecture seule ? | Dépréciée ? | Dernière version modifiée |
| --------------- | -------- | --------------------------------------------------------------------------------- | ---------- | --------------- | ----------- | ------------------------- |
| coffinSymbol    | `String` | Symbole ou emblème du cercueil.                                                   |            |                 |             | 3.19.0                    |
| planner         | `String` | Indique la personne en charge de l'organisation des obsèques.                     |            |                 |             | 3.19.0                    |
| protectionGoals | `String` | Objectifs de prévoyance obsèques pour le client (ex. : prestation ou capital).    |            |                 |             | 3.19.0                    |
| typeBurial      | `String` | Type d'inhumation.                                                                |            |                 |             | 3.19.0                    |
| typeCeremony    | `String` | Type de cérémonie souhaitée.                                                      |            |                 |             | 3.19.0                    |
| typeCremation   | `String` | Type de crémation.                                                                |            |                 |             | 3.19.0                    |
| typeFuneral     | `String` | Type d'obsèques (ex. : inhumation ou crémation).                                  |            |                 |             | 3.19.0                    |
| id              | `String` | Identifiant de l'entité `Funeral`                                                 |            | X               |             |                           |
| code            | `String` | Codification fonctionnelle de l'entité `Funeral`                                  |            |                 |             |                           |
| externalId      | `String` | Identifiant de l'entité `Funeral` dans le système client                          |            |                 |             |                           |
| externalCode    | `String` | Codification fonctionnelle de l'entité `Funeral` dans le système client           |            |                 |             |                           |
| funeralId       | `String` | Identifiant public de l'entité `Funeral` dans l'OIP                               |            |                 |             |                           |
| label           | `String` | Information relative au nom de l'entité `Funeral` dans son contexte d'utilisation |            |                 |             |                           |
| createdAt       | `Date`   | Date de création de l'entité `Funeral`                                            |            | X               |             |                           |
| createdBy       | `String` | Responsable de la création de l'entité `Funeral`                                  |            |                 |             |                           |
| updatedAt       | `Date`   | Date de modification de l'entité `Funeral`                                        |            | X               |             |                           |
| updatedBy       | `String` | Responsable de la dernière mise à jour de l'entité `Funeral`                      |            |                 |             |                           |

## Enumérations

Aucune enumération.

## Enumérations génériques

Aucune enumération générique.

## Exemple

```javascript
import { Entities } from '@fasstech/oip-core';
import { getCompanyId } from '@fasstech/oip-core/entities/Company';
import { getFuneralCode, getFuneralCoffinSymbol, getFuneralCreatedBy, getFuneralExternalCode, getFuneralExternalId, getFuneralFuneralId, getFuneralId, getFuneralLabel, getFuneralPlanner, getFuneralProtectionGoals, getFuneralTypeBurial, getFuneralTypeCeremony, getFuneralTypeCremation, getFuneralTypeFuneral, getFuneralUpdatedBy, setFuneralCode, setFuneralCoffinSymbol, setFuneralCreatedBy, setFuneralExternalCode, setFuneralExternalId, setFuneralFuneralId, setFuneralLabel, setFuneralPlanner, setFuneralProtectionGoals, setFuneralTypeBurial, setFuneralTypeCeremony, setFuneralTypeCremation, setFuneralTypeFuneral, setFuneralUpdatedBy } from '@fasstech/oip-core/entities/Funeral';
import { getOSCommonPropsId } from '@fasstech/oip-core/entities/OSCommonProps';
import { getOfferNodeId } from '@fasstech/oip-core/entities/OfferNode';
import { getProjectId } from '@fasstech/oip-core/entities/Project';

(async () => {
  let project = await Entities('Project').create();
  let company = await Entities('Company').create();
  let offerNode = await Entities('OfferNode').create();
  let oSCommonProps = await Entities('OSCommonProps').create();
  const funeral = await Entities('Funeral').create();
  
  setFuneralCoffinSymbol('coffinSymbol', funeral);
  setFuneralPlanner('planner', funeral);
  setFuneralProtectionGoals('protectionGoals', funeral);
  setFuneralTypeBurial('typeBurial', funeral);
  setFuneralTypeCeremony('typeCeremony', funeral);
  setFuneralTypeCremation('typeCremation', funeral);
  setFuneralTypeFuneral('typeFuneral', funeral);
  setFuneralCode('code', funeral);
  setFuneralExternalId('externalId', funeral);
  setFuneralExternalCode('externalCode', funeral);
  setFuneralFuneralId('funeralId', funeral);
  setFuneralLabel('label', funeral);
  setFuneralCreatedBy('createdBy', funeral);
  setFuneralUpdatedBy('updatedBy', funeral);
  
  oSCommonProps = await Entities('Funeral').save(oSCommonProps, funeral);
  offerNode = await Entities('OSCommonProps').save(offerNode, oSCommonProps);
  company = await Entities('OfferNode').save(company, offerNode);
  project = await Entities('Company').save(project, company);
  await Entities('Project').save(project);
  
  const projectToTest = await Entities('Project').get({ id: getProjectId(project) });
  const companyToTest = await Entities('Company').get(projectToTest, { filter: ({ id }) => id === getCompanyId(company) });
  const offerNodeToTest = await Entities('OfferNode').get(companyToTest, { filter: ({ id }) => id === getOfferNodeId(offerNode) });
  const oSCommonPropsToTest = await Entities('OSCommonProps').get(offerNodeToTest, { filter: ({ id }) => id === getOSCommonPropsId(oSCommonProps) });
  const funeralToTest = await Entities('Funeral').get(oSCommonPropsToTest, { filter: ({ id }) => id === getFuneralId(funeral) });
  
  getFuneralCoffinSymbol(funeralToTest); // 'coffinSymbol'
  getFuneralPlanner(funeralToTest); // 'planner'
  getFuneralProtectionGoals(funeralToTest); // 'protectionGoals'
  getFuneralTypeBurial(funeralToTest); // 'typeBurial'
  getFuneralTypeCeremony(funeralToTest); // 'typeCeremony'
  getFuneralTypeCremation(funeralToTest); // 'typeCremation'
  getFuneralTypeFuneral(funeralToTest); // 'typeFuneral'
  getFuneralCode(funeralToTest); // 'code'
  getFuneralExternalId(funeralToTest); // 'externalId'
  getFuneralExternalCode(funeralToTest); // 'externalCode'
  getFuneralFuneralId(funeralToTest); // 'funeralId'
  getFuneralLabel(funeralToTest); // 'label'
  getFuneralCreatedBy(funeralToTest); // 'createdBy'
  getFuneralUpdatedBy(funeralToTest); // 'updatedBy'
})();
```
