{
  "resourceType": "StructureDefinition",
  "id": "OrganizationAffiliation",
  "meta": {
    "lastUpdated": "2021-01-01T21:58:31.578+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Base.Entities"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "trial-use"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 0
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "business"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "pa"
    },
    {
      "url": "http://hl7.org/fhir/build/StructureDefinition/entered-in-error-status",
      "valueCode": ".active = false"
    }
  ],
  "url": "http://hl7.org/fhir/StructureDefinition/OrganizationAffiliation",
  "version": "4.6.0",
  "name": "OrganizationAffiliation",
  "status": "draft",
  "date": "2021-01-01T21:58:31+00:00",
  "publisher": "Health Level Seven International (Patient Administration)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org/fhir"
        }
      ]
    },
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/pafm/index.cfm"
        }
      ]
    }
  ],
  "description": "Defines an affiliation/assotiation/relationship between 2 distinct organizations, that is not a part-of relationship/sub-division relationship.",
  "purpose": "Need to define relationships between organizations that are not sub-divisions of the same organization (part-of relationships).",
  "fhirVersion": "4.6.0",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "OrganizationAffiliation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
  "derivation": "specialization",
  "differential": {
    "element": [
      {
        "id": "OrganizationAffiliation",
        "extension": [
          {
            "url": "http://hl7.org/fhir/build/StructureDefinition/svg",
            "valueCode": "0,0"
          }
        ],
        "path": "OrganizationAffiliation",
        "short": "Defines an affiliation/assotiation/relationship between 2 distinct organizations, that is not a part-of relationship/sub-division relationship",
        "definition": "Defines an affiliation/assotiation/relationship between 2 distinct organizations, that is not a part-of relationship/sub-division relationship.",
        "min": 0,
        "max": "*",
        "mapping": [
          {
            "identity": "rim",
            "map": "Role"
          },
          {
            "identity": "w5",
            "map": "administrative.individual"
          }
        ]
      },
      {
        "id": "OrganizationAffiliation.identifier",
        "path": "OrganizationAffiliation.identifier",
        "short": "Business identifiers that are specific to this role",
        "definition": "Business identifiers that are specific to this role.",
        "requirements": "Often, specific identities are assigned for the agent.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.identifier"
          },
          {
            "identity": "rim",
            "map": ".id"
          }
        ]
      },
      {
        "id": "OrganizationAffiliation.active",
        "path": "OrganizationAffiliation.active",
        "short": "Whether this organization affiliation record is in active use",
        "definition": "Whether this organization affiliation record is in active use.",
        "comment": "If this value is false, you may refer to the period to see when the role was in active use. If there is no period specified, no inference can be made about when it was active.",
        "requirements": "Need to be able to mark an organization affiliation record as not to be used because it was created in error, or otherwise no longer in active use.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
        "isSummary": true,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.status"
          },
          {
            "identity": "rim",
            "map": ".statusCode"
          }
        ]
      },
      {
        "id": "OrganizationAffiliation.period",
        "extension": [
          {
            "url": "http://hl7.org/fhir/build/StructureDefinition/committee-notes",
            "valueString": "Is this separate from the period of validity of the qualification?"
          }
        ],
        "path": "OrganizationAffiliation.period",
        "short": "The period during which the participatingOrganization is affiliated with the primary organization",
        "definition": "The period during which the participatingOrganization is affiliated with the primary organization.",
        "requirements": "An affiliation may be created ahead of time and only be active for a defined period of time. Once the affiliation is complete, the fact that it existed may still be required.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.done[x]"
          },
          {
            "identity": "rim",
            "map": ".performance[@typeCode <= 'PPRF'].ActDefinitionOrEvent.effectiveTime"
          }
        ]
      },
      {
        "id": "OrganizationAffiliation.organization",
        "path": "OrganizationAffiliation.organization",
        "short": "Organization where the role is available",
        "definition": "Organization where the role is available (primary organization/has members).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".scoper"
          }
        ]
      },
      {
        "id": "OrganizationAffiliation.participatingOrganization",
        "path": "OrganizationAffiliation.participatingOrganization",
        "short": "Organization that provides/performs the role (e.g. providing services or is a member of)",
        "definition": "The Participating Organization provides/performs the role(s) defined by the code to the Primary Organization (e.g. providing services or is a member of).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".player"
          }
        ]
      },
      {
        "id": "OrganizationAffiliation.network",
        "path": "OrganizationAffiliation.network",
        "short": "Health insurance provider network in which the participatingOrganization provides the role's services (if defined) at the indicated locations (if defined)",
        "definition": "Health insurance provider network in which the participatingOrganization provides the role's services (if defined) at the indicated locations (if defined).",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ],
        "isSummary": true
      },
      {
        "id": "OrganizationAffiliation.code",
        "path": "OrganizationAffiliation.code",
        "short": "Definition of the role the participatingOrganization plays",
        "definition": "Definition of the role the participatingOrganization plays in the association.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "OrganizationAffiliation"
            }
          ],
          "strength": "example",
          "description": "The role the participating organization providing services to the primary organization.",
          "valueSet": "http://hl7.org/fhir/ValueSet/organization-role"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".code"
          }
        ]
      },
      {
        "id": "OrganizationAffiliation.specialty",
        "path": "OrganizationAffiliation.specialty",
        "short": "Specific specialty of the participatingOrganization in the context of the role",
        "definition": "Specific specialty of the participatingOrganization in the context of the role.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "OrganizationSpecialty"
            }
          ],
          "strength": "preferred",
          "description": "Specific specialty associated with the participating organization.",
          "valueSet": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".player.HealthCareProvider[@classCode = 'PROV'].code"
          }
        ]
      },
      {
        "id": "OrganizationAffiliation.location",
        "path": "OrganizationAffiliation.location",
        "short": "The location(s) at which the role occurs",
        "definition": "The location(s) at which the role occurs.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Location"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.where[x]"
          },
          {
            "identity": "rim",
            "map": ".performance.ActDefinitionOrEvent.ServiceDeliveryLocation[@classCode = 'SDLOC']"
          }
        ]
      },
      {
        "id": "OrganizationAffiliation.healthcareService",
        "path": "OrganizationAffiliation.healthcareService",
        "short": "Healthcare services provided through the role",
        "definition": "Healthcare services provided through the role.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/HealthcareService"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".player.QualifiedEntity[@classCode = 'QUAL'].code"
          }
        ]
      },
      {
        "id": "OrganizationAffiliation.telecom",
        "path": "OrganizationAffiliation.telecom",
        "short": "Contact details at the participatingOrganization relevant to this Affiliation",
        "definition": "Contact details at the participatingOrganization relevant to this Affiliation.",
        "requirements": "Sometimes a participating organization provides dedicated contacts to handle enquiries specifically for the role provided to the affiliated organization.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "ContactPoint"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".telecom"
          }
        ]
      },
      {
        "id": "OrganizationAffiliation.endpoint",
        "path": "OrganizationAffiliation.endpoint",
        "short": "Technical endpoints providing access to services operated for this role",
        "definition": "Technical endpoints providing access to services operated for this role.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Endpoint"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      }
    ]
  }
}