---
title: "Facade Organization"
canonical: "https://wiki.patientsknowbest.com/space/api/3365077409/Facade%20Organization"
format: markdown
---
[http://fhir.patientsknowbest.com/structuredefinition/facade-organization](http://fhir.patientsknowbest.com/structuredefinition/facade-organization)

[https://www.hl7.org/fhir/STU3/organization.html](https://www.hl7.org/fhir/STU3/organization.html)

## Overview

PKB supports 2 types of organisation:

- [[Organisation]]
- [[Team]]

Both of these are considered to be Organizations in FHIR®.

There will be no attribute explicitly indicating whether an Organization resource is an [[Organisation]] or a [[Team]], but a [[Team]] will have a partOf attribute pointing to the [[Organisation]] it belongs to.

## Relevant PKB entities

- [[[Organisation]]](https://pkbdev.atlassian.net/wiki/spaces/api/pages/3363700789/Data+Model#Organisation-%26-Users)
- [[[Team]]](https://pkbdev.atlassian.net/wiki/spaces/api/pages/3363700789/Data+Model#Organisation-%26-Users)

## Mappings

| **FHIR** | **PKB** | **Notes** |
| --- | --- | --- |
| Resource id | <conditional>   
If this FHIR Organization represents a PKB [[Organisation]]:  [[Organisation.Public ID]]   
Else if this FHIR Organization represents a PKB [[Team]]:  [[Team.Public ID]] |  |
| Organization.name | <conditional>   
If this FHIR Organization represents a PKB [[Organisation]]:  [[Organisation.Name]]   
Else if this FHIR Organization represents a PKB [[Team]]:  [[Team.Name]] |  |
| Organization.partOf | <conditional>   
If this FHIR Organization represents a PKB [[Team]]:  return a reference to the owning PKB [[Organisation]]<br>- partOf: Reference
  - reference = the relative URL of the Organization resource.
  - display = [[Organisation.Name]]<br>Else:  omit the partOf element |  |