{"resourceType":"StructureDefinition","id":"cycle-log-patient","url":"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-patient","version":"0.1.0","name":"CycleLogPatient","title":"Patient","status":"draft","experimental":true,"description":"The person: a name (family and up to three given names) and/or a birth date; without either, the identity-free Patient {\"id\": \"0\"}. Closed: every element not listed is max 0. Generated from the cycle-log model (codecs/cycle-log/profiles/make-profiles.ts).","fhirVersion":"4.0.1","kind":"resource","abstract":false,"type":"Patient","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Patient","derivation":"constraint","differential":{"element":[{"id":"Patient","path":"Patient","constraint":[{"key":"cy-patient-id","severity":"error","human":"A Patient with no name and no birth date (the identity-free Patient) carries an id, so that it is not empty (R4 bdl-5); the id says nothing.","expression":"name.exists() or birthDate.exists() or id.exists()","source":"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-patient"},{"key":"cy-name-part","severity":"error","human":"A name has a family name or at least one given name.","expression":"name.all(family.exists() or given.exists())","source":"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-patient"},{"key":"cy-name-text","severity":"error","human":"Names and the source app's name and version have no leading or trailing whitespace and no control characters (lengths are maxLength).","expression":"(name.family | name.given | deviceName.name | version.value).all(matches('^[^\\\\s\\\\u00a0\\\\u1680\\\\u2000-\\\\u200a\\\\u2028\\\\u2029\\\\u202f\\\\u205f\\\\u3000\\\\ufeff\\\\x00-\\\\x1f\\\\x7f]([^\\\\x00-\\\\x1f\\\\x7f]{0,998}[^\\\\s\\\\u00a0\\\\u1680\\\\u2000-\\\\u200a\\\\u2028\\\\u2029\\\\u202f\\\\u205f\\\\u3000\\\\ufeff\\\\x00-\\\\x1f\\\\x7f])?$'))","source":"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-patient"},{"key":"cy-birthdate","severity":"error","human":"The birth date year is in 1900..2150.","expression":"birthDate.all(toString() >= '1900' and toString().substring(0, 4) <= '2150')","source":"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-patient"}]},{"id":"Patient.meta.id","path":"Patient.meta.id","max":"0"},{"id":"Patient.meta.extension","path":"Patient.meta.extension","max":"0"},{"id":"Patient.meta.versionId","path":"Patient.meta.versionId","max":"0"},{"id":"Patient.meta.lastUpdated","path":"Patient.meta.lastUpdated","max":"0"},{"id":"Patient.meta.source","path":"Patient.meta.source","max":"0"},{"id":"Patient.meta.profile","path":"Patient.meta.profile","min":1,"max":"1","fixedCanonical":"https://joshuamandel.com/shc2-poc/StructureDefinition/cycle-log-patient"},{"id":"Patient.meta.profile.id","path":"Patient.meta.profile.id","max":"0"},{"id":"Patient.meta.profile.extension","path":"Patient.meta.profile.extension","max":"0"},{"id":"Patient.meta.security","path":"Patient.meta.security","max":"0"},{"id":"Patient.meta.tag","path":"Patient.meta.tag","max":"0"},{"id":"Patient.implicitRules","path":"Patient.implicitRules","max":"0"},{"id":"Patient.language","path":"Patient.language","max":"0"},{"id":"Patient.text","path":"Patient.text","max":"0"},{"id":"Patient.contained","path":"Patient.contained","max":"0"},{"id":"Patient.extension","path":"Patient.extension","max":"0"},{"id":"Patient.modifierExtension","path":"Patient.modifierExtension","max":"0"},{"id":"Patient.identifier","path":"Patient.identifier","max":"0"},{"id":"Patient.active","path":"Patient.active","max":"0"},{"id":"Patient.name","path":"Patient.name","max":"1"},{"id":"Patient.name.id","path":"Patient.name.id","max":"0"},{"id":"Patient.name.extension","path":"Patient.name.extension","max":"0"},{"id":"Patient.name.use","path":"Patient.name.use","max":"0"},{"id":"Patient.name.text","path":"Patient.name.text","max":"0"},{"id":"Patient.name.family","path":"Patient.name.family","maxLength":64},{"id":"Patient.name.family.id","path":"Patient.name.family.id","max":"0"},{"id":"Patient.name.family.extension","path":"Patient.name.family.extension","max":"0"},{"id":"Patient.name.given","path":"Patient.name.given","max":"3","maxLength":64},{"id":"Patient.name.given.id","path":"Patient.name.given.id","max":"0"},{"id":"Patient.name.given.extension","path":"Patient.name.given.extension","max":"0"},{"id":"Patient.name.prefix","path":"Patient.name.prefix","max":"0"},{"id":"Patient.name.suffix","path":"Patient.name.suffix","max":"0"},{"id":"Patient.name.period","path":"Patient.name.period","max":"0"},{"id":"Patient.telecom","path":"Patient.telecom","max":"0"},{"id":"Patient.gender","path":"Patient.gender","max":"0"},{"id":"Patient.birthDate.id","path":"Patient.birthDate.id","max":"0"},{"id":"Patient.birthDate.extension","path":"Patient.birthDate.extension","max":"0"},{"id":"Patient.deceased[x]","path":"Patient.deceased[x]","max":"0"},{"id":"Patient.address","path":"Patient.address","max":"0"},{"id":"Patient.maritalStatus","path":"Patient.maritalStatus","max":"0"},{"id":"Patient.multipleBirth[x]","path":"Patient.multipleBirth[x]","max":"0"},{"id":"Patient.photo","path":"Patient.photo","max":"0"},{"id":"Patient.contact","path":"Patient.contact","max":"0"},{"id":"Patient.communication","path":"Patient.communication","max":"0"},{"id":"Patient.generalPractitioner","path":"Patient.generalPractitioner","max":"0"},{"id":"Patient.managingOrganization","path":"Patient.managingOrganization","max":"0"},{"id":"Patient.link","path":"Patient.link","max":"0"}]}}
