{"library":"sphn","title":"SPHN (SPHN Data Model)","type":"library","description":"A Python library for working with the SPHN (Swiss Personalized Health Network) data model. Version 0.2.1. Enables creation, validation, and serialization of SPHN-compliant RDF data. Currently in early development with frequent releases.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install sphn"],"cli":null},"imports":["from sphn import SPHNProject"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/sphn/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"from sphn import SPHNProject\nfrom datetime import datetime\nproject = SPHNProject()\npatient = project.create_patient(patient_id='P001', birth_date=datetime(1990, 4, 23))\nproject.add_patient(patient)\nrdf = project.to_rdf()\nprint(rdf.serialize(format='turtle'))","lang":"python","description":"Create a new SPHN project, add a patient, and serialize as RDF/Turtle.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}