### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/OrganizationAffiliation.json
### ----------------------------------------------------
### -- Chunk 4 of 4
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" : "*",
      "base" : {
        "path" : "OrganizationAffiliation.telecom",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "ContactPoint"
      }],
      "isModifier" : false,
      "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" : "*",
      "base" : {
        "path" : "OrganizationAffiliation.endpoint",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Endpoint"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    }]
  },
  "differential" : {
    "element" : [{
      "id" : "OrganizationAffiliation",
      "path" : "OrganizationAffiliation",
      "short" : "Defines an affiliation/assotiation/relationship between 2 distinct oganizations, that is not a part-of relationship/sub-division relationship",
      "definition" : "Defines an affiliation/assotiation/relationship between 2 distinct oganizations, that is not a part-of relationship/sub-division relationship.",
      "min" : 0,
      "max" : "*",
      "mapping" : [{
        "identity" : "rim",
        "map" : "Role"
      }]
    },
    {
      "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",
      "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"
      }]
    }]
  }
}


