> For the complete documentation index, see [llms.txt](https://icure.gitbook.io/icure/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://icure.gitbook.io/icure/icure-data-stack/icure-data-model/contact/subcontact.md).

# SubContact

This entity represents a sub-contact. It is serialized in JSON and saved in the underlying icure-contact CouchDB database.

## Properties

| Property            | Type                                                                                                                            | Description                                                                                                                                                                                                                                                                                                                                                                                   |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id`                | [String](https://github.com/icure-io/icure-tech-docs/blob/master/icure-data-stack/icure-data-model/contact/String/README.md)    | The Id of the sub-contact. We encourage using either a v4 UUID or a HL7 Id.                                                                                                                                                                                                                                                                                                                   |
| `created`           | [Long](https://github.com/icure-io/icure-tech-docs/blob/master/icure-data-stack/icure-data-model/contact/Long/README.md)        | The timestamp (unix epoch in ms) of creation of this entity, will be filled automatically if missing. Not enforced by the application server. format: int64.                                                                                                                                                                                                                                  |
| `modified`          | [Long](https://github.com/icure-io/icure-tech-docs/blob/master/icure-data-stack/icure-data-model/contact/Long/README.md)        | The date (unix epoch in ms) of the latest modification of this entity, will be filled automatically if missing. Not enforced by the application server. format: int64.                                                                                                                                                                                                                        |
| `author`            | [String](https://github.com/icure-io/icure-tech-docs/blob/master/icure-data-stack/icure-data-model/contact/String/README.md)    | The id of the User that has created this entity, will be filled automatically if missing. Not enforced by the application server.                                                                                                                                                                                                                                                             |
| `responsible`       | [String](https://github.com/icure-io/icure-tech-docs/blob/master/icure-data-stack/icure-data-model/contact/String/README.md)    | The id of the HealthcareParty that is responsible for this entity, will be filled automatically if missing. Not enforced by the application server.                                                                                                                                                                                                                                           |
| `medicalLocationId` | [String](https://github.com/icure-io/icure-tech-docs/blob/master/icure-data-stack/icure-data-model/contact/String/README.md)    | The id of the medical location where this entity was created.                                                                                                                                                                                                                                                                                                                                 |
| `tags *`            | [List](https://github.com/icure-io/icure-tech-docs/blob/master/icure-data-stack/icure-data-model/contact/CodeStub/README.md)    | A tag is an item from a codification system that qualifies an entity as being member of a certain class, whatever the value it might have taken. If the tag qualifies the content of a field, it means that whatever the content of the field, the tag will always apply. For example, the label of a field is qualified using a tag. LOINC is a codification system typically used for tags. |
| `codes *`           | [List](https://github.com/icure-io/icure-tech-docs/blob/master/icure-data-stack/icure-data-model/contact/CodeStub/README.md)    | A code is an item from a codification system that qualifies the content of this entity. SNOMED-CT, ICPC-2 or ICD-10 codifications systems can be used for codes                                                                                                                                                                                                                               |
| `endOfLife`         | [Long](https://github.com/icure-io/icure-tech-docs/blob/master/icure-data-stack/icure-data-model/contact/Long/README.md)        | Soft delete (unix epoch in ms) timestamp of the object. format: int64.                                                                                                                                                                                                                                                                                                                        |
| `descr`             | [String](https://github.com/icure-io/icure-tech-docs/blob/master/icure-data-stack/icure-data-model/contact/String/README.md)    | Description of the sub-contact                                                                                                                                                                                                                                                                                                                                                                |
| `protocol`          | [String](https://github.com/icure-io/icure-tech-docs/blob/master/icure-data-stack/icure-data-model/contact/String/README.md)    | Protocol based on which the sub-contact was used for linking services to structuring elements                                                                                                                                                                                                                                                                                                 |
| `status`            | [Integer](https://github.com/icure-io/icure-tech-docs/blob/master/icure-data-stack/icure-data-model/contact/Integer/README.md)  | format: int32.                                                                                                                                                                                                                                                                                                                                                                                |
| `formId`            | [String](https://github.com/icure-io/icure-tech-docs/blob/master/icure-data-stack/icure-data-model/contact/String/README.md)    | Id of the form used in the sub-contact. Several sub-contacts with the same form ID can coexist as long as they are in different contacts or they relate to a different planOfActionID                                                                                                                                                                                                         |
| `planOfActionId`    | [String](https://github.com/icure-io/icure-tech-docs/blob/master/icure-data-stack/icure-data-model/contact/String/README.md)    | Id of the plan of action (healthcare approach) that is linked by the sub-contact to a service.                                                                                                                                                                                                                                                                                                |
| `healthElementId`   | [String](https://github.com/icure-io/icure-tech-docs/blob/master/icure-data-stack/icure-data-model/contact/String/README.md)    | Id of the healthcare element that is linked by the sub-contact to a service                                                                                                                                                                                                                                                                                                                   |
| `classificationId`  | [String](https://github.com/icure-io/icure-tech-docs/blob/master/icure-data-stack/icure-data-model/contact/String/README.md)    |                                                                                                                                                                                                                                                                                                                                                                                               |
| `services *`        | [List](https://github.com/icure-io/icure-tech-docs/blob/master/icure-data-stack/icure-data-model/contact/ServiceLink/README.md) | List of all services provided to the patient under a given contact which is linked by this sub-contact to other structuring elements.                                                                                                                                                                                                                                                         |
| `encryptedSelf`     | [String](https://github.com/icure-io/icure-tech-docs/blob/master/icure-data-stack/icure-data-model/contact/String/README.md)    | The base64 encoded data of this object, formatted as JSON and encrypted in AES using the random master key from encryptionKeys.                                                                                                                                                                                                                                                               |
