description: The US Core Organization Profile inherits from the FHIR [Organization](https://hl7.org/fhir/R4/organization.html) resource; refer to it for scope and usage definitions. This profile sets minimum expectations for the Organization resource to record, search, and fetch patient or provider organziation information. It specifies which core elements, extensions, vocabularies, and value sets **SHALL** be present and constrains how the elements are used. Providing the floor for standards development for specific use cases promotes interoperability and adoption. package_name: hl7.fhir.us.core derivation: constraint name: USCoreOrganizationProfile type: Organization elements: identifier: mustSupport: true index: 0 elements: system: {type: uri, mustSupport: true, index: 1} value: {type: string, mustSupport: true, index: 2} slicing: rules: open discriminator: - {path: $this, type: value} min: null slices: NPI: match: {system: 'http://hl7.org/fhir/sid/us-npi'} schema: short: National Provider Identifier (NPI) constraint: us-core-16: {human: NPI must be 10 digits, severity: error, expression: 'value.matches(''^[0-9]{10}$'')'} us-core-17: {human: NPI check digit must be valid (Luhn algorithm check), severity: error, expression: '(((select(value.substring(0,1).toInteger()).select(iif($this<5, $this*2, (($this*2)-9))))+(value.substring(1,1).toInteger())+(select(value.substring(2,1).toInteger()).select(iif($this<5, $this*2, (($this*2)-9))))+(value.substring(3,1).toInteger())+(select(value.substring(4,1).toInteger()).select(iif($this<5, $this*2, (($this*2)-9))))+(value.substring(5,1).toInteger())+(select(value.substring(6,1).toInteger()).select(iif($this<5, $this*2, (($this*2)-9))))+(value.substring(7,1).toInteger())+(select(value.substring(8,1).toInteger()).select(iif($this<5, $this*2, (($this*2)-9))))+(value.substring(9,1).toInteger()) + 24)mod 10=0)'} mustSupport: true pattern: type: Identifier value: {system: 'http://hl7.org/fhir/sid/us-npi'} index: 3 CLIA: match: {system: 'urn:oid:2.16.840.1.113883.4.7'} schema: short: Clinical Laboratory Improvement Amendments (CLIA) Number for laboratories constraint: us-core-18: {human: CLIA number must be 10 digits with a letter "D" in third position, severity: error, expression: 'value.matches(''^[0-9]{2}D[0-9]{7}$'')'} mustSupport: false pattern: type: Identifier value: {system: 'urn:oid:2.16.840.1.113883.4.7'} index: 4 NAIC: match: {system: 'urn:oid:2.16.840.1.113883.6.300'} schema: constraint: us-core-19: {human: NAIC must be 5 digits, severity: error, expression: 'value.matches(''^[0-9]{5}$'')'} short: NAIC Code mustSupport: false pattern: type: Identifier value: {system: 'urn:oid:2.16.840.1.113883.6.300'} index: 5 active: {mustSupport: true, index: 6} name: {mustSupport: true, index: 7} telecom: mustSupport: true index: 8 elements: system: {mustSupport: true, index: 9} value: {mustSupport: true, index: 10} address: mustSupport: true index: 11 elements: line: {type: string, mustSupport: true, array: true, max: 4, index: 12} city: {type: string, mustSupport: true, index: 13} state: type: string binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/us/core/ValueSet/us-core-usps-state'} mustSupport: true index: 14 postalCode: {type: string, short: US Zip Codes, mustSupport: true, index: 15} country: {type: string, mustSupport: true, index: 16} package_version: 8.0.0-ballot class: profile kind: resource url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization base: http://hl7.org/fhir/StructureDefinition/Organization version: 8.0.0-ballot required: [name, active]