description: Describes address specific metadata about the address resources available from the the central person index (folkeregisteret, freg), all address resources containing metadata from folkeregisteret will include gd-address-metadata package_name: ehelse.fhir.no.grunndata.test derivation: constraint name: GdAddressMetadata type: Extension elements: extension: index: 0 slicing: rules: open discriminator: - {path: url, type: value} min: null slices: closeCadastralIdentifier: match: {url: closeCadastralIdentifier} schema: short: nærAdresseidentifikatorFraMatrikkelen index: 16 elements: url: pattern: {type: Uri, value: closeCadastralIdentifier} index: 17 value: choices: [valueString] index: 19 valueString: {type: string, choiceOf: value, index: 20} addressIsUnknown: match: {url: addressIsUnknown} schema: short: AdressenErUkjent constraint: addressType-1: {human: addressIsUnknown must have fregAddressType of AdressenErUkjent, source: Extension, severity: error, expression: addressIsUnknown.value() and (fregAddressContentType.Value()=AdressenErUkjent)} index: 51 elements: url: pattern: {type: Uri, value: addressIsUnknown} index: 52 value: choices: [valueBoolean] index: 54 valueBoolean: {type: boolean, choiceOf: value, index: 55} fregAddressType: match: {url: fregAddressType} schema: short: address types provided by FREG binding: {strength: required, valueSet: 'http://ehelse.no/fhir/ValueSet/gd-address-type'} index: 31 elements: url: pattern: {type: Uri, value: fregAddressType} index: 32 value: choices: [valueCode] index: 34 valueCode: {type: code, choiceOf: value, index: 35} constituencyId: match: {url: constituencyId} schema: short: stemmekrets index: 21 elements: url: pattern: {type: Uri, value: constituencyId} index: 22 value: choices: [valueInteger] index: 24 valueInteger: {type: integer, choiceOf: value, index: 25} cadastralIdentifier: match: {url: cadastralIdentifier} schema: short: adresseidentifikatorFraMatrikkelen index: 46 elements: url: pattern: {type: Uri, value: cadastralIdentifier} index: 47 value: choices: [valueString] index: 49 valueString: {type: string, choiceOf: value, index: 50} basicStatisticalUnit: match: {url: basicStatisticalUnit} schema: short: grunnkrets index: 6 elements: url: pattern: {type: Uri, value: basicStatisticalUnit} index: 7 value: choices: [valueInteger] index: 9 valueInteger: {type: integer, choiceOf: value, index: 10} schoolDistrict: match: {url: schoolDistrict} schema: short: skolekrets fra FREG index: 41 elements: url: pattern: {type: Uri, value: schoolDistrict} index: 42 value: choices: [valueInteger] index: 44 valueInteger: {type: integer, choiceOf: value, index: 45} fregAddressContentType: match: {url: fregAddressContentType} schema: short: Content type for address provided by FREG binding: {strength: required, valueSet: 'http://ehelse.no/fhir/ValueSet/gd-address-contenttype'} index: 26 elements: url: pattern: {type: Uri, value: fregAddressContentType} index: 27 value: choices: [valueCode] index: 29 valueCode: {type: code, choiceOf: value, index: 30} physicalAddressType: match: {url: physicalAddressType} schema: short: oppholdAnnetSted binding: {strength: required, valueSet: 'http://ehelse.no/fhir/ValueSet/gd-address-physicaladdresstype'} index: 36 elements: url: pattern: {type: Uri, value: physicalAddressType} index: 37 value: choices: [valueCode] index: 39 valueCode: {type: code, choiceOf: value, index: 40} parishId: match: {url: parishId} schema: short: kirkekrets index: 11 elements: url: pattern: {type: Uri, value: parishId} index: 12 value: choices: [valueInteger] index: 14 valueInteger: {type: integer, choiceOf: value, index: 15} confidentiality: match: {url: confidentiality} schema: short: adressegradering _required: true binding: {strength: required, valueSet: 'http://ehelse.no/fhir/ValueSet/gd-address-confidentiality'} index: 1 elements: url: pattern: {type: Uri, value: confidentiality} index: 2 value: choices: [valueCode] index: 4 valueCode: {type: code, choiceOf: value, index: 5} url: pattern: {type: Uri, value: 'http://ehelse.no/fhir/StructureDefinition/gd-address-metadata'} index: 56 value: choices: [] index: 58 package_version: 2.3.0 extensions: closeCadastralIdentifier: url: closeCadastralIdentifier short: nærAdresseidentifikatorFraMatrikkelen index: 16 elements: url: pattern: {type: Uri, value: closeCadastralIdentifier} index: 17 value: choices: [valueString] index: 19 valueString: {type: string, choiceOf: value, index: 20} addressIsUnknown: url: addressIsUnknown short: AdressenErUkjent constraint: addressType-1: {human: addressIsUnknown must have fregAddressType of AdressenErUkjent, source: Extension, severity: error, expression: addressIsUnknown.value() and (fregAddressContentType.Value()=AdressenErUkjent)} index: 51 elements: url: pattern: {type: Uri, value: addressIsUnknown} index: 52 value: choices: [valueBoolean] index: 54 valueBoolean: {type: boolean, choiceOf: value, index: 55} fregAddressType: url: fregAddressType short: address types provided by FREG binding: {strength: required, valueSet: 'http://ehelse.no/fhir/ValueSet/gd-address-type'} index: 31 elements: url: pattern: {type: Uri, value: fregAddressType} index: 32 value: choices: [valueCode] index: 34 valueCode: {type: code, choiceOf: value, index: 35} constituencyId: url: constituencyId short: stemmekrets index: 21 elements: url: pattern: {type: Uri, value: constituencyId} index: 22 value: choices: [valueInteger] index: 24 valueInteger: {type: integer, choiceOf: value, index: 25} cadastralIdentifier: url: cadastralIdentifier short: adresseidentifikatorFraMatrikkelen index: 46 elements: url: pattern: {type: Uri, value: cadastralIdentifier} index: 47 value: choices: [valueString] index: 49 valueString: {type: string, choiceOf: value, index: 50} basicStatisticalUnit: url: basicStatisticalUnit short: grunnkrets index: 6 elements: url: pattern: {type: Uri, value: basicStatisticalUnit} index: 7 value: choices: [valueInteger] index: 9 valueInteger: {type: integer, choiceOf: value, index: 10} schoolDistrict: url: schoolDistrict short: skolekrets fra FREG index: 41 elements: url: pattern: {type: Uri, value: schoolDistrict} index: 42 value: choices: [valueInteger] index: 44 valueInteger: {type: integer, choiceOf: value, index: 45} fregAddressContentType: url: fregAddressContentType short: Content type for address provided by FREG binding: {strength: required, valueSet: 'http://ehelse.no/fhir/ValueSet/gd-address-contenttype'} index: 26 elements: url: pattern: {type: Uri, value: fregAddressContentType} index: 27 value: choices: [valueCode] index: 29 valueCode: {type: code, choiceOf: value, index: 30} physicalAddressType: url: physicalAddressType short: oppholdAnnetSted binding: {strength: required, valueSet: 'http://ehelse.no/fhir/ValueSet/gd-address-physicaladdresstype'} index: 36 elements: url: pattern: {type: Uri, value: physicalAddressType} index: 37 value: choices: [valueCode] index: 39 valueCode: {type: code, choiceOf: value, index: 40} parishId: url: parishId short: kirkekrets index: 11 elements: url: pattern: {type: Uri, value: parishId} index: 12 value: choices: [valueInteger] index: 14 valueInteger: {type: integer, choiceOf: value, index: 15} confidentiality: url: confidentiality short: adressegradering _required: true binding: {strength: required, valueSet: 'http://ehelse.no/fhir/ValueSet/gd-address-confidentiality'} index: 1 elements: url: pattern: {type: Uri, value: confidentiality} index: 2 value: choices: [valueCode] index: 4 valueCode: {type: code, choiceOf: value, index: 5} class: extension kind: complex-type url: http://ehelse.no/fhir/StructureDefinition/gd-address-metadata base: http://hl7.org/fhir/StructureDefinition/Extension version: 2.3.0