cda:addr
|
|
|
|
|
(USR DED) |
@nullFlavor
|
cs |
0 … 1 |
|
|
@use
|
set_cs |
0 … 1 |
|
SHOULD contain zero or one [0..1] @use, which SHALL be selected from ValueSet PostalAddressUse
urn:oid:2.16.840.1.113883.1.11.10637 STATIC 2005-05-01 (CONF:81-7290).
|
CONF 7290 |
|
CONF |
|
|
Constraint |
*SHALL NOT* have mixed content except for white space |
|
Constraint |
If the country is US, the state element is required but SHOULD have @nullFlavor if
the state is unknown. If country is not specified, it's assumed to be US. If country
is something other than US, the state MAY be present but MAY be bound to different
vocabularies (CONF:81-10024).
|
cda:country
|
ADXP |
0 … 1 |
R |
SHOULD contain zero or one [0..1] country, which SHALL be selected from ValueSet Country
urn:oid:2.16.840.1.113883.3.88.12.80.63 DYNAMIC (CONF:81-7295).
|
CONF 7295 |
|
CONF |
|
cda:state
|
ADXP |
0 … 1 |
R |
SHOULD contain zero or one [0..1] state (ValueSet: StateValueSet urn:oid:2.16.840.1.113883.3.88.12.80.1
DYNAMIC) (CONF:81-7293).
|
CONF 7293 |
|
Constraint |
State is required if the country is US. If country is not specified, it's assumed
to be US. If country is something other than US, the state MAY be present but MAY
be bound to different vocabularies (CONF:81-10024).
|
|
CONF |
|
|
Schematron assert |
role |
error
|
|
|
test |
@nullFlavor or (cda:country='US' and cda:state) or (cda:country!='US') or (not(cda:country)
and cda:state)
|
|
|
Message |
State is required if the country is US. If country is not specified, it's assumed
to be US. If country is something other than US, the state MAY be present but MAY
be bound to different vocabularies. |
|
cda:city
|
ADXP |
1 … 1 |
R |
SHALL contain exactly one [1..1] city (CONF:81-7292). |
CONF 7292 |
cda:postalCode
|
ADXP |
0 … 1 |
R |
SHOULD contain zero or one [0..1] postalCode, which SHOULD be selected from ValueSet
PostalCode urn:oid:2.16.840.1.113883.3.88.12.80.2 DYNAMIC (CONF:81-7294).
|
CONF 7294 |
|
Constraint |
If the country is US, the postalCode element is required but SHOULD have @nullFlavor
if the postalCode is unknown. If country is not specified, it's assumed to be US.
If country is something other than US, the postalCode MAY be present but MAY be bound
to different vocabularies (CONF:81-10025).
|
|
CONF |
|
|
Schematron assert |
role |
error
|
|
|
test |
@nullFlavor or (cda:country='US' and cda:postalCode) or (cda:country!='US') or (not(cda:country)
and cda:postalCode)
|
|
|
Message |
If the country is US, the postalCode element is required but SHOULD have @nullFlavor
if the postalCode is unknown. If country is not specified, it's assumed to be US.
If country is something other than US, the postalCode MAY be present but
MAY be bound to different vocabularies (CONF:81-10025). |
|
cda:streetAddressLine
|
ADXP |
1 … 4 |
R |
|
CONF 7291 |
|
Schematron assert |
role |
error
|
|
|
test |
@nullFlavor or (count(cda:streetAddressLine) > 0 and count(cda:streetAddressLine)
< 5)
|
|
|
Message |
SHALL contain at least one and not more than 4 streetAddressLine (CONF:81-7291) |
|
|
Schematron assert |
role |
error
|
|
|
test |
@nullFlavor or (cda:city and cda:streetAddressLine) |
|
|
Message |
|
|