PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.pq-cmc-fda@1.0.0-ballot
    http://hl7.org/fhir/us/pq-cmc-fda/StructureDefinition/supplier-organization
description: A profile for the data elements required to identify an organization that supplies drug products or substances.
package_name: hl7.fhir.us.pq-cmc-fda
derivation: constraint
name: SupplierOrganization
abstract: true
type: Organization
elements:
  meta:
    elements:
      profile: {mustSupport: true, index: 0}
    required: [profile]
  identifier:
    short: Supplier Unique Identifier
    mustSupport: true
    index: 1
    elements:
      type:
        short: Supplier Unique Identifier Type
        binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/pq-cmc-fda/ValueSet/pqcmc-org-identifier-type-terminology'}
        mustSupport: true
        index: 2
      system: {mustSupport: true, index: 3}
      value: {mustSupport: true, index: 4}
    required: [value, system]
    slicing:
      rules: open
      description: Require specific types of identifiers.
      discriminator:
      - {path: system, type: value}
      min: 1
      slices:
        DUNSNumber:
          match: {system: 'urn:oid:1.3.6.1.4.1.519.1'}
          schema:
            constraint:
              org-length9: {human: Identifier number is 9 digits, source: 'http://hl7.org/fhir/us/pq-cmc-fda/StructureDefinition/supplier-organization', severity: error, expression: 'system = ''urn:oid:1.3.6.1.4.1.519.1''  implies value.length() = 9'}
            mustSupport: true
            index: 5
            elements:
              system:
                pattern: {type: Uri, value: 'urn:oid:1.3.6.1.4.1.519.1'}
                index: 6
        FEINumber:
          match: {system: 'urn:oid:2.16.840.1.113883.4.82'}
          schema:
            constraint:
              org-length7: {human: Identifier number is 7 or 10 digits, source: 'http://hl7.org/fhir/us/pq-cmc-fda/StructureDefinition/supplier-organization', severity: error, expression: 'system = ''urn:oid:2.16.840.1.113883.4.82'' implies value.length() = 7 or value.length() = 10'}
            mustSupport: true
            index: 7
            elements:
              system:
                pattern: {type: Uri, value: 'urn:oid:2.16.840.1.113883.4.82'}
                index: 8
  name: {short: Supplier Name, mustSupport: true, index: 9}
  contact:
    mustSupport: true
    index: 10
    elements:
      address: {type: Address, short: Supplier Physical Address, mustSupport: true, index: 11}
    required: [address]
package_version: 1.0.0-ballot
class: profile
kind: resource
url: http://hl7.org/fhir/us/pq-cmc-fda/StructureDefinition/supplier-organization
base: http://hl7.org/fhir/StructureDefinition/Organization
version: 1.0.0-ballot
required: [name, identifier, contact]