{
  "resourceType": "StructureDefinition",
  "id": "pcm-organization-service-provider-create",
  "url": "http://pcm.fhir.health.gov.il/StructureDefinition/pcm-organization-service-provider-create",
  "version": "0.3.2",
  "name": "PCMOrganizationServiceProviderCreate",
  "title": "PCM Service Provider Organization Create Request",
  "status": "active",
  "description": "Closed authorized create request for a Service Provider child after PCM approves Service Provider expansion. The client supplies the requested child name, purpose-coded contact overrides, and ordinary unknown non-modifier extensions. PCM derives the Parent and role and assigns the logical id, business identifier, active state, OAuth redirect projection, and certificate inventory. The accepted name becomes the authoritative child name.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Organization",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Organization",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Organization.id",
        "path": "Organization.id",
        "comment": "FHIR create metadata. If supplied, PCM ignores it and assigns the logical id."
      },
      {
        "id": "Organization.meta.versionId",
        "path": "Organization.meta.versionId",
        "comment": "Server-managed FHIR metadata. Prohibited in client requests.",
        "max": "0"
      },
      {
        "id": "Organization.meta.lastUpdated",
        "path": "Organization.meta.lastUpdated",
        "comment": "Server-managed FHIR metadata. Prohibited in client requests.",
        "max": "0"
      },
      {
        "id": "Organization.meta.source",
        "path": "Organization.meta.source",
        "max": "0"
      },
      {
        "id": "Organization.meta.profile",
        "path": "Organization.meta.profile",
        "comment": "Clients may assert the interaction-specific request profile, but PCM validates the request shape independently and does not require this declaration."
      },
      {
        "id": "Organization.meta.security",
        "path": "Organization.meta.security",
        "max": "0"
      },
      {
        "id": "Organization.meta.tag",
        "path": "Organization.meta.tag",
        "max": "0"
      },
      {
        "id": "Organization.implicitRules",
        "path": "Organization.implicitRules",
        "max": "0"
      },
      {
        "id": "Organization.language",
        "path": "Organization.language",
        "max": "0"
      },
      {
        "id": "Organization.text",
        "path": "Organization.text",
        "max": "0"
      },
      {
        "id": "Organization.contained",
        "path": "Organization.contained",
        "max": "0"
      },
      {
        "id": "Organization.extension",
        "path": "Organization.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Organization.extension:oauth2RedirectUri",
        "path": "Organization.extension",
        "sliceName": "oauth2RedirectUri",
        "comment": "Prohibited on create. PCM populates the returned child from its authoritative OAuth client registration when a primary standalone SMART application has been registered.",
        "min": 0,
        "max": "0",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://pcm.fhir.health.gov.il/StructureDefinition/ext-oauth2-redirect-uri"
            ]
          }
        ]
      },
      {
        "id": "Organization.extension:applicableCertificates",
        "path": "Organization.extension",
        "sliceName": "applicableCertificates",
        "comment": "Prohibited on create. PCM alone populates the authoritative certificate inventory.",
        "min": 0,
        "max": "0",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://pcm.fhir.health.gov.il/StructureDefinition/ext-applicable-certificates"
            ]
          }
        ]
      },
      {
        "id": "Organization.modifierExtension",
        "path": "Organization.modifierExtension",
        "max": "0"
      },
      {
        "id": "Organization.identifier",
        "path": "Organization.identifier",
        "comment": "Prohibited on create. PCM assigns the child Organization business identifier.",
        "max": "0"
      },
      {
        "id": "Organization.active",
        "path": "Organization.active",
        "comment": "Prohibited on create. PCM assigns the initial effective state.",
        "max": "0"
      },
      {
        "id": "Organization.type",
        "path": "Organization.type",
        "comment": "Prohibited on create. This interaction creates only the Service Provider role; attempts to self-assign another role are rejected.",
        "max": "0"
      },
      {
        "id": "Organization.name",
        "path": "Organization.name",
        "comment": "Required requested child name. PCM validates it and stores the accepted value as the authoritative child name.",
        "min": 1
      },
      {
        "id": "Organization.alias",
        "path": "Organization.alias",
        "max": "0"
      },
      {
        "id": "Organization.telecom",
        "path": "Organization.telecom",
        "max": "0"
      },
      {
        "id": "Organization.address",
        "path": "Organization.address",
        "max": "0"
      },
      {
        "id": "Organization.partOf",
        "path": "Organization.partOf",
        "comment": "Prohibited on create. PCM derives the authenticated client's Parent; cross-Parent claims are rejected.",
        "max": "0"
      },
      {
        "id": "Organization.contact",
        "path": "Organization.contact",
        "comment": "Optional purpose-coded child overrides. Any purpose not represented by a child override inherits from the Parent."
      },
      {
        "id": "Organization.contact.modifierExtension",
        "path": "Organization.contact.modifierExtension",
        "max": "0"
      },
      {
        "id": "Organization.contact.purpose",
        "path": "Organization.contact.purpose",
        "min": 1,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://pcm.fhir.health.gov.il/ValueSet/pcm-contactentity-type"
        }
      },
      {
        "id": "Organization.endpoint",
        "path": "Organization.endpoint",
        "max": "0"
      }
    ]
  }
}